Hadamard product?


#1

Is there something like hadamard product in the nalgebra crate?


#2

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).