Class AbstractLongMatrix

    • Constructor Detail

      • AbstractLongMatrix

        public AbstractLongMatrix​(long... size)
    • Method Detail

      • getObject

        public final java.lang.Long getObject​(long... coordinates)
        Specified by:
        getObject in interface GenericMatrixMultiD<java.lang.Long>
      • getAsLong

        public final long getAsLong​(long... coordinates)
        Description copied from interface: GettersAndSetters
        Returns a long representation of an entry in the matrix. The stored value will be converted to a long as good as possible.
        Specified by:
        getAsLong in interface GettersAndSetters
        Overrides:
        getAsLong in class AbstractMatrix
        Parameters:
        coordinates - location of the entry
        Returns:
        a long representation of the entry @
      • setAsLong

        public final void setAsLong​(long value,
                                    long... coordinates)
        Description copied from interface: GettersAndSetters
        Sets an entry in the matrix to a long value. If the matrix cannot store long values, the value will be represented as good as possible.
        Specified by:
        setAsLong in interface GettersAndSetters
        Overrides:
        setAsLong in class AbstractMatrix
        Parameters:
        value - long value
        coordinates - location of the entry @
      • getAsDouble

        public final double getAsDouble​(long... coordinates)
        Description copied from interface: GettersAndSetters
        Returns a double representation of an entry in the matrix. The stored value will be converted to a double as good as possible.
        Specified by:
        getAsDouble in interface GettersAndSetters
        Overrides:
        getAsDouble in class AbstractMatrix
        Parameters:
        coordinates - location of the entry
        Returns:
        a double representation of the entry @
      • setAsDouble

        public final void setAsDouble​(double value,
                                      long... coordinates)
        Description copied from interface: GettersAndSetters
        Sets an entry in the matrix to a double value. If the matrix cannot store double values, the value will be represented as good as possible.
        Specified by:
        setAsDouble in interface GettersAndSetters
        Overrides:
        setAsDouble in class AbstractMatrix
        Parameters:
        value - double value
        coordinates - location of the entry @