LINEAR++ library: AFF to LAPACK

◆ test()

void test ( const Tmatrix::Tcoc &  M,
const Tmatrix::Tcoc  V 
)

Definition at line 89 of file lapacktest.cc.

References linear::op::dotNxM(), linear::lapack::dposv(), DUMP, and linear::op::transposeNxM().

Referenced by main().

90 {
91  cout << endl;
92  cout << "test function" << endl
93  << "-------------" << endl;
94  cout << "input matrix and vector:" << endl;
95  DUMP(M);
96  DUMP(V);
98  cout << "positive definite system matrix: " << endl;
99  DUMP(A);
101  cout << "right hand side vector: " << endl;
102  DUMP(B);
103  Tmatrix X=linear::lapack::dposv(A,B,'U',false);
104  cout << "solution to system of linear equations: " << endl;
105  DUMP(X);
106  cout << "expected solution: " << endl;
107  DUMP(V);
108  DUMP(X-V);
109 }
linear::TDmatrix Tmatrix
Definition: lsqexample.cc:56
#define DUMP(M)
Definition: lapacktest.cc:84
TDmatrix transposeNxM(const TDmatrix::Tcoc &A)
calculate transpose of NxM matrix.
Definition: transpose.cc:44
TDmatrix dotNxM(const TDmatrix::Tcoc &A, const TDmatrix::Tcoc &B)
dot product for NxM matrices.
Definition: dot.cc:45
void dposv(char UPLO, TDmatrix &A, TDmatrix &B, int &INFO, const bool &debug)
Compute the solution to a real system of linear equations A * X = B.
Definition: dposv_if.cc:87
Here is the call graph for this function:
Here is the caller graph for this function: