kabasset / Linx

Extensible ND image laboratory
Apache License 2.0
3 stars 0 forks source link

Add operators to EuclidArithmetic containers #1

Open kabasset opened 1 year ago

kabasset commented 1 year ago

Often, multiplication is needed, e.g. for working with strides or non-isotropic scaling.

operator*() was considered a bad idea because it would be misleading, e.g. for vectors. multiply() is an option, with in-place method and new-instance free function.

To be assessed, because other operators could be usefull, e.g. operator<<(), which are not related to Euclidean arithmetic.