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>
Interchange the rows of a Matrix according to a permutation vector. This function permutes the rows of Matrix A according to perm_vec. Each element i of perm_vec contains a row-number, r. For each row, i, in A, A[i] is interchanged with A[r].
References scythe::Matrix< T_type, ORDER, STYLE >::begin_f(), scythe::Matrix< T_type, ORDER, STYLE >::end_f(), scythe::Matrix_base< ORDER, STYLE >::isColVector(), scythe::Matrix_base< ORDER, STYLE >::isScalar(), scythe::Matrix_base< ORDER, STYLE >::rows(), and SCYTHE_CHECK_10. Referenced by inv(), and lu_solve(). |