Componentwise matrix multiplication
Issue #60
resolved
I see that you have no function for doing componentwise multiplication of matrices. Would this be something you could add to the library?
Comments (4)
-
-
-
assigned issue to
-
assigned issue to
-
- changed status to open
-
- changed status to resolved
Summary
The feature has been implemented, tested, optimized (including parallelization) and documented as required. It is immediately available via cloning the Blaze repository and will be officially released in Blaze 3.2.
Componentwise Multiplication / Schur Product
Multiplying two matrices with the same dimensions (i.e. the same number of rows and columns) via the modulo operator results in a componentwise multiplication (Schur product) of the two matrices:
using blaze::DynamicMatrix; using blaze::CompressedMatrix; DynamicMatrix<double> M1( 28UL, 35UL ); CompressedMatrix<float> M2( 28UL, 35UL ); // ... Initialization of the matrices DynamicMatrix<double> M3 = M1 % M2;
- Log in to comment
Hi Jonas!
You are correct, Blaze currently does not support the componentwise matrix multiplication. We will try to add the functionality as soon as possible. Thanks a lot for your suggestion,
Best regards,
Klaus!