Documentation of 'cc.redberry.core.utils.MatrixUtils' Java class
MatrixUtils
cc.redberry.core.utils

Class MatrixUtils



  • public final class MatrixUtils
    extends java.lang.Object
    Utils fot matrices.
    Since:
    1.1.7
    • 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 tensor
        type - type of matrix
        upper - number of upper matrix indices
        lower - 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 tensor
        type - 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 tensor
        type - 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 tensor
        type - 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

Ads help maintain this website.