Class/Object

cogx.cogmath.algebra.complex

ComplexMatrix

Related Docs: object ComplexMatrix | package complex

Permalink

class ComplexMatrix extends Serializable

An immutable matrix of complex numbers.

Annotations
@SerialVersionUID()
Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ComplexMatrix
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ComplexMatrix(rows: Array[ComplexArray])

    Permalink

    Create a ComplexMatrix from an array of "rows" data.

  2. new ComplexMatrix(data: Array[Array[Complex]])

    Permalink

    Create a ComplexMatrix from a 2D array of complex elements.

  3. new ComplexMatrix(real: real.Matrix, imaginary: real.Matrix)

    Permalink

    Create a ComplexMatrix from a real and imaginary Matrices.

  4. new ComplexMatrix(matrix: real.Matrix)

    Permalink

    Coerce a (mutable) real Matrix to an immutable ComplexMatrix.

  5. new ComplexMatrix(rows: Int, columns: Int)

    Permalink

    Create a rows x columns complex matrix filled with zeros.

  6. new ComplexMatrix(rows: Int, columns: Int, f: (Int, Int) ⇒ Complex)

    Permalink

    Create a rows x columns complex matrix with elements defined by f.

  7. new ComplexMatrix(rows: Int, columns: Int, data: Array[Array[Complex]])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def *(c: Complex): ComplexMatrix

    Permalink
  4. def *(d: Float): ComplexMatrix

    Permalink
  5. def +(that: ComplexMatrix): ComplexMatrix

    Permalink
  6. def +(d: Complex): ComplexMatrix

    Permalink
  7. def +(d: Float): ComplexMatrix

    Permalink
  8. def -(that: ComplexMatrix): ComplexMatrix

    Permalink
  9. def -(d: Complex): ComplexMatrix

    Permalink
  10. def -(d: Float): ComplexMatrix

    Permalink
  11. def :*(that: ComplexMatrix): ComplexMatrix

    Permalink

    Element-wise multiplication of two complex matrices.

  12. def :/(that: ComplexMatrix): ComplexMatrix

    Permalink

    Element-wise division of two complex matrices.

  13. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def apply(row: Int, column: Int): Complex

    Permalink

    Read element (row, column) of this complex matrix (rarely used).

  15. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. val columns: Int

    Permalink
  18. def combine(that: ComplexMatrix, f: (Complex, Complex) ⇒ Complex): ComplexMatrix

    Permalink
  19. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  21. def expand(bigRows: Int, bigColumns: Int, borderFill: Boolean): ComplexMatrix

    Permalink

    Expand the matrix, optionally extending the border into the expanded region.

    Expand the matrix, optionally extending the border into the expanded region. This operation is a key part of the FFT. The new matrix is of size bigRows x bigColumns and element (0, 0) of this is anchored at (0, 0) in the larger matrix. If borderFill is true, then the four edges of the matrix are extended evenly in all directions, as though the bigger matrix were actually a torus with opposite edges touching.

  22. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  24. def getData: Array[Array[Complex]]

    Permalink

    Get the data in the tensor, flattened to a linear array.

    Get the data in the tensor, flattened to a linear array.

    Attributes
    protected
  25. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  26. def imaginaryPart: real.Matrix

    Permalink

    Get the imaginary part of the matrix.

  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def map(f: (Complex) ⇒ Complex): ComplexMatrix

    Permalink
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. def print: Unit

    Permalink

    Print out the matrix for debugging.

  33. def read(index: Int): Array[Complex]

    Permalink

    Tensor accessor.

    Tensor accessor.

    Attributes
    protected[cogx]
  34. def realPart: real.Matrix

    Permalink

    Get the real part of the matrix.

  35. val rows: Int

    Permalink
  36. val shape: geometry.Shape

    Permalink
  37. def shift(shiftRows: Int, shiftColumns: Int): ComplexMatrix

    Permalink

    Shift a matrix with zero fill on the edges.

    Shift a matrix with zero fill on the edges.

    shiftRows

    Number of rows to shift this down.

    shiftColumns

    Number of columns to shift this to the right.

    returns

    Shifted complex matrix, zero-filling on edges.

  38. def shiftCyclic(deltaRows: Int, deltaColumns: Int): ComplexMatrix

    Permalink

    Shifts the elements of a matrix cyclicly as though it were a torus, wrapping around the left side to the right side, and the top to the bottom.

    Shifts the elements of a matrix cyclicly as though it were a torus, wrapping around the left side to the right side, and the top to the bottom. The rotation is specified by the tuple("deltaRows", "deltaColumns"). For example, the tuple value (2, 3) would cause the element at location (0, 0) to be moved to location (2, 3). In a 5 x 5 matrix, the same tuple would cause the element at (4, 4) to be moved to (1, 2), wrapping around the torus. Returns the cyclicly shifted matrix.

  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  40. def toRowVectors: Array[ComplexArray]

    Permalink

    Break this into an array of row vectors.

  41. def toString(): String

    Permalink
    Definition Classes
    ComplexMatrix → AnyRef → Any
  42. def transpose: ComplexMatrix

    Permalink

    Transpose this.

  43. def trim(smallRows: Int, smallColumns: Int): ComplexMatrix

    Permalink

    Trim this to a smallRows x smallColumns complex matrix.

  44. def update(row: Int, column: Int, value: Complex): Unit

    Permalink

    Internal-only method for writing an element in this.

  45. def upsample: ComplexMatrix

    Permalink
  46. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. def ~==(that: ComplexMatrix): Boolean

    Permalink

    Compare this and that for approximate equality.

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped