| ||||||
| ||||||
| Prototype | ||||||
|
template <class Matrix> Matrix::transpose_type trans(const Matrix& A) ; | ||||||
| Description | ||||||
| Swap the orientation of a matrix (i.e., from row-major to column-major). In essence this transposes the matrix. This operation occurs at compile time. | ||||||
| Definition | ||||||
| matrix_implementation.h | ||||||
| Preconditions | ||||||
|
| ||||||
| Complexity | ||||||
| Example | ||||||
In trans_mult.cc:
typedef matrix< double, rectangle<>, dense<external>, row_major >::type EMatrix; typedef dense1D<double> Vector; const EMatrix::size_type n = 5; Vector y(n,1),Ay(n); double da[n*n]; EMatrix A(da,n,n); mult(trans(A),y,Ay); | ||||||
| Notes | ||||||
| See also | ||||||

Copyright ©
1998,1999 University of Notre Dame. All Rights Reserved.