Hi,

you are looking for outer_prod:

http://viennacl.sourceforge.net/doc/manual-operations.html#manual-operations-blas2

:-)

Best regards,
Karli


Quoting Charles Determan <cdeterma...@gmail.com>:

> Is there a way to get the outer product of two viennacl::vector objects
> where the output would be a new viennacl::matrix?  The use of inner_prod is
> simple enough and naturally I assumed I would use prod.hpp.  But my code
> errors out with:
>
> vcl_C = viennacl::linalg::prod(vcl_A, vcl_B);
>
>
> no match for ‘operator=’ (operand types are ‘viennacl::matrix<double,
> viennacl::row_major>’ and ‘viennacl::vector_expression<const
> viennacl::vector<double>, const viennacl::vector_base<double>,
> viennacl::op_prod>’)
>
> Is there another way to accomplish this?
>
> Regards,
> Charles




------------------------------------------------------------------------------
_______________________________________________
ViennaCL-devel mailing list
ViennaCL-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viennacl-devel

Reply via email to