jp.kobe_u.copris

Matrix

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[Vec]], 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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

Type Members

  1. type Self = Iterable[Vec]

    Attributes
    protected
    Definition Classes
    TraversableLike
  2. class WithFilter extends FilterMonadic[A, Repr]

    Definition Classes
    TraversableLike

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def %(x: Int): Matrix

    Remainder by the integer for each element

  5. def %(x: Term): Matrix

    Remainder by the term for each element

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

    Element-wise remainder

  7. def *(x: Int): Matrix

    Multiplication of the integer for each element

  8. def *(x: Term): Matrix

    Multiplication of the term for each element

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

    Element-wise multiplication

  10. def +(x: Int): Matrix

    Addition of the integer for each element

  11. def +(x: Term): Matrix

    Addition of the term for each element

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

    Element-wise addition

  13. def ++[B >: Vec, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[Vec], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  14. def ++:[B >: Vec, That](that: Traversable[B])(implicit bf: CanBuildFrom[Iterable[Vec], B, That]): That

    Definition Classes
    TraversableLike
  15. def ++:[B >: Vec, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[Vec], B, That]): That

    Definition Classes
    TraversableLike
  16. def -(x: Int): Matrix

    Subtraction of the integer for each element

  17. def -(x: Term): Matrix

    Subtraction of the term for each element

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

    Element-wise subtraction

  19. def /(x: Int): Matrix

    Division by the integer for each element

  20. def /(x: Term): Matrix

    Division by the term for each element

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

    Element-wise division

  22. def /:[B](z: B)(op: (B, Vec) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  23. def :*(m: Matrix): Matrix

    Returns the product with the given matrix

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

    Returns the product with the given vector

  25. def :\[B](z: B)(op: (Vec, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  26. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  28. def addString(b: StringBuilder): StringBuilder

    Definition Classes
    TraversableOnce
  29. def addString(b: StringBuilder, sep: String): StringBuilder

    Definition Classes
    TraversableOnce
  30. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Definition Classes
    TraversableOnce
  31. def aggregate[B](z: B)(seqop: (B, Vec) ⇒ B, combop: (B, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  32. def apply(i: Int, j: Int): Term

    Returns the (i,j) element

  33. def apply(i: Int): Vec

    Returns the i-th row vector

  34. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  35. def canEqual(that: Any): Boolean

    Definition Classes
    IterableLike → Equals
  36. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def col(j: Int): Vec

    Returns the j-th column vector

  38. def collect[B, That](pf: PartialFunction[Vec, B])(implicit bf: CanBuildFrom[Iterable[Vec], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  39. def collectFirst[B](pf: PartialFunction[Vec, B]): Option[B]

    Definition Classes
    TraversableOnce
  40. def companion: GenericCompanion[Iterable]

    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → GenericTraversableTemplate
  41. def components: Seq[Term]

    Returns the sequence of elements

  42. def copyToArray[B >: Vec](xs: Array[B], start: Int, len: Int): Unit

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  43. def copyToArray[B >: Vec](xs: Array[B]): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  44. def copyToArray[B >: Vec](xs: Array[B], start: Int): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  45. def copyToBuffer[B >: Vec](dest: Buffer[B]): Unit

    Definition Classes
    TraversableOnce
  46. def count(p: (Vec) ⇒ Boolean): Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  47. def drop(n: Int): Iterable[Vec]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  48. def dropRight(n: Int): Iterable[Vec]

    Definition Classes
    IterableLike
  49. def dropWhile(p: (Vec) ⇒ Boolean): Iterable[Vec]

    Definition Classes
    TraversableLike → GenTraversableLike
  50. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  51. def exists(p: (Vec) ⇒ Boolean): Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  52. def filter(p: (Vec) ⇒ Boolean): Iterable[Vec]

    Definition Classes
    TraversableLike → GenTraversableLike
  53. def filterNot(p: (Vec) ⇒ Boolean): Iterable[Vec]

    Definition Classes
    TraversableLike → GenTraversableLike
  54. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  55. def find(p: (Vec) ⇒ Boolean): Option[Vec]

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  56. def flatMap[B, That](f: (Vec) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[Vec], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  57. def flatten[B](implicit asTraversable: (Vec) ⇒ GenTraversableOnce[B]): Iterable[B]

    Definition Classes
    GenericTraversableTemplate
  58. def fold[A1 >: Vec](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  59. def foldLeft[B](z: B)(op: (B, Vec) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  60. def foldRight[B](z: B)(op: (Vec, B) ⇒ B): B

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  61. def forall(p: (Vec) ⇒ Boolean): Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  62. def foreach[U](f: (Vec) ⇒ U): Unit

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  63. def genericBuilder[B]: Builder[B, Iterable[B]]

    Definition Classes
    GenericTraversableTemplate
  64. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  65. def groupBy[K](f: (Vec) ⇒ K): Map[K, Iterable[Vec]]

    Definition Classes
    TraversableLike → GenTraversableLike
  66. def grouped(size: Int): Iterator[Iterable[Vec]]

    Definition Classes
    IterableLike
  67. def hasDefiniteSize: Boolean

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  68. def head: Vec

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  69. def headOption: Option[Vec]

    Definition Classes
    TraversableLike → GenTraversableLike
  70. def init: Iterable[Vec]

    Definition Classes
    TraversableLike → GenTraversableLike
  71. def inits: Iterator[Iterable[Vec]]

    Definition Classes
    TraversableLike
  72. def isEmpty: Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  73. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  74. final def isTraversableAgain: Boolean

    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  75. def iterator: Iterator[Vec]

    Returns the iterator of row vectors

    Returns the iterator of row vectors

    Definition Classes
    Matrix → IterableLike → GenIterableLike
  76. def last: Vec

    Definition Classes
    TraversableLike → GenTraversableLike
  77. def lastOption: Option[Vec]

    Definition Classes
    TraversableLike → GenTraversableLike
  78. def map[B, That](f: (Vec) ⇒ B)(implicit bf: CanBuildFrom[Iterable[Vec], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  79. def max: Vec

    Returns the max of row vectors

  80. def max(x: Int): Matrix

    Max by the integer for each element

  81. def max(x: Term): Matrix

    Max of the term for each element

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

    Element-wise max

  83. def max[B >: Vec](implicit cmp: Ordering[B]): Vec

    Definition Classes
    TraversableOnce → GenTraversableOnce
  84. def maxBy[B](f: (Vec) ⇒ B)(implicit cmp: Ordering[B]): Vec

    Definition Classes
    TraversableOnce → GenTraversableOnce
  85. def min: Vec

    Returns the min of row vectors

  86. def min(x: Int): Matrix

    Min by the integer for each element

  87. def min(x: Term): Matrix

    Min of the term for each element

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

    Element-wise min

  89. def min[B >: Vec](implicit cmp: Ordering[B]): Vec

    Definition Classes
    TraversableOnce → GenTraversableOnce
  90. def minBy[B](f: (Vec) ⇒ B)(implicit cmp: Ordering[B]): Vec

    Definition Classes
    TraversableOnce → GenTraversableOnce
  91. def mkString: String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  92. def mkString(sep: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  93. def mkString(start: String, sep: String, end: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  94. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  95. def newBuilder: Builder[Vec, Iterable[Vec]]

    Attributes
    protected[this]
    Definition Classes
    GenericTraversableTemplate → HasNewBuilder
  96. def nonEmpty: Boolean

    Definition Classes
    TraversableOnce → GenTraversableOnce
  97. final def notify(): Unit

    Definition Classes
    AnyRef
  98. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  99. def par: ParIterable[Vec]

    Definition Classes
    Parallelizable
  100. def parCombiner: Combiner[Vec, ParIterable[Vec]]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  101. def partition(p: (Vec) ⇒ Boolean): (Iterable[Vec], Iterable[Vec])

    Definition Classes
    TraversableLike → GenTraversableLike
  102. def prod: Vec

    Returns the product of row vectors

  103. def product[B >: Vec](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  104. def reduce[A1 >: Vec](op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  105. def reduceLeft[B >: Vec](op: (B, Vec) ⇒ B): B

    Definition Classes
    TraversableOnce
  106. def reduceLeftOption[B >: Vec](op: (B, Vec) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  107. def reduceOption[A1 >: Vec](op: (A1, A1) ⇒ A1): Option[A1]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  108. def reduceRight[B >: Vec](op: (Vec, B) ⇒ B): B

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  109. def reduceRightOption[B >: Vec](op: (Vec, B) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  110. def repr: Iterable[Vec]

    Definition Classes
    TraversableLike → GenTraversableLike
  111. def reversed: List[Vec]

    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  112. def row(i: Int): Vec

    Returns the i-th row vector

  113. def sameElements[B >: Vec](that: GenIterable[B]): Boolean

    Definition Classes
    IterableLike → GenIterableLike
  114. def scan[B >: Vec, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Iterable[Vec], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  115. def scanLeft[B, That](z: B)(op: (B, Vec) ⇒ B)(implicit bf: CanBuildFrom[Iterable[Vec], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  116. 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.

  117. def seq: Iterable[Vec]

    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  118. def size: Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  119. def slice(from: Int, until: Int): Iterable[Vec]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  120. def sliding(size: Int, step: Int): Iterator[Iterable[Vec]]

    Definition Classes
    IterableLike
  121. def sliding(size: Int): Iterator[Iterable[Vec]]

    Definition Classes
    IterableLike
  122. def span(p: (Vec) ⇒ Boolean): (Iterable[Vec], Iterable[Vec])

    Definition Classes
    TraversableLike → GenTraversableLike
  123. def splitAt(n: Int): (Iterable[Vec], Iterable[Vec])

    Definition Classes
    TraversableLike → GenTraversableLike
  124. def stringPrefix: String

    Definition Classes
    TraversableLike → GenTraversableLike
  125. def subMatrix(i: Int, j: Int, rows: Int, cols: Int): Matrix

    Returns the sub-matrix

  126. def sum: Vec

    Returns the sum of row vectors

  127. def sum[B >: Vec](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  128. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  129. def tail: Iterable[Vec]

    Definition Classes
    TraversableLike → GenTraversableLike
  130. def tails: Iterator[Iterable[Vec]]

    Definition Classes
    TraversableLike
  131. def take(n: Int): Iterable[Vec]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  132. def takeRight(n: Int): Iterable[Vec]

    Definition Classes
    IterableLike
  133. def takeWhile(p: (Vec) ⇒ Boolean): Iterable[Vec]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  134. def thisCollection: Iterable[Vec]

    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  135. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, Vec, Col[Vec]]): Col[Vec]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  136. def toArray[B >: Vec](implicit arg0: ClassTag[B]): Array[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  137. def toBuffer[B >: Vec]: Buffer[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  138. def toCollection(repr: Iterable[Vec]): Iterable[Vec]

    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  139. def toIndexedSeq: IndexedSeq[Vec]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  140. def toIterable: Iterable[Vec]

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  141. def toIterator: Iterator[Vec]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  142. def toList: List[Vec]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  143. def toMap[T, U](implicit ev: <:<[Vec, (T, U)]): Map[T, U]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  144. def toSeq: Seq[Vec]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  145. def toSet[B >: Vec]: Set[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  146. def toStream: Stream[Vec]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  147. def toString(): String

    Definition Classes
    TraversableLike → Any
  148. def toTraversable: Traversable[Vec]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  149. def toVec: Vec

    Returns the flattened vector

  150. def toVector: Vector[Vec]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  151. def transpose: Matrix

    Transposes the matrix

  152. 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.

  153. def unary_-: Matrix

    Negates the each element jp.kobe_u.copris.Neg

  154. def unzip[A1, A2](implicit asPair: (Vec) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])

    Definition Classes
    GenericTraversableTemplate
  155. def unzip3[A1, A2, A3](implicit asTriple: (Vec) ⇒ (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])

    Definition Classes
    GenericTraversableTemplate
  156. def view(from: Int, until: Int): IterableView[Vec, Iterable[Vec]]

    Definition Classes
    IterableLike → TraversableLike
  157. def view: IterableView[Vec, Iterable[Vec]]

    Definition Classes
    IterableLike → TraversableLike
  158. val vs: Seq[Vec]

  159. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  162. def withFilter(p: (Vec) ⇒ Boolean): FilterMonadic[Vec, Iterable[Vec]]

    Definition Classes
    TraversableLike → FilterMonadic
  163. def zip[A1 >: Vec, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Iterable[Vec], (A1, B), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  164. 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
  165. 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 /:\[A1 >: Vec](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    GenTraversableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) use fold instead

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[Vec]]

Inherited from AnyRef

Inherited from Any

Ungrouped