Componentwise matrix multiplication

Issue #60 resolved
Jonas Glesaaen created an issue

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)

  1. Klaus Iglberger

    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!

  2. Klaus Iglberger

    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;
    
  3. Log in to comment