Peano
Loading...
Searching...
No Matches
DynamicMatrixOperations.cpp
Go to the documentation of this file.
2
4 tarch::la::DynamicMatrix result(matrix.cols(), matrix.rows());
5 #ifdef CompilerICC
6 #pragma ivdep
7 #endif
8 for (int i=0; i < matrix.rows(); i++) {
9 for (int j=0; j < matrix.cols(); j++) {
10 result(j,i) += matrix(i,j);
11 }
12 }
13 return result;
14}
15
My standard matrix is a matrix where the size is fixed at compile time.
DynamicMatrix transpose(const DynamicMatrix &matrix)