Documentation of 'mikera.matrixx.impl.ASingleBandMatrix' Java class
ASingleBandMatrix
mikera.matrixx.impl

Class ASingleBandMatrix

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<INDArray>, java.lang.Iterable<AVector>, INDArray, ISparse, IMatrix, IFastBands
    Direct Known Subclasses:
    ADiagonalMatrix


    public abstract class ASingleBandMatrix
    extends ABandedMatrix
    implements ISparse
    Abstract base class to represent sparse matrices with a single non-zero band Unlike ADiagonalMatrix, this matrix need not be square, and may have non-zero values on an arbitrary diagonal.
    See Also:
    Serialized Form
    • Constructor Detail

      • ASingleBandMatrix

        public ASingleBandMatrix()
    • Method Detail

      • nonZeroBand

        public abstract int nonZeroBand()
        Specifies which band of the matrix is nonzero
        Returns:
      • getNonZeroBand

        public abstract AVector getNonZeroBand()
        Gets the non-zero band from the matrix
        Returns:
      • subMatrix

        public AMatrix subMatrix(int rowStart,
                                 int rows,
                                 int colStart,
                                 int cols)
        Description copied from interface: IMatrix
        Gets a rectangular submatrix view of part of a matrix
        Specified by:
        subMatrix in interface IMatrix
        Overrides:
        subMatrix in class AMatrix
      • isIdentity

        public boolean isIdentity()
        Description copied from interface: IMatrix
        Checks if this is an identity matrix (i.e. 1.0 in leading diagonal, 0.0 elsewhere)
        Specified by:
        isIdentity in interface IMatrix
        Overrides:
        isIdentity in class AMatrix
        Returns:
        true if this matrix is a square identity matrix, false otherwise.
      • isZero

        public boolean isZero()
        Description copied from class: AMatrix
        Returns true if the matrix is the zero matrix (all components zero)
        Specified by:
        isZero in interface INDArray
        Overrides:
        isZero in class ABandedMatrix
      • isSparse

        public final boolean isSparse()
        Description copied from interface: INDArray
        Returns true if the array is in a sparse format
        Specified by:
        isSparse in interface INDArray
        Overrides:
        isSparse in class ABandedMatrix
      • getBand

        public AVector getBand(int band)
        Description copied from class: AMatrix
        Gets a specific band of the matrix, as a view vector. The band is truncated at the edges of the matrix, i.e. it does not wrap around the matrix.
        Specified by:
        getBand in interface IMatrix
        Specified by:
        getBand in interface IFastBands
        Specified by:
        getBand in class ABandedMatrix
        Returns:
      • hasUncountable

        public boolean hasUncountable()
        Description copied from class: AMatrix
        Checks to see if any element in the matrix is NaN of Infinite.
        Specified by:
        hasUncountable in interface INDArray
        Overrides:
        hasUncountable in class AMatrix
        Returns:
        True if any element in the matrix is NaN of Infinite.
      • rank

        public int rank()
        Description copied from class: AMatrix
        Calculate the rank of a matrix. This is equivalent to the maximum number of linearly independent rows or columns.
        Overrides:
        rank in class AMatrix

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.