Menu

Dense Matrix Multiplication

Sumit
2015-01-09
2015-01-09
  • Sumit

    Sumit - 2015-01-09

    Hi Karl
    I have two Eigen dense matrices in Row Major format. I can find examples of interfacing Eigen with ViennaCL. However, is there any example of multiplying two such Eigen Dense matrices in ViennaCL on the GPU? Any pointers will be appreciated.

     
  • Karl Rupp

    Karl Rupp - 2015-01-09

    Hi Sumit,

    there is no example doing just that. However, examples/tutorial/blas3.cpp is very similar to what you need, just replace the uBLAS-matrices with Eigen matrices. In short: Copy your Eigen-matrices to viennacl::matrix<> objects and then call prod().

    Best regards,
    Karli

     

Log in to post a comment.