Documentation of 'org.ujmp.core.doublematrix.impl.DenseFileMatrix' Java class
DenseFileMatrix
org.ujmp.core.doublematrix.impl

Class DenseFileMatrix

    • Constructor Detail

      • DenseFileMatrix

        public DenseFileMatrix(java.io.File file,
                               long... size)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • DenseFileMatrix

        public DenseFileMatrix(java.io.File file)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • DenseFileMatrix

        public DenseFileMatrix(java.io.File file,
                               int dataType,
                               long... size)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • DenseFileMatrix

        public DenseFileMatrix(java.io.File file,
                               long offset,
                               int dataType,
                               boolean readOnly,
                               long... size)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • DenseFileMatrix

        public DenseFileMatrix(int bufferSize,
                               java.io.File file,
                               long offset,
                               int dataType,
                               boolean readOnly,
                               long... size)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • DenseFileMatrix

        public DenseFileMatrix(long... size)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • DenseFileMatrix

        public DenseFileMatrix(Matrix m)
                        throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getBufferSize

        public int getBufferSize()
      • setBufferSize

        public void setBufferSize(int bufferSize)
      • getFile

        public java.io.File getFile()
      • getBytesPerValue

        public long getBytesPerValue()
      • getBitsPerValue

        public int getBitsPerValue()
      • getFileLength

        public long getFileLength()
      • getDataType

        public int getDataType()
      • getDouble

        public double getDouble(long... c)
        Description copied from interface: DoubleMatrixMultiD
        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:
        getDouble in interface DoubleMatrixMultiD
        Parameters:
        c - location of the entry
        Returns:
        a double representation of the entry @
      • setSize

        public void setSize(long... size)
        Description copied from interface: BaseMatrixProperties
        Sets the size of the matrix. This is an optional method that is not implemented for all matrices. If this method is not implemented, a MatrixException is thrown.
        Specified by:
        setSize in interface BaseMatrixProperties
        Overrides:
        setSize in class AbstractMatrix
        Parameters:
        size - the new size of the matrix
      • setDouble

        public void setDouble(double value,
                              long... c)
        Description copied from interface: DoubleMatrixMultiD
        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:
        setDouble in interface DoubleMatrixMultiD
        Parameters:
        value - double value
        c - location of the entry @
      • getShortLittleEndian

        public static final int getShortLittleEndian(byte[] bytes)
      • getIntLittleEndian

        public static final int getIntLittleEndian(byte[] bytes)
      • erase

        public void erase()
                   throws java.io.IOException
        Specified by:
        erase in interface Erasable
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.