Packages

case class Matrix(vs: Seq[Vec]) extends Iterable[Vec] with Product with Serializable

Case class for matrices of terms. Companion object provies other factory methods.

Linear Supertypes
Serializable, Serializable, Product, Iterable[Vec], IterableLike[Vec, Iterable[Vec]], Equals, GenIterable[Vec], GenIterableLike[Vec, Iterable[Vec]], Traversable[Vec], GenTraversable[Vec], GenericTraversableTemplate[Vec, Iterable], TraversableLike[Vec, Iterable[Vec]], GenTraversableLike[Vec, Iterable[Vec]], Parallelizable[Vec, ParIterable[Vec]], TraversableOnce[Vec], GenTraversableOnce[Vec], FilterMonadic[Vec, Iterable[Vec]], HasNewBuilder[Vec, Iterable[jp.kobe_u.copris.Vec] @scala.annotation.unchecked.uncheckedVariance], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Matrix
  2. Serializable
  3. Serializable
  4. Product
  5. Iterable
  6. IterableLike
  7. Equals
  8. GenIterable
  9. GenIterableLike
  10. Traversable
  11. GenTraversable
  12. GenericTraversableTemplate
  13. TraversableLike
  14. GenTraversableLike
  15. Parallelizable
  16. TraversableOnce
  17. GenTraversableOnce
  18. FilterMonadic
  19. HasNewBuilder
  20. AnyRef
  21. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Matrix(vs: Seq[Vec])

