Package org.matheclipse.core.builtin
Class LinearAlgebra.Det
- java.lang.Object
-
- org.matheclipse.core.eval.interfaces.AbstractEvaluator
-
- org.matheclipse.core.eval.interfaces.AbstractFunctionEvaluator
-
- org.matheclipse.core.eval.interfaces.AbstractMatrix1Expr
-
- org.matheclipse.core.builtin.LinearAlgebra.Det
-
- All Implemented Interfaces:
IFunctionEvaluator
,IEvaluator
- Enclosing class:
- LinearAlgebra
public static class LinearAlgebra.Det extends AbstractMatrix1Expr
Det(matrix)
computes the determinant of the
matrix
.See:
Examples
>> Det({{1, 1, 0}, {1, 0, 1}, {0, 1, 1}}) -2
Symbolic determinant:
>> Det({{a, b, c}, {d, e, f}, {g, h, i}}) -c*e*g+b*f*g+c*d*h-a*f*h-b*d*i+a*e*i
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.matheclipse.core.eval.interfaces.AbstractMatrix1Expr
AbstractMatrix1Expr.PossibleZeroQTest
-
-
Field Summary
-
Fields inherited from class org.matheclipse.core.eval.interfaces.AbstractMatrix1Expr
POSSIBLE_ZEROQ_TEST
-
Fields inherited from interface org.matheclipse.core.eval.interfaces.IFunctionEvaluator
ARGS_0_0, ARGS_0_1, ARGS_0_1_0, ARGS_0_2, ARGS_0_2_0, ARGS_0_3, ARGS_0_INFINITY, ARGS_1_1, ARGS_1_2, ARGS_1_2_0, ARGS_1_2_1, ARGS_1_2_2, ARGS_1_3, ARGS_1_3_0, ARGS_1_3_1, ARGS_1_3_2, ARGS_1_4, ARGS_1_4_0, ARGS_1_4_1, ARGS_1_4_2, ARGS_1_5, ARGS_1_5_1, ARGS_1_INFINITY, ARGS_1_INFINITY_0, ARGS_1_INFINITY_1, ARGS_2_2, ARGS_2_2_1, ARGS_2_3, ARGS_2_3_0, ARGS_2_3_1, ARGS_2_3_2, ARGS_2_4, ARGS_2_4_1, ARGS_2_4_2, ARGS_2_INFINITY, ARGS_3_3, ARGS_3_4, ARGS_3_5, ARGS_3_6, ARGS_3_INFINITY, ARGS_4_4, ARGS_5_5, ARGS_6_6
-
-
Constructor Summary
Constructors Constructor Description Det()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
checkMatrixDimensions(IExpr arg1)
Check ifarg1
is a matrix.IExpr
matrixEval(org.hipparchus.linear.FieldMatrix<IExpr> matrix, Predicate<IExpr> zeroChecker)
Evaluate the symbolic matrix for this algorithm.IExpr
realMatrixEval(org.hipparchus.linear.RealMatrix matrix, EvalEngine engine)
Evaluate the numeric matrix for this algorithm.-
Methods inherited from class org.matheclipse.core.eval.interfaces.AbstractMatrix1Expr
evaluate, expectedArgSize, numericEval, optionZeroTest
-
Methods inherited from class org.matheclipse.core.eval.interfaces.AbstractFunctionEvaluator
createRuleFromMethod, determineOptions, extractImaginaryUnit, extractImaginaryUnit, getComplexExpr, getNegativePlusInTimes, getNormalizedNegativeExpression, getNormalizedNegativeExpression, getPeriodicParts, getPowerNegativeExpression, getPureImaginaryPart, imaginaryPart, initSerializedRules, isNegativeWeighted, isNegativeWeighted, peelOff, peelOffPlusI, peelOffPlusRational, peelOfTimes, peelOfTimes, realPart, setUp
-
Methods inherited from class org.matheclipse.core.eval.interfaces.AbstractEvaluator
defaultReturn, evalCatched
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.matheclipse.core.interfaces.IEvaluator
await, setOptions
-
Methods inherited from interface org.matheclipse.core.eval.interfaces.IFunctionEvaluator
getOptionSymbols, numericFunction, print, status
-
-
-
-
Method Detail
-
checkMatrixDimensions
public int[] checkMatrixDimensions(IExpr arg1)
Description copied from class:AbstractMatrix1Expr
Check ifarg1
is a matrix.- Overrides:
checkMatrixDimensions
in classAbstractMatrix1Expr
- Returns:
-
matrixEval
public IExpr matrixEval(org.hipparchus.linear.FieldMatrix<IExpr> matrix, Predicate<IExpr> zeroChecker)
Description copied from class:AbstractMatrix1Expr
Evaluate the symbolic matrix for this algorithm.- Specified by:
matrixEval
in classAbstractMatrix1Expr
- Parameters:
matrix
- the matrix which contains symbolic valueszeroChecker
- test if a calculation is0
.- Returns:
F.NIL
if the evaluation isn't possible
-
realMatrixEval
public IExpr realMatrixEval(org.hipparchus.linear.RealMatrix matrix, EvalEngine engine)
Description copied from class:AbstractMatrix1Expr
Evaluate the numeric matrix for this algorithm.- Specified by:
realMatrixEval
in classAbstractMatrix1Expr
- Parameters:
matrix
- the matrix which contains numeric valuesengine
- TODO- Returns:
F.NIL
if the evaluation isn't possible
-
-