mfajnberg / tensorevo

0 stars 1 forks source link

Define a separate `Norm` trait #20

Closed daniil-berg closed 11 months ago

daniil-berg commented 11 months ago

Inspired by the ndarray_linalg::norm::Norm trait, we can factor out out current vec_norm method into a separate Norm trait that provides at least the 1-norm and the 2-norm and implement that for Array2.