Scythe-1.0.3
|
template<matrix_order RO, matrix_style RS, typename T , matrix_order PO1, matrix_style PS1, matrix_order PO2, matrix_style PS2, matrix_order PO3, matrix_style PS3, matrix_order PO4, matrix_style PS4>
Calculates the inverse of a non-singular square matrix, given an LU decomposition. This function returns the inverse of an arbitrary, non-singular, square matrix A when passed a permutation of an LU decomposition, such as that returned by lu_decomp(). A one-parameter version of this function exists that does not require the user to pre-decompose the system.
References scythe::Matrix_base< ORDER, STYLE >::cols(), scythe::Matrix_base< ORDER, STYLE >::isNull(), scythe::Matrix_base< ORDER, STYLE >::isScalar(), scythe::Matrix_base< ORDER, STYLE >::isSquare(), row_interchange(), scythe::Matrix_base< ORDER, STYLE >::rows(), and SCYTHE_CHECK_10. Referenced by BFGS(), and scythe::rtmvnorm< RNGTYPE >::rtmvnorm(). |