Is there something like hadamard product in the nalgebra crate?
Yes ! You can use mat1.component_mul(&mat2)
. If you want the computation to be performed in-place, you can use mat1.component_mul_mut(&mat2)
.
Is there something like hadamard product in the nalgebra crate?
Yes ! You can use mat1.component_mul(&mat2)
. If you want the computation to be performed in-place, you can use mat1.component_mul_mut(&mat2)
.