Suppose I have an array of size 2*2, eg. A=[1 2 3 4], which is a representation of the matrix A=[1 3 ; 2 4] (column major format) . Now I wish to convert the array into A=[1 2 0 3 4 0 0 0 0], which is a representation of the matrix [1 3 0; 2 4 0;0 0 0]. How can I achieve this conversion?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Mapping array | 1 | 1499 | December 3, 2015 | |
multiplication of several matrices | 0 | 4151 | September 8, 2010 | |
Large Vertex Array Transformation Using CUDA to transform a large vertex array by a rotation matrix | 1 | 7249 | August 12, 2009 | |
sum columns of a 2 dimensional array with Reduce algorithm | 0 | 1156 | December 6, 2018 | |
how to allocate a 2d array in cudamalloc? | 0 | 2542 | March 31, 2014 | |
Re-arrange one dimension array | 2 | 453 | October 21, 2011 | |
More CUDA Dimensions | 2 | 708 | November 20, 2014 | |
Vector and matrix multiplication | 1 | 5653 | August 22, 2007 | |
passing two dimensional fortran array to CUDA C | 2 | 4745 | December 3, 2009 | |
How to do Reduction in column for a matrix | 2 | 1533 | May 3, 2019 |