Packages

class DenseMat[T] extends ImmutableMat[T]

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DenseMat
  2. ImmutableMat
  3. Mat
  4. Traversable
  5. GenTraversable
  6. GenericTraversableTemplate
  7. TraversableLike
  8. GenTraversableLike
  9. Parallelizable
  10. TraversableOnce
  11. GenTraversableOnce
  12. FilterMonadic
  13. HasNewBuilder
  14. AnyRef
  15. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DenseMat(numRows: Int, numColumns: Int, items: Array[T])(implicit arg0: LinField[T], arg1: ClassTag[T])

Type Members

  1. class ColVec extends ImmutableVec[T]
    Definition Classes
    Mat
  2. class RowVec extends ImmutableVec[T]
    Definition Classes
    Mat
  3. type Self = Traversable[T]
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  4. class WithFilter extends FilterMonadic[A, Repr]
    Definition Classes
    TraversableLike

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def *(that: Mat[T]): Mat[T]
    Definition Classes
    Mat
  4. def *(that: Vec[T]): Vec[T]
    Definition Classes
    Mat
  5. def *(that: T): Mat[T]
    Definition Classes
    Mat
  6. def +(that: T): Mat[T]
    Definition Classes
    Mat
  7. def +(that: Mat[T]): Mat[T]
    Definition Classes
    Mat
  8. def ++[B >: T, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Traversable[T], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  9. def ++:[B >: T, That](that: Traversable[B])(implicit bf: CanBuildFrom[Traversable[T], B, That]): That
    Definition Classes
    TraversableLike
  10. def ++:[B >: T, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Traversable[T], B, That]): That
    Definition Classes
    TraversableLike
  11. def -(that: T): Mat[T]
    Definition Classes
    Mat
  12. def -(that: Mat[T]): Mat[T]
    Definition Classes
    Mat
  13. def /:[B](z: B)(op: (B, T) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  14. def :\[B](z: B)(op: (T, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  15. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def addString(b: StringBuilder): StringBuilder
    Definition Classes
    TraversableOnce
  17. def addString(b: StringBuilder, sep: String): StringBuilder
    Definition Classes
    TraversableOnce
  18. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
    Definition Classes
    TraversableOnce
  19. def aggregate[B](z: ⇒ B)(seqop: (B, T) ⇒ B, combop: (B, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  20. def apply(row: Int, col: Int): T
    Definition Classes
    DenseMatMat
  21. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  22. def ataLeastSquaresSolveFor(y: Vec[T]): LinearSystemSolution[T]

    Solve using AtAx = Aty method.

    Solve using AtAx = Aty method.

    Use leastSquaresSolveFor() instead unless you really must have this version.

    Definition Classes
    Mat
  23. val classTag: ClassTag[T]
    Definition Classes
    Mat
  24. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def collect[B, That](pf: PartialFunction[T, B])(implicit bf: CanBuildFrom[Traversable[T], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  26. def collectFirst[B](pf: PartialFunction[T, B]): Option[B]
    Definition Classes
    TraversableOnce
  27. def column(index: Int): Vec[T]
    Definition Classes
    Mat
  28. lazy val columnSpace: Basis[T]

    Calculate A basis for the column space of this matrix.

    Calculate A basis for the column space of this matrix. Note that this is just one of the bases that span this space.

    Definition Classes
    ImmutableMatMat
  29. def columns: Seq[Vec[T]]
    Definition Classes
    Mat
  30. def companion: GenericCompanion[Traversable]
    Definition Classes
    Traversable → GenTraversable → GenericTraversableTemplate
  31. def copyToArray[B >: T](xs: Array[B], start: Int, len: Int): Unit
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  32. def copyToArray[B >: T](xs: Array[B]): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  33. def copyToArray[B >: T](xs: Array[B], start: Int): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  34. def copyToBuffer[B >: T](dest: Buffer[B]): Unit
    Definition Classes
    TraversableOnce
  35. def count(p: (T) ⇒ Boolean): Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  36. def dataToString: String
    Definition Classes
    Mat
  37. def drop(n: Int): Traversable[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  38. def dropWhile(p: (T) ⇒ Boolean): Traversable[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  39. def echelonForm: (Mat[T], Mat[T])

    Returns U and M such that MA = U.

    Returns U and M such that MA = U.

    A is this matrix. U is a row echelon matrix. M is a matrix containing the transforms to get to U.

    returns

    (U,M)

    Definition Classes
    ImmutableMatMat
  40. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  41. def equals(that: Any): Boolean
    Definition Classes
    Mat → AnyRef → Any
  42. def exists(p: (T) ⇒ Boolean): Boolean
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  43. def factory: MatFactory
    Definition Classes
    Mat
  44. def filter(p: (T) ⇒ Boolean): Traversable[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  45. def filterNot(p: (T) ⇒ Boolean): Traversable[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  46. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  47. def find(p: (T) ⇒ Boolean): Option[T]
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  48. def flatMap[B, That](f: (T) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Traversable[T], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  49. def flatten[B](implicit asTraversable: (T) ⇒ GenTraversableOnce[B]): Traversable[B]
    Definition Classes
    GenericTraversableTemplate
  50. def fold[A1 >: T](z: A1)(op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  51. def foldLeft[B](z: B)(op: (B, T) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  52. def foldRight[B](z: B)(op: (T, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  53. def forall(p: (T) ⇒ Boolean): Boolean
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  54. def foreach[U](f: (T) ⇒ U): Unit
    Definition Classes
    Mat → GenericTraversableTemplate → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  55. def frobeniusNorm(implicit ips: InnerProductSpace[T]): T
    Definition Classes
    Mat
  56. def genericBuilder[B]: Builder[B, Traversable[B]]
    Definition Classes
    GenericTraversableTemplate
  57. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  58. def groupBy[K](f: (T) ⇒ K): Map[K, Traversable[T]]
    Definition Classes
    TraversableLike → GenTraversableLike
  59. def hasDefiniteSize: Boolean
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  60. def hashCode(): Int
    Definition Classes
    Mat → AnyRef → Any
  61. def head: T
    Definition Classes
    TraversableLike → GenTraversableLike
  62. def headOption: Option[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  63. def init: Traversable[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  64. def inits: Iterator[Traversable[T]]
    Definition Classes
    TraversableLike
  65. lazy val inverse: Mat[T]

    Invert this matrix if it is invertible.

    Invert this matrix if it is invertible.

    returns

    inverse of this matrix.

    Definition Classes
    ImmutableMatMat
  66. lazy val isColumnEchelon: Boolean
    Definition Classes
    ImmutableMatMat
  67. lazy val isDiagonal: Boolean
    Definition Classes
    ImmutableMatMat
  68. def isEmpty: Boolean
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  69. def isIdentity: Boolean
    Definition Classes
    Mat
  70. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  71. def isInvertible: Boolean
    Definition Classes
    Mat
  72. lazy val isLowerTriangular: Boolean
    Definition Classes
    ImmutableMatMat
  73. lazy val isRowEchelon: Boolean
    Definition Classes
    ImmutableMatMat
  74. final def isTraversableAgain: Boolean
    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  75. lazy val isUpperTriangular: Boolean
    Definition Classes
    ImmutableMatMat
  76. def isZero: Boolean
    Definition Classes
    Mat
  77. def last: T
    Definition Classes
    TraversableLike → GenTraversableLike
  78. def lastOption: Option[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  79. def leastSquaresSolveFor(y: Vec[T]): Vec[T]

    Solve Ax = y by least squares method, giving an approximate x.

    Solve Ax = y by least squares method, giving an approximate x.

    A is this matrix which, y is provided vector. Returns approximate solution x.

    returns

    x

    Definition Classes
    Mat
  80. val linField: LinField[T]
    Definition Classes
    Mat
  81. def linearIndependentColumnSubset: IndexedSeq[Vec[T]]

    Returns a subset of the columns that are linearly independent

    Returns a subset of the columns that are linearly independent

    Definition Classes
    Mat
  82. def linearIndependentRowSubset: IndexedSeq[Vec[T]]

    Returns a subset of the rows that are linearly independent

    Returns a subset of the rows that are linearly independent

    Definition Classes
    Mat
  83. def map[U](f: (T) ⇒ U)(implicit arg0: LinField[U], arg1: ClassTag[U]): Mat[U]
    Definition Classes
    Mat
  84. def map[B, That](f: (T) ⇒ B)(implicit bf: CanBuildFrom[Traversable[T], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  85. def mapWithIndexes[U](f: (Int, Int) ⇒ (T) ⇒ U)(implicit arg0: LinField[U], arg1: ClassTag[U]): Mat[U]
    Definition Classes
    Mat
  86. def max[B >: T](implicit cmp: Ordering[B]): T
    Definition Classes
    TraversableOnce → GenTraversableOnce
  87. def maxBy[B](f: (T) ⇒ B)(implicit cmp: Ordering[B]): T
    Definition Classes
    TraversableOnce → GenTraversableOnce
  88. def min[B >: T](implicit cmp: Ordering[B]): T
    Definition Classes
    TraversableOnce → GenTraversableOnce
  89. def minBy[B](f: (T) ⇒ B)(implicit cmp: Ordering[B]): T
    Definition Classes
    TraversableOnce → GenTraversableOnce
  90. def mkString: String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  91. def mkString(sep: String): String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  92. def mkString(start: String, sep: String, end: String): String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  93. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  94. def newBuilder: Builder[T, Traversable[T]]
    Attributes
    protected[this]
    Definition Classes
    GenericTraversableTemplate → HasNewBuilder
  95. def nonEmpty: Boolean
    Definition Classes
    TraversableOnce → GenTraversableOnce
  96. final def notify(): Unit
    Definition Classes
    AnyRef
  97. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  98. lazy val nullSpace: Basis[T]

    Calculate the null space for this matrix

    Calculate the null space for this matrix

    Definition Classes
    ImmutableMatMat
  99. lazy val nullity: Int
    Definition Classes
    ImmutableMatMat
  100. val numColumns: Int
    Definition Classes
    DenseMatMat
  101. val numRows: Int
    Definition Classes
    DenseMatMat
  102. def par: ParIterable[T]
    Definition Classes
    Parallelizable
  103. def parCombiner: Combiner[T, ParIterable[T]]
    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  104. def partition(p: (T) ⇒ Boolean): (Traversable[T], Traversable[T])
    Definition Classes
    TraversableLike → GenTraversableLike
  105. def product[B >: T](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  106. def qrDecomposition(implicit ips: InnerProductSpace[T]): (Mat[T], Mat[T])

    Returns the QR decomposition of this matrix.

    Returns the QR decomposition of this matrix.

    returns

    (Q,R) where Q * R = this

    Definition Classes
    Mat
  107. def qrLeastSquaresSolveFor(y: Vec[T])(implicit ips: InnerProductSpace[T]): Vec[T]

    Least squares solve using Q/R decomposition.

    Least squares solve using Q/R decomposition.

    Use leastSquaresSolveFor() instead unless you really must have the Q/R version.

    Definition Classes
    Mat
  108. lazy val rank: Int
    Definition Classes
    ImmutableMatMat
  109. def reduce[A1 >: T](op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  110. def reduceLeft[B >: T](op: (B, T) ⇒ B): B
    Definition Classes
    TraversableOnce
  111. def reduceLeftOption[B >: T](op: (B, T) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  112. def reduceOption[A1 >: T](op: (A1, A1) ⇒ A1): Option[A1]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  113. def reduceRight[B >: T](op: (T, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  114. def reduceRightOption[B >: T](op: (T, B) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  115. def reducedRowEchelonForm: (Mat[T], IndexedSeq[Int])

    Returns row reduced echelon form and row swap list.

    Returns row reduced echelon form and row swap list.

    U is the reduced row echelon matrix. rows is a mapping of rows from original matrix to U

    returns

    (U, rows)

    Definition Classes
    ImmutableMatMat
  116. def repr: Traversable[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  117. def reversed: List[T]
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  118. def row(index: Int): Vec[T]
    Definition Classes
    Mat
  119. lazy val rowSpace: Basis[T]

    Calculate A basis for the row space of this matrix.

    Calculate A basis for the row space of this matrix. Note that this is just one of the bases that span this space.

    Definition Classes
    ImmutableMatMat
  120. def rows: Seq[Vec[T]]
    Definition Classes
    Mat
  121. def scan[B >: T, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Traversable[T], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  122. def scanLeft[B, That](z: B)(op: (B, T) ⇒ B)(implicit bf: CanBuildFrom[Traversable[T], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  123. def scanRight[B, That](z: B)(op: (T, B) ⇒ B)(implicit bf: CanBuildFrom[Traversable[T], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.

  124. def seq: Traversable[T]
    Definition Classes
    Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  125. val size: Int
    Definition Classes
    Mat → GenTraversableLike → TraversableOnce → GenTraversableOnce
  126. def sizeHintIfCheap: Int
    Attributes
    protected[scala.collection]
    Definition Classes
    GenTraversableOnce
  127. def slice(from: Int, until: Int): Traversable[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  128. def solveFor(y: Vec[T]): LinearSystemSolution[T]

    Solve Ax = y for this matrix.

    Solve Ax = y for this matrix.

    A is this matrix, y is provided vector. Returns solution x

    returns

    x such that this * x = y

    Definition Classes
    Mat
  129. def span(p: (T) ⇒ Boolean): (Traversable[T], Traversable[T])
    Definition Classes
    TraversableLike → GenTraversableLike
  130. def splitAt(n: Int): (Traversable[T], Traversable[T])
    Definition Classes
    TraversableLike → GenTraversableLike
  131. def stringPrefix: String
    Definition Classes
    TraversableLike → GenTraversableLike
  132. def sum[B >: T](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  133. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  134. def tail: Traversable[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  135. def tails: Iterator[Traversable[T]]
    Definition Classes
    TraversableLike
  136. def take(n: Int): Traversable[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  137. def takeWhile(p: (T) ⇒ Boolean): Traversable[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  138. def thisCollection: Traversable[T]
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  139. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, T, Col[T]]): Col[T]
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  140. def toArray[B >: T](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  141. def toBuffer[B >: T]: Buffer[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  142. def toCollection(repr: Traversable[T]): Traversable[T]
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  143. def toIndexedSeq: IndexedSeq[T]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  144. def toIterable: Iterable[T]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  145. def toIterator: Iterator[T]
    Definition Classes
    TraversableLike → GenTraversableOnce
  146. def toList: List[T]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  147. def toMap[T, U](implicit ev: <:<[T, (T, U)]): Map[T, U]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  148. def toSeq: Seq[T]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  149. def toSet[B >: T]: Set[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  150. def toStream: Stream[T]
    Definition Classes
    TraversableLike → GenTraversableOnce
  151. def toString(): String
    Definition Classes
    Mat → TraversableLike → AnyRef → Any
  152. def toTraversable: Traversable[T]
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  153. def toVector: Vector[T]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  154. def transpose[B](implicit asTraversable: (T) ⇒ GenTraversableOnce[B]): Traversable[Traversable[B]]
    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.

  155. lazy val transpose: Mat[T]
    Definition Classes
    ImmutableMatMat
  156. def triangularSolveFor(y: Vec[T]): Vec[T]

    Solve Ax = y for this TRIANGULAR matrix.

    Solve Ax = y for this TRIANGULAR matrix.

    A is this matrix which is required to be upper triangular, y is provided vector. Returns solution x

    returns

    x such that this * x = y

    Definition Classes
    Mat
  157. def unzip[A1, A2](implicit asPair: (T) ⇒ (A1, A2)): (Traversable[A1], Traversable[A2])
    Definition Classes
    GenericTraversableTemplate
  158. def unzip3[A1, A2, A3](implicit asTriple: (T) ⇒ (A1, A2, A3)): (Traversable[A1], Traversable[A2], Traversable[A3])
    Definition Classes
    GenericTraversableTemplate
  159. def vectorFactory: VecFactory
    Definition Classes
    Mat
  160. def view(from: Int, until: Int): TraversableView[T, Traversable[T]]
    Definition Classes
    TraversableLike
  161. def view: TraversableView[T, Traversable[T]]
    Definition Classes
    TraversableLike
  162. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  163. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  164. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  165. def withFilter(p: (T) ⇒ Boolean): FilterMonadic[T, Traversable[T]]
    Definition Classes
    TraversableLike → FilterMonadic

Inherited from ImmutableMat[T]

Inherited from Mat[T]

Inherited from Traversable[T]

Inherited from GenTraversable[T]

Inherited from TraversableLike[T, Traversable[T]]

Inherited from GenTraversableLike[T, Traversable[T]]

Inherited from Parallelizable[T, ParIterable[T]]

Inherited from TraversableOnce[T]

Inherited from GenTraversableOnce[T]

Inherited from FilterMonadic[T, Traversable[T]]

Inherited from HasNewBuilder[T, Traversable[T]]

Inherited from AnyRef

Inherited from Any

Ungrouped