Package org.ejml.data

Class BlockD3Matrix64F

java.lang.Object
org.ejml.data.BlockD3Matrix64F
All Implemented Interfaces:
java.io.Serializable, org.ejml.data.DMatrix, org.ejml.data.Matrix, org.ejml.data.ReshapeMatrix

public class BlockD3Matrix64F
extends java.lang.Object
implements org.ejml.data.ReshapeMatrix, org.ejml.data.DMatrix
Row-major block matrix declared using 3D array.
See Also:
Serialized Form
  • Field Summary

    Fields 
    Modifier and Type Field Description
    int blockLength  
    double[][][] blocks  
    int numCols
    Number of columns in the matrix.
    int numRows
    Number of rows in the matrix.
  • Constructor Summary

    Constructors 
    Constructor Description
    BlockD3Matrix64F​(int numRows, int numCols)  
    BlockD3Matrix64F​(int numRows, int numCols, int blockLength)  
  • Method Summary

    Modifier and Type Method Description
    <T extends org.ejml.data.Matrix>
    T
    copy()  
    BlockD3Matrix64F create​(int numRows, int numCols)  
    BlockD3Matrix64F createLike()  
    double get​(int row, int col)  
    double[][][] getData()  
    int getNumCols()  
    int getNumElements()  
    int getNumRows()  
    org.ejml.data.MatrixType getType()  
    void print()  
    void print​(java.lang.String format)  
    void reshape​(int numRows, int numCols)  
    void set​(int row, int col, double val)  
    void set​(org.ejml.data.Matrix original)  
    double unsafe_get​(int row, int col)  
    void unsafe_set​(int row, int col, double val)  
    void zero()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • blockLength

      public int blockLength
    • blocks

      public double[][][] blocks
    • numRows

      public int numRows
      Number of rows in the matrix.
    • numCols

      public int numCols
      Number of columns in the matrix.
  • Constructor Details

    • BlockD3Matrix64F

      public BlockD3Matrix64F​(int numRows, int numCols, int blockLength)
    • BlockD3Matrix64F

      public BlockD3Matrix64F​(int numRows, int numCols)
  • Method Details

    • getData

      public double[][][] getData()
    • reshape

      public void reshape​(int numRows, int numCols)
      Specified by:
      reshape in interface org.ejml.data.ReshapeMatrix
    • zero

      public void zero()
      Specified by:
      zero in interface org.ejml.data.Matrix
    • get

      public double get​(int row, int col)
      Specified by:
      get in interface org.ejml.data.DMatrix
    • set

      public void set​(int row, int col, double val)
      Specified by:
      set in interface org.ejml.data.DMatrix
    • unsafe_get

      public double unsafe_get​(int row, int col)
      Specified by:
      unsafe_get in interface org.ejml.data.DMatrix
    • unsafe_set

      public void unsafe_set​(int row, int col, double val)
      Specified by:
      unsafe_set in interface org.ejml.data.DMatrix
    • getNumRows

      public int getNumRows()
      Specified by:
      getNumRows in interface org.ejml.data.Matrix
    • getNumCols

      public int getNumCols()
      Specified by:
      getNumCols in interface org.ejml.data.Matrix
    • getNumElements

      public int getNumElements()
      Specified by:
      getNumElements in interface org.ejml.data.DMatrix
    • print

      public void print()
      Specified by:
      print in interface org.ejml.data.Matrix
    • print

      public void print​(java.lang.String format)
      Specified by:
      print in interface org.ejml.data.Matrix
    • copy

      public <T extends org.ejml.data.Matrix> T copy()
      Specified by:
      copy in interface org.ejml.data.Matrix
    • createLike

      public BlockD3Matrix64F createLike()
      Specified by:
      createLike in interface org.ejml.data.Matrix
    • create

      public BlockD3Matrix64F create​(int numRows, int numCols)
      Specified by:
      create in interface org.ejml.data.Matrix
    • set

      public void set​(org.ejml.data.Matrix original)
      Specified by:
      set in interface org.ejml.data.Matrix
    • getType

      public org.ejml.data.MatrixType getType()
      Specified by:
      getType in interface org.ejml.data.Matrix