Packages

class Matrix[A] extends argon.lang.Top[Matrix[A]] with lang.Struct[Matrix[A]] with Ref[scala.Array[Any], Matrix[A]]

A two-dimensional matrix on the host

Linear Supertypes
argon.lang.Struct[Matrix[A]], argon.lang.Top[Matrix[A]], Ref[Nothing, Matrix[A]], Exp[Nothing, Matrix[A]], ExpType[Nothing, spatial.lang.host.Matrix[A] @scala.annotation.unchecked.uncheckedVariance], Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Matrix
  2. Struct
  3. Top
  4. Ref
  5. Exp
  6. ExpType
  7. Equals
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Matrix()(implicit arg0: Type[A])

Type Members

  1. type L = Nothing
    Definition Classes
    Ref → Exp → ExpType

Value Members

  1. def !==(that: Any): argon.lang.Bit
    Definition Classes
    Top
  2. def ++(that: Any): argon.lang.Text
    Definition Classes
    Top
  3. def ===(that: Any): argon.lang.Bit
    Definition Classes
    Top
  4. val A: Type[A]
  5. val __neverMutable: Boolean
    Definition Classes
    Struct → ExpType
  6. def apply(i: lang.I32, j: lang.I32): A

    Returns the element in this Matrix at the given 2-dimensional address (i, j).

  7. val box: <:<[Matrix[A], lang.Struct[Matrix[A]]]
    Definition Classes
    Matrix → Struct
  8. final def canEqual(that: Any): Boolean
    Definition Classes
    Ref → Equals
  9. def cols: lang.I32

    Returns the number of columns in this Matrix.

  10. def data: Array[A]
  11. def dims: Seq[lang.I32]

    Returns the dimensions of this Matrix.

  12. def eql(that: Matrix[A]): lang.Bit
    Definition Classes
    Matrix → Struct → Top
  13. final def equals(x: Any): Boolean
    Definition Classes
    Ref → Equals → AnyRef → Any
  14. def field[F](name: String)(implicit arg0: Type[F], ctx: SrcCtx, state: State): F
    Definition Classes
    Struct
  15. def fieldMap: Seq[(String, Exp[_, _])]
    Definition Classes
    Struct
  16. def fields: Seq[(String, ExpType[Any, _ >: argon.lang.Fix[argon.lang.types.TRUE, argon.lang.types._32, argon.lang.types._0] with Array[A] <: argon.lang.Top[_ >: argon.lang.Fix[argon.lang.types.TRUE, argon.lang.types._32, argon.lang.types._0] with Array[A] <: argon.lang.Top[_ >: argon.lang.Fix[argon.lang.types.TRUE, argon.lang.types._32, argon.lang.types._0] with Array[A] <: Equals]]])]
    Definition Classes
    Matrix → Struct
  17. def flatten: Array[A]

    Returns a flattened, immutable @Array view of this Matrix's data.

  18. def foreach(func: (A) ⇒ lang.Void): lang.Void

    Applies the function func on each element in this Matrix.

  19. final def from(c: Any, warnOnLoss: Boolean, errorOnLoss: Boolean, isParam: Boolean, saturating: Boolean, unbiased: Boolean): spatial.lang.host.Matrix[A] @scala.annotation.unchecked.uncheckedVariance
    Definition Classes
    ExpType
  20. def getFrom(c: Any, isParam: Boolean, saturating: Boolean, unbiased: Boolean): Option[(spatial.lang.host.Matrix[A] @scala.annotation.unchecked.uncheckedVariance, Boolean)]
    Definition Classes
    ExpType
  21. final def hashCode(): Int
    Definition Classes
    Ref → AnyRef → Any
  22. def infix_!=(that: Any): argon.lang.Bit
    Definition Classes
    Top
  23. def infix_==(that: Any): argon.lang.Bit
    Definition Classes
    Top
  24. def length: lang.I32

    Returns the number of elements in the Matrix.

  25. def map[R](func: (A) ⇒ R)(implicit arg0: Type[R]): Matrix[R]

    Returns a new Matrix created using the mapping func over each element in this Matrix.

  26. def neql(that: Matrix[A]): lang.Bit
    Definition Classes
    Matrix → Struct → Top
  27. def reduce(rfunc: (A, A) ⇒ A): A

    Reduces the elements in this Matrix into a single element using associative function rfunc.

  28. def reorder(ordering: Seq[Int]): Matrix[A]

    Reorders the Matrix based on given ordering (i.e.- reorder(1,0) is the same as transpose)

  29. def rows: lang.I32

    Returns the number of rows in this Matrix.

  30. def t: Matrix[A]

    Returns the transpose of this Matrix.

  31. final def toString(): String
    Definition Classes
    Ref → AnyRef → Any
  32. def toText: argon.lang.Text
    Definition Classes
    Top
  33. def update(i: lang.I32, j: lang.I32, elem: A): lang.Void

    Updates the element at the given two dimensional address to elem.

  34. def zip[S, R](that: Matrix[S])(func: (A, S) ⇒ R)(implicit arg0: Type[S], arg1: Type[R]): Matrix[R]

    Returns a new Matrix created using the pairwise mapping func over each element in this Matrix and the corresponding element in that.