cc.redberry.core.utils
Class MatrixUtils
- java.lang.Object
-
- cc.redberry.core.utils.MatrixUtils
-
public final class MatrixUtils extends java.lang.ObjectUtils fot matrices.- Since:
- 1.1.7
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static booleanisCovector(SimpleTensor tensor, IndexType type)Returns whether specified tensor is covector of specified type.static booleanisGeneralizedMatrix(SimpleTensor tensor, IndexType type, int upper, int lower)Returns whether specified tensor is matrix of specified type and with specified signature.static booleanisMatrix(SimpleTensor tensor, IndexType type)Returns whether specified tensor is matrix of specified type.static booleanisVector(SimpleTensor tensor, IndexType type)Returns whether specified tensor is vector of specified type.
-
-
-
Method Detail
-
isGeneralizedMatrix
public static boolean isGeneralizedMatrix(SimpleTensor tensor, IndexType type, int upper, int lower)
Returns whether specified tensor is matrix of specified type and with specified signature.- Parameters:
tensor- simple tensortype- type of matrixupper- number of upper matrix indiceslower- number of lower matrix indices- Returns:
- true if specified tensor is matrix of specified type and with specified signature and false in other case
-
isMatrix
public static boolean isMatrix(SimpleTensor tensor, IndexType type)
Returns whether specified tensor is matrix of specified type.- Parameters:
tensor- simple tensortype- type of matrix- Returns:
- true if specified tensor is matrix of specified type and false in other case
-
isVector
public static boolean isVector(SimpleTensor tensor, IndexType type)
Returns whether specified tensor is vector of specified type.- Parameters:
tensor- simple tensortype- type of matrix- Returns:
- true if specified tensor is vector of specified type and false in other case
-
isCovector
public static boolean isCovector(SimpleTensor tensor, IndexType type)
Returns whether specified tensor is covector of specified type.- Parameters:
tensor- simple tensortype- type of matrix- Returns:
- true if specified tensor is covector of specified type and false in other case
-
-
DataMelt 3.0 © DataMelt by jWork.ORG