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

Class UpperTriangularMatrix

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<INDArray>, java.lang.Iterable<AVector>, INDArray, IMatrix, IFastColumns


    public final class UpperTriangularMatrix
    extends ATriangularMatrix
    implements IFastColumns
    Class for an upper triangular matrix packed densely by columns. Mutable only in the upper triangular elements Mostly useful for space efficiency when storing triangular matrices, but is also optimised for certain common operations on triangular matrices.
    See Also:
    Serialized Form
    • Method Detail

      • isUpperTriangular

        public boolean isUpperTriangular()
        Description copied from class: AMatrix
        Returns true if a matrix is upper triangular An upper triangular matrix is defined as having all elements equal to 0.0 where i > j
        Overrides:
        isUpperTriangular in class AMatrix
      • lowerBandwidthLimit

        public int lowerBandwidthLimit()
        Description copied from class: AMatrix
        A limit on the lower bandwidth of the banded matrix. Actual lower bandwidth is guaranteed to be less than or equal to this value. Implementation should be O(1).
        Overrides:
        lowerBandwidthLimit in class AMatrix
        Returns:
      • lowerBandwidth

        public int lowerBandwidth()
        Description copied from class: AMatrix
        Computes the lower bandwidth of a matrix, i.e. the number of bands below the leading diagonal that cover all non-zero values
        Overrides:
        lowerBandwidth in class AMatrix
        Returns:
      • 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 class ATriangularMatrix
        Returns:
      • get

        public double get(int i,
                          int j)
        Description copied from interface: INDArray
        Returns the double value at the specified position in a 2D matrix
        Specified by:
        get in interface INDArray
        Specified by:
        get in interface IMatrix
        Overrides:
        get in class AArrayMatrix
      • unsafeGet

        public double unsafeGet(int i,
                                int j)
        Description copied from class: AMatrix
        Gets an element in the matrix in an unsafe fashion, without performing bound checks The result is undefined if the row and column are out of bounds.
        Overrides:
        unsafeGet in class AArrayMatrix
        Returns:
      • unsafeSet

        public void unsafeSet(int i,
                              int j,
                              double value)
        Description copied from class: AMatrix
        Sets an element value in the matrix in an unsafe fashion, without performing bound checks The result is undefined if the row and column are out of bounds.
        Overrides:
        unsafeSet in class AArrayMatrix
      • getColumnView

        public AVector getColumnView(int j)
        Description copied from interface: IMatrix
        Returns a column of the matrix as a vector view. May be used to modify the original matrix.
        Specified by:
        getColumnView in interface IMatrix
        Overrides:
        getColumnView in class AMatrix
      • getTranspose

        public LowerTriangularMatrix getTranspose()
        Description copied from interface: INDArray
        Returns the transpose of this array. A transpose of an array is equivalent to reversing the order of dimensions. May or may not return a view depending on the array type.
        Specified by:
        getTranspose in interface INDArray
        Specified by:
        getTranspose in interface IMatrix
        Overrides:
        getTranspose in class AMatrix
        Returns:
        the transpose of this matrix
      • equals

        public boolean equals(AMatrix a)
        Description copied from class: AMatrix
        Returns true if this matrix is exactly equal to another matrix
        Overrides:
        equals in class AMatrix
      • exactClone

        public AMatrix exactClone()
        Description copied from interface: INDArray
        Creates a deep clone of an array, using the same class implementation as the original array
        Specified by:
        exactClone in interface INDArray
        Specified by:
        exactClone in class AMatrix
        Returns:
        A clone of the original array

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.