CPPLapack
 All Classes Files Functions Variables Friends Pages
Functions
dgrmatrix-misc.hpp File Reference

Go to the source code of this file.

Functions

void swap (dgrmatrix &A, dgrmatrix &B)
 

Function Documentation

void swap ( dgrmatrix A,
dgrmatrix B 
)
inline

swap two matrices

Definition at line 105 of file dgrmatrix-misc.hpp.

References dgrmatrix::a, dgrmatrix::ia, dgrmatrix::ja, dgrmatrix::m, and dgrmatrix::n.

106 {CPPL_VERBOSE_REPORT;
107  std::swap(A.n,B.n);
108  std::swap(A.m,B.m);
109  std::swap(A.a,B.a);
110  std::swap(A.ia,B.ia);
111  std::swap(A.ja,B.ja);
112 }
std::vector< double > a
matrix component values
Definition: dgrmatrix.hpp:11
void swap(dgrmatrix &A, dgrmatrix &B)
std::vector< CPPL_INT > ia
rowIndex (NOT zero-based BUT one-based indexing)
Definition: dgrmatrix.hpp:12
CPPL_INT n
matrix column size
Definition: dgrmatrix.hpp:10
CPPL_INT m
matrix row size
Definition: dgrmatrix.hpp:9
std::vector< CPPL_INT > ja
columns (NOT zero-based BUT one-based indexing)
Definition: dgrmatrix.hpp:13