Package math.matrix.expressParser
Class HalfDet
java.lang.Object
math.matrix.expressParser.MatrixOperator
math.matrix.expressParser.HalfDet
public class HalfDet extends MatrixOperator
- Author:
- JIBOYE Oluwagbemiro Olaoluwa
-
Constructor Summary
Constructors Constructor Description HalfDet(int index, java.util.ArrayList<java.lang.String> scan) -
Method Summary
Modifier and Type Method Description HalfDetgetComplement()static intgetComplementIndex(boolean isleftHalf, int start, java.util.ArrayList<java.lang.String> scan)intgetIndex()voidsetComplement(HalfDet complement)voidsetIndex(int index)Methods inherited from class math.matrix.expressParser.MatrixOperator
getName, getPrecedence, isAssignmentOperator, isBinaryOperator, isBracket, isClosingBrace, isClosingBracket, isColJoin, isColon, isCube, isDet, isDetHalfSymbol, isInverse, isMul, isOpeningBrace, isOpeningBracket, isOperatorString, isPlusOrMinus, isPower, isRowJoin, isSquare, isTri, isUnaryPostOperator, isUnaryPreOperator, isUnit, orderCompoundTokens, setName, validateAll
-
Constructor Details
-
HalfDet
public HalfDet(int index, java.util.ArrayList<java.lang.String> scan)
-
-
Method Details
-
setIndex
public void setIndex(int index) -
getIndex
public int getIndex() -
setComplement
-
getComplement
-
getComplementIndex
public static int getComplementIndex(boolean isleftHalf, int start, java.util.ArrayList<java.lang.String> scan)- Parameters:
isleftHalf- A boolean condition that is true if the object (whose complement we seek) itself is the opening half of the determinant brace...i.e the one to the left. If false, then it is the one to the right...i.e the one to the right.start- The index of the HalfDet object whose complement we seek.scan- The ArrayList that this object resides in.- Returns:
- the index where the complement is to be found in the ArrayList object.
-