prod of compressed_matrix exp fails in 1.4.2

2013-05-24
2013-06-12
  • Peter Burka
    Peter Burka
    2013-05-24

    The following code worked in 1.4.1 but fails to compile in 1.4.2:

        viennacl::vector<double> v(rows);
        viennacl::compressed_matrix<double> M(rows, columns);
        viennacl::vector<double> k = viennacl::linalg::prod(trans(M), v);
    

    The code compiles if compressed_matrix is replaced with matrix, or of the trans() is removed.

    I'm using gcc 4.4.1.

     
  • Karl Rupp
    Karl Rupp
    2013-05-24

    Hi,

    this is intentional: In earlier versions, the code compiled, but leads to a runtime error because the operation is not supported. The new behavior is to force a compilation error to notify library users as early as possible.

    Best regards,
    Karli

     
  • Peter Burka
    Peter Burka
    2013-05-24

    Ah - I'd misunderstood what you meant when you said it would be fixed in the next release.