/// Returns the matrix with the specified `row` and `col` removed.
Returns the matrix with the specified `row` and `col` removed.
Returns the matrix with the specified ` row ` and ` col ` removed .
fn matrix_minor<A, S>(a: &ArrayBase<S, Ix2>, (row, col): (usize, usize)) -> Array2<A>
where
    A: Scalar,
    S: Data<Elem = A>,
{
    let mut select_rows = (0..a.nrows()).collect::<Vec<_>>();
    select_rows.remove(row);
    let mut select_cols = (0..a.ncols()).collect::<Vec<_>>();
    select_cols.remove(col);
    a.select(Axis(0), &select_rows)
        .select(Axis(1), &select_cols)
}
fn matrix_minor < A , S > ( a : & ArrayBase < S , Ix2 > , ( row , col ) : ( usize , usize ) ) -> Array2 < A > where A : Scalar , S : Data < Elem = A > , { let mut select_rows = ( 0 .. a . nrows ( ) ) . collect :: < Vec < _ > > ( ) ; select_rows . remove ( row ) ; let mut select_cols = ( 0 .. a . ncols ( ) ) . collect :: < Vec < _ > > ( ) ; select_cols . remove ( col ) ; a . select ( Axis ( 0 ) , & select_rows ) . select ( Axis ( 1 ) , & select_cols ) }
Returns the matrix with the specified `row` and `col` removed.
Returns the matrix with the specified ` row ` and ` col ` removed .
a
(usize, usize)