crystal-data / num.cr

Scientific computing in pure Crystal
MIT License
151 stars 12 forks source link

Unary negation missing #80

Closed nogginly closed 1 year ago

nogginly commented 1 year ago

While building a toy model in Crystal using num.cr I ran into the following compile error.

 5 | nt = -t
          ^
Error: wrong number of arguments for 'Tensor(Int32, CPU(Int32))#-' (given 0, expected 1)

Overloads are:
 - Tensor(T, S)#-(other)