Hi Charles,

 > I can easily resize a matrix with the `resize` function
>
> viennacl::matrix vcl_A(3,3);
> vcl_A.resize(3,4);
>
> but I notice that this adds the new column on the end of the matrix.  Is
> there a way to append it on to the front of the matrix?

Not directly. But you can create a new matrix and then use 
viennacl::project() to place the old entries at the correct spot:

matrix<T> B(3,4);
matrix_range<matrix<T> > B_right(B, range(0, 3), range(1,4));
B_right = A;



Best regards,
Karli


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
ViennaCL-devel mailing list
ViennaCL-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viennacl-devel

Reply via email to