Matrix determinant
mps_det( rop, op ) mps_det( rop, op, tmp ) rop = mps_det( op )
Overloaded usage:
rop = det( op )
multi-precision scalar
multi-precision matrix
Compute the matrix determinant of op
.
Computes the matrix determinant of op
. The
temporary matrix required for evaluating the determinant is
automatically created and cleared.
Compute the matrix determinant of op
. The
third argument is used as the temporary matrix to evaluate the
determinant. If op
and tmp
are
the same the decomposition will be performed in place without any
temporary storage requirement.
Creates a multi-precision scalar the same precision as
op
containing the result.
Overloaded Scilab primitive det().
When the input matrix is not needed it can be passed as the temporary matrix to perform the intermediary decomposition in-place.
The determinant is evaluated by performing an in-place lu decomposition with partial pivoting.
// Standard usage. A = [1 -2; 3 -4] mpsA = mps_init2(A,100) rop = mps_det(mpsA) // Standard usage with an explicit temporary matrix. A = [1 -2; 3 -4] mpsA = mps_init2(A,100) tmp = mps_init(2,2,100) rop = mps_init(1,1,100) mps_det(rop, mpsA) // In-place operation. A = [1 -2; 3 -4] mpsA = mps_init2(A,100) rop = mps_init(1,1,100) mps_det(rop, mpsA, mpsA) // Overloaded usage. A = [1 -2; 3 -4] mpsA = mps_init2(A,100) rop = det(mpsA) | ![]() | ![]() |