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, matrix_order PO5, matrix_style PS5>
Solve for x via forward and backward substitution, given the results of a LU decomposition. This function solves the system of equations via forward and backward substitution and LU decomposition. A must be a non-singular square matrix for this method to work. This function requires the actual LU decomposition to be performed ahead of time; by lu_decomp() for example. This function is intended for repeatedly solving systems of equations based on A. That is A stays constant while b varies.
References scythe::Matrix_base< ORDER, STYLE >::cols(), scythe::Matrix_base< ORDER, STYLE >::isColVector(), scythe::Matrix_base< ORDER, STYLE >::isNull(), scythe::Matrix_base< ORDER, STYLE >::isSquare(), row_interchange(), scythe::Matrix_base< ORDER, STYLE >::rows(), and SCYTHE_CHECK_10. Referenced by nls_broyden(). |