Type Members

  1. type Self = Iterable[Vec]
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  2. 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 %(x: Int): Matrix

    Remainder by the integer for each element

  4. def %(x: Term): Matrix

    Remainder by the term for each element

  5. def %(that: Matrix): Seq[Vec]

    Element-wise remainder

  6. def *(x: Int): Matrix

    Multiplication of the integer for each element

  7. def *(x: Term): Matrix

    Multiplication of the term for each element

  8. def *(that: Matrix): Seq[Vec]

    Element-wise multiplication

  9. def +(x: Int): Matrix

    Addition of the integer for each element

  10. def +(x: Term): Matrix

    Addition of the term for each element

  11. def +(that: Matrix): Seq[Vec]

    Element-wise addition

  12. def ++[B >: Vec, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[Vec], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  13. def ++:[B >: Vec, That](that: Traversable[B])(implicit bf: CanBuildFrom[Iterable[Vec], B, That]): That
    Definition Classes
    TraversableLike
  14. def ++:[B >: Vec, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[Vec], B, That]): That
    Definition Classes
    TraversableLike
  15. def -(x: Int): Matrix

    Subtraction of the integer for each element

  16. def -(x: Term): Matrix

    Subtraction of the term for each element

  17. def -(that: Matrix): Seq[Vec]

    Element-wise subtraction

  18. def /(x: Int): Matrix

    Division by the integer for each element

  19. def /(x: Term): Matrix

    Division by the term for each element

  20. def /(that: Matrix): Seq[Vec]

    Element-wise division

  21. def /:[B](z: B)(op: (B, Vec) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  22. def :*(m: Matrix): Matrix

    Returns the product with the given matrix

  23. def :*(v: Vec): Vec

    Returns the product with the given vector

  24. def :\[B](z: B)(op: (Vec, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  25. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  26. def addString(b: StringBuilder): StringBuilder
    Definition Classes
    TraversableOnce
  27. def addString(b: StringBuilder, sep: String): StringBuilder
    Definition Classes
    TraversableOnce
  28. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
    Definition Classes
    TraversableOnce
  29. def aggregate[B](z: ⇒ B)(seqop: (B, Vec) ⇒ B, combop: (B, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  30. def apply(i: Int, j: Int): Term

    Returns the (i,j) element

  31. def apply(i: Int): Vec

    Returns the i-th row vector

  32. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  33. def canEqual(that: Any): Boolean
    Definition Classes
    IterableLike → Equals
  34. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate() @throws( ... )
  35. def col(j: Int): Vec

    Returns the j-th column vector

  36. def collect[B, That](pf: PartialFunction[Vec, B])(implicit bf: CanBuildFrom[Iterable[Vec], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  37. def collectFirst[B](pf: PartialFunction[Vec, B]): Option[B]
    Definition Classes
    TraversableOnce
  38. def companion: GenericCompanion[Iterable]
    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → GenericTraversableTemplate
  39. def components: Seq[Term]

    Returns the sequence of elements

  40. def copyToArray[B >: Vec](xs: Array[B], start: Int, len: Int): Unit
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  41. def copyToArray[B >: Vec](xs: Array[B]): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  42. def copyToArray[B >: Vec](xs: Array[B], start: Int): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  43. def copyToBuffer[B >: Vec](dest: Buffer[B]): Unit
    Definition Classes
    TraversableOnce
  44. def count(p: (Vec) ⇒ Boolean): Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  45. def drop(n: Int): Iterable[Vec]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  46. def dropRight(n: Int): Iterable[Vec]
    Definition Classes
    IterableLike
  47. def dropWhile(p: (Vec) ⇒ Boolean): Iterable[Vec]
    Definition Classes
    TraversableLike → GenTraversableLike
  48. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  49. def exists(p: (Vec) ⇒ Boolean): Boolean
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  50. def filter(p: (Vec) ⇒ Boolean): Iterable[Vec]
    Definition Classes
    TraversableLike → GenTraversableLike
  51. def filterNot(p: (Vec) ⇒ Boolean): Iterable[Vec]
    Definition Classes
    TraversableLike → GenTraversableLike
  52. def find(p: (Vec) ⇒ Boolean): Option[Vec]
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  53. def flatMap[B, That](f: (Vec) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[Vec], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  54. def flatten[B](implicit asTraversable: (Vec) ⇒ GenTraversableOnce[B]): Iterable[B]
    Definition Classes
    GenericTraversableTemplate
  55. def fold[A1 >: Vec](z: A1)(op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  56. def foldLeft[B](z: B)(op: (B, Vec) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  57. def foldRight[B](z: B)(op: (Vec, B) ⇒ B): B
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  58. def forall(p: (Vec) ⇒ Boolean): Boolean
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  59. def foreach[U](f: (Vec) ⇒ U): Unit
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  60. def genericBuilder[B]: Builder[B, Iterable[B]]
    Definition Classes
    GenericTraversableTemplate
  61. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  62. def groupBy[K](f: (Vec) ⇒ K): Map[K, Iterable[Vec]]
    Definition Classes
    TraversableLike → GenTraversableLike
  63. def grouped(size: Int): Iterator[Iterable[Vec]]
    Definition Classes
    IterableLike
  64. def hasDefiniteSize: Boolean
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  65. def head: Vec
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  66. def headOption: Option[Vec]
    Definition Classes
    TraversableLike → GenTraversableLike
  67. def init: Iterable[Vec]
    Definition Classes
    TraversableLike → GenTraversableLike
  68. def inits: Iterator[Iterable[Vec]]
    Definition Classes
    TraversableLike
  69. def isEmpty: Boolean
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  70. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  71. final def isTraversableAgain: Boolean
    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  72. def iterator: Iterator[Vec]

    Returns the iterator of row vectors

    Returns the iterator of row vectors

    Definition Classes
    Matrix → IterableLike → GenIterableLike
  73. def last: Vec
    Definition Classes
    TraversableLike → GenTraversableLike
  74. def lastOption: Option[Vec]
    Definition Classes
    TraversableLike → GenTraversableLike
  75. def map[B, That](f: (Vec) ⇒ B)(implicit bf: CanBuildFrom[Iterable[Vec], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  76. def max: Vec

    Returns the max of row vectors

  77. def max(x: Int): Matrix

    Max by the integer for each element

  78. def max(x: Term): Matrix

    Max of the term for each element

  79. def max(that: Matrix): Seq[Vec]

    Element-wise max

  80. def max[B >: Vec](implicit cmp: Ordering[B]): Vec
    Definition Classes
    TraversableOnce → GenTraversableOnce
  81. def maxBy[B](f: (Vec) ⇒ B)(implicit cmp: Ordering[B]): Vec
    Definition Classes
    TraversableOnce → GenTraversableOnce
  82. def min: Vec

    Returns the min of row vectors

  83. def min(x: Int): Matrix

    Min by the integer for each element

  84. def min(x: Term): Matrix

    Min of the term for each element

  85. def min(that: Matrix): Seq[Vec]

    Element-wise min

  86. def min[B >: Vec](implicit cmp: Ordering[B]): Vec
    Definition Classes
    TraversableOnce → GenTraversableOnce
  87. def minBy[B](f: (Vec) ⇒ B)(implicit cmp: Ordering[B]): Vec
    Definition Classes
    TraversableOnce → GenTraversableOnce
  88. def mkString: String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  89. def mkString(sep: String): String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  90. def mkString(start: String, sep: String, end: String): String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  91. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  92. def newBuilder: Builder[Vec, Iterable[Vec]]
    Attributes
    protected[this]
    Definition Classes
    GenericTraversableTemplate → HasNewBuilder
  93. def nonEmpty: Boolean
    Definition Classes
    TraversableOnce → GenTraversableOnce
  94. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  95. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  96. def par: ParIterable[Vec]
    Definition Classes
    Parallelizable
  97. def parCombiner: Combiner[Vec, ParIterable[Vec]]
    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  98. def partition(p: (Vec) ⇒ Boolean): (Iterable[Vec], Iterable[Vec])
    Definition Classes
    TraversableLike → GenTraversableLike
  99. def prod: Vec

    Returns the product of row vectors

  100. def product[B >: Vec](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  101. def reduce[A1 >: Vec](op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  102. def reduceLeft[B >: Vec](op: (B, Vec) ⇒ B): B
    Definition Classes
    TraversableOnce
  103. def reduceLeftOption[B >: Vec](op: (B, Vec) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  104. def reduceOption[A1 >: Vec](op: (A1, A1) ⇒ A1): Option[A1]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  105. def reduceRight[B >: Vec](op: (Vec, B) ⇒ B): B
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  106. def reduceRightOption[B >: Vec](op: (Vec, B) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  107. def repr: Iterable[Vec]
    Definition Classes
    TraversableLike → GenTraversableLike
  108. def reversed: List[Vec]
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  109. def row(i: Int): Vec

    Returns the i-th row vector

  110. def sameElements[B >: Vec](that: GenIterable[B]): Boolean
    Definition Classes
    IterableLike → GenIterableLike
  111. def scan[B >: Vec, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Iterable[Vec], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  112. def scanLeft[B, That](z: B)(op: (B, Vec) ⇒ B)(implicit bf: CanBuildFrom[Iterable[Vec], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  113. def scanRight[B, That](z: B)(op: (Vec, B) ⇒ B)(implicit bf: CanBuildFrom[Iterable[Vec], 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.

  114. def seq: Iterable[Vec]
    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  115. def size: Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  116. def sizeHintIfCheap: Int
    Attributes
    protected[scala.collection]
    Definition Classes
    GenTraversableOnce
  117. def slice(from: Int, until: Int): Iterable[Vec]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  118. def sliding(size: Int, step: Int): Iterator[Iterable[Vec]]
    Definition Classes
    IterableLike
  119. def sliding(size: Int): Iterator[Iterable[Vec]]
    Definition Classes
    IterableLike
  120. def span(p: (Vec) ⇒ Boolean): (Iterable[Vec], Iterable[Vec])
    Definition Classes
    TraversableLike → GenTraversableLike
  121. def splitAt(n: Int): (Iterable[Vec], Iterable[Vec])
    Definition Classes
    TraversableLike → GenTraversableLike
  122. def stringPrefix: String
    Definition Classes
    TraversableLike → GenTraversableLike
  123. def subMatrix(i: Int, j: Int, rows: Int, cols: Int): Matrix

    Returns the sub-matrix

  124. def sum: Vec

    Returns the sum of row vectors

  125. def sum[B >: Vec](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  126. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  127. def tail: Iterable[Vec]
    Definition Classes
    TraversableLike → GenTraversableLike
  128. def tails: Iterator[Iterable[Vec]]
    Definition Classes
    TraversableLike
  129. def take(n: Int): Iterable[Vec]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  130. def takeRight(n: Int): Iterable[Vec]
    Definition Classes
    IterableLike
  131. def takeWhile(p: (Vec) ⇒ Boolean): Iterable[Vec]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  132. def thisCollection: Iterable[Vec]
    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  133. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, Vec, Col[Vec]]): Col[Vec]
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  134. def toArray[B >: Vec](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  135. def toBuffer[B >: Vec]: Buffer[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  136. def toCollection(repr: Iterable[Vec]): Iterable[Vec]
    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  137. def toIndexedSeq: IndexedSeq[Vec]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  138. def toIterable: Iterable[Vec]
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  139. def toIterator: Iterator[Vec]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  140. def toList: List[Vec]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  141. def toMap[T, U](implicit ev: <:<[Vec, (T, U)]): Map[T, U]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  142. def toSeq: Seq[Vec]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  143. def toSet[B >: Vec]: Set[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  144. def toStream: Stream[Vec]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  145. def toString(): String
    Definition Classes
    TraversableLike → Any
  146. def toTraversable: Traversable[Vec]
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  147. def toVec: Vec

    Returns the flattened vector

  148. def toVector: Vector[Vec]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  149. def transpose: Matrix

    Transposes the matrix

  150. def transpose[B](implicit asTraversable: (Vec) ⇒ GenTraversableOnce[B]): Iterable[Iterable[B]]
    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

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

  151. def unary_-: Matrix

    Negates the each element jp.kobe_u.copris.Neg

  152. def unzip[A1, A2](implicit asPair: (Vec) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])
    Definition Classes
    GenericTraversableTemplate
  153. def unzip3[A1, A2, A3](implicit asTriple: (Vec) ⇒ (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
    Definition Classes
    GenericTraversableTemplate
  154. def view(from: Int, until: Int): IterableView[Vec, Iterable[Vec]]
    Definition Classes
    IterableLike → TraversableLike
  155. def view: IterableView[Vec, Iterable[Vec]]
    Definition Classes
    IterableLike → TraversableLike
  156. val vs: Seq[Vec]
  157. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  158. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  159. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  160. def withFilter(p: (Vec) ⇒ Boolean): FilterMonadic[Vec, Iterable[Vec]]
    Definition Classes
    TraversableLike → FilterMonadic
  161. def zip[A1 >: Vec, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Iterable[Vec], (A1, B), That]): That
    Definition Classes
    IterableLike → GenIterableLike
  162. def zipAll[B, A1 >: Vec, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Iterable[Vec], (A1, B), That]): That
    Definition Classes
    IterableLike → GenIterableLike
  163. def zipWithIndex[A1 >: Vec, That](implicit bf: CanBuildFrom[Iterable[Vec], (A1, Int), That]): That
    Definition Classes
    IterableLike → GenIterableLike

Deprecated Value Members

  1. def *+(m: Matrix): Matrix

    Returns the product with the given matrix

    Returns the product with the given matrix

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.1) use :* instead

  2. def *+(v: Vec): Vec

    Returns the product with the given vector

    Returns the product with the given vector

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.1) use :* instead

  3. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Iterable[Vec]

Inherited from IterableLike[Vec, Iterable[Vec]]

Inherited from Equals

Inherited from GenIterable[Vec]

Inherited from GenIterableLike[Vec, Iterable[Vec]]

Inherited from Traversable[Vec]

Inherited from GenTraversable[Vec]

Inherited from GenericTraversableTemplate[Vec, Iterable]

Inherited from TraversableLike[Vec, Iterable[Vec]]

Inherited from GenTraversableLike[Vec, Iterable[Vec]]

Inherited from Parallelizable[Vec, ParIterable[Vec]]

Inherited from TraversableOnce[Vec]

Inherited from GenTraversableOnce[Vec]

Inherited from FilterMonadic[Vec, Iterable[Vec]]

Inherited from HasNewBuilder[Vec, Iterable[jp.kobe_u.copris.Vec] @scala.annotation.unchecked.uncheckedVariance]

Inherited from AnyRef

Inherited from Any

Ungrouped