Package org.ejml.data

Interface ZMatrix

All Superinterfaces:
Matrix, Serializable
All Known Implementing Classes:
ZMatrixD1, ZMatrixRMaj

public interface ZMatrix extends Matrix
Interface for all complex 64 bit floating point rectangular matrices.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    get(int row, int col, Complex_F64 output)
    Returns the complex value of the matrix's element
    int
    Returns the number of elements in the internal data array
    double
    getImag(int row, int col)
    Returns the imaginary component of the matrix's element.
    double
    getReal(int row, int col)
    Returns the real component of the matrix's element.
    void
    set(int row, int col, double real, double imaginary)
    Set's the complex value of the matrix's element
    void
    setImag(int row, int col, double val)
    Sets the imaginary component of the matrix's element.
    void
    setReal(int row, int col, double val)
    Sets the real component of the matrix's element.

    Methods inherited from interface org.ejml.data.Matrix

    copy, create, createLike, getNumCols, getNumRows, getType, print, print, setTo, zero
  • Method Details

    • get

      void get(int row, int col, Complex_F64 output)
      Returns the complex value of the matrix's element
      Parameters:
      row - Matrix element's row index..
      col - Matrix element's column index.
      output - Storage for the complex number
    • set

      void set(int row, int col, double real, double imaginary)
      Set's the complex value of the matrix's element
      Parameters:
      row - Matrix element's row index..
      col - Matrix element's column index.
      real - The real component
      imaginary - The imaginary component
    • getReal

      double getReal(int row, int col)
      Returns the real component of the matrix's element.
      Parameters:
      row - Matrix element's row index..
      col - Matrix element's column index.
      Returns:
      The specified element's value.
    • setReal

      void setReal(int row, int col, double val)
      Sets the real component of the matrix's element.
      Parameters:
      row - Matrix element's row index..
      col - Matrix element's column index.
      val - The element's new value.
    • getImag

      double getImag(int row, int col)
      Returns the imaginary component of the matrix's element.
      Parameters:
      row - Matrix element's row index..
      col - Matrix element's column index.
      Returns:
      The specified element's value.
    • setImag

      void setImag(int row, int col, double val)
      Sets the imaginary component of the matrix's element.
      Parameters:
      row - Matrix element's row index..
      col - Matrix element's column index.
      val - The element's new value.
    • getDataLength

      int getDataLength()
      Returns the number of elements in the internal data array
      Returns:
      Number of elements in the data array.