transpose [MTL Home] Programmers Guide
  Contents | Index |  Search 


Category:algorithms Component type:function
Prototype
template <class MatA, class MatB>
void transpose(const MatA& A, MatB B) ;
Description
When matrix B is banded, it is up to the user to ensure that the bandwidth is sufficient to contain the elements from A^T. If there are elements of A^T that do not fall within the bandwidth, an exception will be thrown. (exception not implemented yet).
Definition
mtl.h
Preconditions
  • B(i,j) = 0 & B = A^T
Complexity
O(n^2)
Example
Notes
See also

[MTL Home] Copyright © 1998,1999 University of Notre Dame. All Rights Reserved.