Go to the source code of this file.
return transposed _dsymatrix
Definition at line 3 of file _dsymatrix-calc.hpp.
7 std::cerr <<
"This function call has no effect since the matrix is symmetric." << std::endl;
return its inverse matrix
Definition at line 15 of file _dsymatrix-calc.hpp.
References _(), dsymatrix::array, dsymatrix::identity(), dsymatrix::n, and _dsymatrix::n.
22 CPPL_INT NRHS(mat.
n), LDA(mat.
n), *IPIV(
new CPPL_INT[mat.
n]), LDB(mat.
n), LWORK(-1), INFO(1);
23 double *WORK(
new double[1] );
24 dsysv_(&UPLO, &mat_cp.n, &NRHS, mat_cp.array, &LDA, IPIV, mat_inv.array, &LDB, WORK, &LWORK, &INFO);
26 LWORK = CPPL_INT(WORK[0]);
28 WORK =
new double[LWORK];
29 dsysv_(&UPLO, &mat_cp.n, &NRHS, mat_cp.array, &LDA, IPIV, mat_inv.array, &LDB, WORK, &LWORK, &INFO);
35 std::cerr <<
"Serious trouble happend. INFO = " << INFO <<
"." << std::endl;
Real Double-precision Symmetric Matrix Class [l-type (UPLO=l) Strage].
CPPL_INT n
matrix column size
_dcovector _(dcovector &vec)
| void idamax |
( |
CPPL_INT & |
i, |
|
|
CPPL_INT & |
j, |
|
|
const _dsymatrix & |
mat |
|
) |
| |
|
inline |
search the index of element having the largest absolute value in 0-based numbering system
Definition at line 48 of file _dsymatrix-calc.hpp.
_dsymatrix i(const _dsymatrix &mat)
Real Double-precision Symmetric Matrix Class [l-type (UPLO=l) Strage].
void idamax(CPPL_INT &i, CPPL_INT &j, const _dsymatrix &mat)
return its largest absolute value
Definition at line 56 of file _dsymatrix-calc.hpp.
Real Double-precision Symmetric Matrix Class [l-type (UPLO=l) Strage].
double damax(const _dsymatrix &mat)