Package org.ejml.data

Interface CMatrix

All Superinterfaces:
Matrix, Serializable
All Known Implementing Classes:
CMatrixD1, CMatrixRMaj

@Generated("org.ejml.data.ZMatrix") public interface CMatrix 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_F32 output)
    Returns the complex value of the matrix's element
    int
    Returns the number of elements in the internal data array
    float
    getImag(int row, int col)
    Returns the imaginary component of the matrix's element.
    float
    getReal(int row, int col)
    Returns the real component of the matrix's element.
    void
    set(int row, int col, float real, float imaginary)
    Set's the complex value of the matrix's element
    void
    setImag(int row, int col, float val)
    Sets the imaginary component of the matrix's element.
    void
    setReal(int row, int col, float 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_F32 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, float real, float 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

      float 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, float 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

      float 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, float 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.