Fork me on GitHub
 All Classes Files Functions Variables Groups Pages
transpose.cu
#include <cusp/transpose.h>
#include <cusp/array2d.h>
#include <cusp/print.h>
int main(void)
{
// initialize a 2x3 matrix
A(0,0) = 10; A(0,1) = 20; A(0,2) = 30;
A(1,0) = 40; A(1,1) = 50; A(1,2) = 60;
// print A
// compute the transpose
// print A^T
return 0;
}