Class/Object

cogx.cogmath.algebra.real

Tensor3

Related Docs: object Tensor3 | package real

Permalink

class Tensor3 extends AnyRef

An order-3 Tensor

This is used primarily by the 3D FFT.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Tensor3
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Tensor3(layers: Int, rows: Int, columns: Int)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(layer: Int, row: Int, column: Int): Float

    Permalink

    Read location ("slice", "row", "column").

  5. def asArrays(axis: Int): Array[Array[VirtualArray]]

    Permalink

    View the matrix as though it were a 2D array of arrays oriented along the specified "axis" (0 => layer axis, 1 => row axis, 2 => col axis).

    View the matrix as though it were a 2D array of arrays oriented along the specified "axis" (0 => layer axis, 1 => row axis, 2 => col axis).

    These arrays are both readable and writable and access the elements in this matrix.

  6. final def asInstanceOf[T0]: T0

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

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

    Permalink
  9. def copy: Tensor3

    Permalink

    Make an exact copy of "this".

  10. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def expand(bigShape: geometry.Shape, borderFill: Boolean = false): Tensor3

    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.

  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def flip: Tensor3

    Permalink

    Flip the matrix across each axis, needed for convolution.

  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. val layers: Int

    Permalink
  19. def map(f: (Float) ⇒ Float): Tensor3

    Permalink

    Map each element of "this" using "f".

  20. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  23. def print: Unit

    Permalink

    Print out a matrix 3d for debugging.

  24. val rows: Int

    Permalink
  25. def shift(deltaSlice: Int, deltaRow: Int, deltaCol: Int): Tensor3

    Permalink

    Shift the values in "this" as though "this" were a torus with wrap around at the edges, top to bottom, left to right.

    Shift the values in "this" as though "this" were a torus with wrap around at the edges, top to bottom, left to right. The shifting is negative, so the value in this at location ("deltaRows", "deltaColumns") gets shifted to location (0, 0) in the result.

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

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. def update(layer: Int, row: Int, column: Int, value: Float): Unit

    Permalink

    Write location ("layer", "row", "column") with "value".

  29. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped