Packages

  • package root
    Definition Classes
    root
  • package de
    Definition Classes
    root
  • package h2b
    Definition Classes
    de
  • package scala
    Definition Classes
    h2b
  • package lib
    Definition Classes
    scala
  • package math
    Definition Classes
    lib
  • package linalg

    LinAlg provides data types and operations for algebraic vectors and matrices.

    LinAlg provides data types and operations for algebraic vectors and matrices.

    Vector and Matrix elements can be of arbitrary type, provided that a factory for that element type is available. Currently, factories exist for Double, Float, Long, Int, Short, Byte and Char.

    Vector and matrix (row and column) indices can be any integer (to state more precisely, an index must be in the interval [Mindex, Maxdex], as defined in the Index object). But only elements corresponding to a subset of that whole integer range actually are stored (the concrete elements), while all other elements by definition are zero (virtual elements).

    This concept (which I got to value a long time ago with the ALGOL68 library prelude TORRIX [1]) does not only provide a natural approach to operations with vectors and matrixes of different index ranges, but also prevents from index-out-of-bounds exceptions.

    Concrete index ranges (those indices that correspond to concrete elements) implicitly or explicitly are assigned when a vector or matrix is created. By default, it starts at 1 and extends to the number of elements specified, but this is customizable.

    Vectors and Matrixes both are immutable by design, so there exist no update methods or the like (you cannot do v(i) = something). There are, however, builder classes that allow you to build Vectors and Matrixes element by element.

    Currently, operations on vectors and matrices require identical element types. For instance, you can add a Vector[Int] to another Vector[Int], but you cannot add a Vector[Int] to another Vector[Double].

    Definition Classes
    math
    See also

    [1] S. G. van der Meulen, P. Kühling, "Programmieren in ALGOL68", Bd. II (Berlin, New York: de Gruyter), 149-188 (1977)

  • package building

    Vector and matrix builders.

    Vector and matrix builders.

    Definition Classes
    linalg
    Since

    3.0.0

  • package factory

    Vector and matrix factories including scalar operations and concrete factories for standard types.

    Vector and matrix factories including scalar operations and concrete factories for standard types.

    Definition Classes
    linalg
    Since

    3.0.0

  • package storage

    Storage engines for vectors and matrices.

    Storage engines for vectors and matrices.

    Definition Classes
    linalg
    Since

    3.0.0

  • GenMatrixLike
  • GenVectorLike
  • Index
  • Index2
  • Matrix
  • MatrixLike
  • ScalarOps
  • SparseMatrix
  • SparseMatrixLike
  • SparseVector
  • SparseVectorLike
  • Vector
  • VectorLike
  • VectorOps

trait SparseMatrix[E] extends Matrix[E] with SparseMatrixLike[E, SparseMatrix[E]] with SparseRowMatrixStore[E]

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SparseMatrix
  2. SparseRowMatrixStore
  3. SparseMatrixLike
  4. Matrix
  5. Immutable
  6. MatrixStore
  7. GenMatrixLike
  8. Iterable
  9. IterableLike
  10. Equals
  11. GenIterable
  12. GenIterableLike
  13. Traversable
  14. GenTraversable
  15. GenericTraversableTemplate
  16. TraversableLike
  17. GenTraversableLike
  18. Parallelizable
  19. TraversableOnce
  20. GenTraversableOnce
  21. FilterMonadic
  22. HasNewBuilder
  23. AnyRef
  24. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Self = SparseMatrix[E]
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  2. class WithFilter extends FilterMonadic[A, Repr]
    Definition Classes
    TraversableLike

Abstract Value Members

  1. implicit abstract val elemTag: ClassTag[E]
    Attributes
    protected
    Definition Classes
    MatrixStore
  2. abstract val rows: Map[Int, Vector[E]]
    Attributes
    protected
    Definition Classes
    SparseRowMatrixStore

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def *[That <: Vector[E]](v: That)(implicit vbf: VectorCanBuildFrom[That, E, That]): That

    Returns the product of this and v.

    Returns the product of this and v.

    v

    the vector to be multiplied

    returns

    this*v

    Definition Classes
    SparseMatrixLikeGenMatrixLike
  4. def *[That >: SparseMatrix[E] <: Matrix[E]](b: That)(implicit vbf: VectorCanBuildFrom[Vector[E], E, Vector[E]], mbf: MatrixCanBuildFrom[SparseMatrix.this.type, Vector[E], That]): That

    Returns the product of this and b.

    Returns the product of this and b.

    b

    the other matrix to be multiplied

    returns

    this*b

    Definition Classes
    SparseMatrixLikeGenMatrixLike
  5. def *(s: E): SparseMatrix[E]

    Scales this matrix by s.

    Scales this matrix by s.

    returns

    this*s

    Definition Classes
    GenMatrixLike
  6. def +[That >: SparseMatrix[E] <: Matrix[E]](b: That)(implicit vbf: VectorCanBuildFrom[Vector[E], E, Vector[E]], mbf: MatrixCanBuildFrom[SparseMatrix.this.type, Vector[E], That]): That

    Returns the sum of this and b.

    Returns the sum of this and b.

    b

    the other matrix to be added

    returns

    this+b

    Definition Classes
    GenMatrixLike
  7. def ++[B >: Vector[E], That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[SparseMatrix[E], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  8. def ++:[B >: Vector[E], That](that: Traversable[B])(implicit bf: CanBuildFrom[SparseMatrix[E], B, That]): That
    Definition Classes
    TraversableLike
  9. def ++:[B >: Vector[E], That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[SparseMatrix[E], B, That]): That
    Definition Classes
    TraversableLike
  10. def -[That >: SparseMatrix[E] <: Matrix[E]](b: That)(implicit vbf: VectorCanBuildFrom[Vector[E], E, Vector[E]], mbf: MatrixCanBuildFrom[SparseMatrix.this.type, Vector[E], That]): That

    Returns the difference of this and b.

    Returns the difference of this and b.

    b

    the other matrix to be subtracted

    returns

    this-b

    Definition Classes
    GenMatrixLike
  11. def /:[B](z: B)(op: (B, Vector[E]) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  12. def :\[B](z: B)(op: (Vector[E], B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  13. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def @@(at: (Int, Int)): SparseMatrix[E]

    at

    tuple of the lower row- and column-index bounds of the new matrix

    returns

    a copy of this matrix with the specified lower row- and column-index bounds; all row vectors are shifted to this bound

    Definition Classes
    GenMatrixLike
  15. def addString(b: StringBuilder): StringBuilder
    Definition Classes
    TraversableOnce
  16. def addString(b: StringBuilder, sep: String): StringBuilder
    Definition Classes
    TraversableOnce
  17. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
    Definition Classes
    TraversableOnce
  18. def aggregate[B](z: ⇒ B)(seqop: (B, Vector[E]) ⇒ B, combop: (B, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  19. def apply(i: Int, j: Int): E

    i

    the row index

    j

    the column index

    returns

    the element with index i,j

    Definition Classes
    SparseRowMatrixStoreMatrixStore
  20. def apply(i: Int): Vector[E]

    i

    the row index

    returns

    the row vector with index i

    Definition Classes
    MatrixStore
  21. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  22. def atCol(at: Int): SparseMatrix[E]

    at

    the lower column-index bound of the new matrix

    returns

    a copy of this matrix with the specified lower column-index bound; all row vectors are shifted to this bound

    Definition Classes
    GenMatrixLike
  23. def atRow(at: Int): SparseMatrix[E]

    at

    the lower row-index bound of the new matrix

    returns

    a copy of this matrix with the specified lower row-index bound

    Definition Classes
    SparseMatrixLikeGenMatrixLike
  24. def binaryOp[That >: SparseMatrix[E] <: Matrix[E]](f: (Vector[E], Vector[E]) ⇒ Vector[E], b: That)(implicit bf: MatrixCanBuildFrom[SparseMatrix.this.type, Vector[E], That]): That
    Attributes
    protected
    Definition Classes
    GenMatrixLike
  25. def canEqual(other: Any): Boolean
    Definition Classes
    Matrix → IterableLike → Equals
  26. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  27. def col(j: Int): Vector[E]

    j

    the column index

    returns

    the column vector with index j

    Definition Classes
    SparseRowMatrixStoreMatrixStore
  28. def colIterator: Iterator[Vector[E]]
    Definition Classes
    Matrix
  29. def colSum(): Vector[E]

    Returns the vector of column sums of this matrix.

    Returns the vector of column sums of this matrix.

    returns

    the vector of column sums of this

    Definition Classes
    Matrix
  30. def collect[B, That](pf: PartialFunction[Vector[E], B])(implicit bf: CanBuildFrom[SparseMatrix[E], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  31. def collectFirst[B](pf: PartialFunction[Vector[E], B]): Option[B]
    Definition Classes
    TraversableOnce
  32. def companion: GenericCompanion[Iterable]
    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → GenericTraversableTemplate
  33. def copyToArray[B >: Vector[E]](xs: Array[B], start: Int, len: Int): Unit
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  34. def copyToArray[B >: Vector[E]](xs: Array[B]): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  35. def copyToArray[B >: Vector[E]](xs: Array[B], start: Int): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  36. def copyToBuffer[B >: Vector[E]](dest: Buffer[B]): Unit
    Definition Classes
    TraversableOnce
  37. def count(p: (Vector[E]) ⇒ Boolean): Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  38. val dataHashCode: Int
    Attributes
    protected
    Definition Classes
    SparseRowMatrixStoreMatrixStore
  39. final val dataHashStart: Int(1)
    Attributes
    protected
    Definition Classes
    MatrixStore
  40. def drop(n: Int): SparseMatrix[E]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  41. def dropRight(n: Int): SparseMatrix[E]
    Definition Classes
    IterableLike
  42. def dropWhile(p: (Vector[E]) ⇒ Boolean): SparseMatrix[E]
    Definition Classes
    TraversableLike → GenTraversableLike
  43. def elemIterator: Iterator[E]
    Definition Classes
    Matrix
  44. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  45. def equals(other: Any): Boolean
    Definition Classes
    Matrix → Equals → AnyRef → Any
  46. def exists(p: (Vector[E]) ⇒ Boolean): Boolean
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  47. def filter(p: (Vector[E]) ⇒ Boolean): SparseMatrix[E]
    Definition Classes
    TraversableLike → GenTraversableLike
  48. def filterNot(p: (Vector[E]) ⇒ Boolean): SparseMatrix[E]
    Definition Classes
    TraversableLike → GenTraversableLike
  49. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  50. def find(p: (Vector[E]) ⇒ Boolean): Option[Vector[E]]
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  51. def flatMap[B, That](f: (Vector[E]) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[SparseMatrix[E], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  52. def flatten[B](implicit asTraversable: (Vector[E]) ⇒ GenTraversableOnce[B]): Iterable[B]
    Definition Classes
    GenericTraversableTemplate
  53. def fold[A1 >: Vector[E]](z: A1)(op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  54. def foldLeft[B](z: B)(op: (B, Vector[E]) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  55. def foldRight[B](z: B)(op: (Vector[E], B) ⇒ B): B
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  56. def forall(p: (Vector[E]) ⇒ Boolean): Boolean
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  57. def foreach[U](f: (Vector[E]) ⇒ U): Unit
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  58. def genericBuilder[B]: Builder[B, Iterable[B]]
    Definition Classes
    GenericTraversableTemplate
  59. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  60. def groupBy[K](f: (Vector[E]) ⇒ K): Map[K, SparseMatrix[E]]
    Definition Classes
    TraversableLike → GenTraversableLike
  61. def grouped(size: Int): Iterator[SparseMatrix[E]]
    Definition Classes
    IterableLike
  62. def hasDefiniteSize: Boolean
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  63. def hashCode(): Int
    Definition Classes
    MatrixStore → AnyRef → Any
  64. def head: Vector[E]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  65. def headOption: Option[Vector[E]]
    Definition Classes
    TraversableLike → GenTraversableLike
  66. def height: Int

    returns

    the number of rows of this matrix

    Definition Classes
    Matrix
  67. val index: Index2
    Definition Classes
    SparseRowMatrixStoreMatrixStore
  68. def init: SparseMatrix[E]
    Definition Classes
    TraversableLike → GenTraversableLike
  69. def inits: Iterator[SparseMatrix[E]]
    Definition Classes
    TraversableLike
  70. def isEmpty: Boolean
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  71. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  72. def isSquare: Boolean

    returns

    if this is a square matrix (regarding to the concrete index range)

    Definition Classes
    Matrix
  73. final def isTraversableAgain: Boolean
    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  74. def isZero: Boolean

    returns

    if this matrix contains no elements other than scal0

    Definition Classes
    Matrix
  75. def iterator: Iterator[Vector[E]]
    Definition Classes
    Matrix → IterableLike → GenIterableLike
  76. val keys: Iterable[Int]
    Attributes
    protected
    Definition Classes
    SparseRowMatrixStore
  77. def last: Vector[E]
    Definition Classes
    TraversableLike → GenTraversableLike
  78. def lastOption: Option[Vector[E]]
    Definition Classes
    TraversableLike → GenTraversableLike
  79. def map[B, That](f: (Vector[E]) ⇒ B)(implicit bf: CanBuildFrom[SparseMatrix[E], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  80. def max[B >: Vector[E]](implicit cmp: Ordering[B]): Vector[E]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  81. def maxBy[B](f: (Vector[E]) ⇒ B)(implicit cmp: Ordering[B]): Vector[E]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  82. def min[B >: Vector[E]](implicit cmp: Ordering[B]): Vector[E]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  83. def minBy[B](f: (Vector[E]) ⇒ B)(implicit cmp: Ordering[B]): Vector[E]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  84. def mkString: String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  85. def mkString(sep: String): String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  86. def mkString(start: String, sep: String, end: String): String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  87. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  88. def newBuilder: MatrixBuilder[Vector[E], SparseMatrix[E]]
    Attributes
    protected[this]
    Definition Classes
    SparseMatrixMatrixGenMatrixLike → GenericTraversableTemplate → TraversableLike → HasNewBuilder
  89. def nonEmpty: Boolean
    Definition Classes
    TraversableOnce → GenTraversableOnce
  90. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  91. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  92. def par: ParIterable[Vector[E]]
    Definition Classes
    Parallelizable
  93. def parCombiner: Combiner[Vector[E], ParIterable[Vector[E]]]
    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  94. def partition(p: (Vector[E]) ⇒ Boolean): (SparseMatrix[E], SparseMatrix[E])
    Definition Classes
    TraversableLike → GenTraversableLike
  95. def product[B >: Vector[E]](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  96. def reduce[A1 >: Vector[E]](op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  97. def reduceLeft[B >: Vector[E]](op: (B, Vector[E]) ⇒ B): B
    Definition Classes
    TraversableOnce
  98. def reduceLeftOption[B >: Vector[E]](op: (B, Vector[E]) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  99. def reduceOption[A1 >: Vector[E]](op: (A1, A1) ⇒ A1): Option[A1]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  100. def reduceRight[B >: Vector[E]](op: (Vector[E], B) ⇒ B): B
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  101. def reduceRightOption[B >: Vector[E]](op: (Vector[E], B) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  102. def repr: SparseMatrix[E]
    Definition Classes
    TraversableLike → GenTraversableLike
  103. def reversed: List[Vector[E]]
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  104. def row(i: Int): Vector[E]

    i

    the row index

    returns

    the row vector with index i

    Definition Classes
    SparseRowMatrixStoreMatrixStore
  105. def rowIterator: Iterator[Vector[E]]
    Definition Classes
    Matrix
  106. def rowSum(): Vector[E]

    Returns the vector of row sums of this matrix.

    Returns the vector of row sums of this matrix.

    returns

    the vector of row sums of this

    Definition Classes
    Matrix
  107. def sameElements[B >: Vector[E]](that: GenIterable[B]): Boolean
    Definition Classes
    IterableLike → GenIterableLike
  108. def scan[B >: Vector[E], That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[SparseMatrix[E], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  109. def scanLeft[B, That](z: B)(op: (B, Vector[E]) ⇒ B)(implicit bf: CanBuildFrom[SparseMatrix[E], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  110. def scanRight[B, That](z: B)(op: (Vector[E], B) ⇒ B)(implicit bf: CanBuildFrom[SparseMatrix[E], 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.

  111. def seq: Iterable[Vector[E]]
    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  112. def shorten: SparseMatrix[E]

    returns

    this matrix with a shortened index range stripped by leading and trailing zero-vector elements after shortening the vector elements itself (i.e., making concrete leading and trailing zeroes virtual in both dimensions)

    Definition Classes
    SparseMatrixLikeGenMatrixLike
    Since

    2.1.0

  113. def size: Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  114. def sizeHintIfCheap: Int
    Attributes
    protected[scala.collection]
    Definition Classes
    GenTraversableOnce
  115. def slice(from: Int, until: Int): SparseMatrix[E]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  116. def sliding(size: Int, step: Int): Iterator[SparseMatrix[E]]
    Definition Classes
    IterableLike
  117. def sliding(size: Int): Iterator[SparseMatrix[E]]
    Definition Classes
    IterableLike
  118. def span(p: (Vector[E]) ⇒ Boolean): (SparseMatrix[E], SparseMatrix[E])
    Definition Classes
    TraversableLike → GenTraversableLike
  119. def sparseForeach[U](f: (Vector[E]) ⇒ U): Unit

    Applies the given function to all sparse row values of this sparse matrix.

  120. def sparseIndexIterator: Iterator[Int]

    Iterates over the sparse row indices of this sparse matrix.

  121. def sparseIterator: Iterator[Vector[E]]

    Iterates over the sparse row values of this sparse matrix.

  122. def sparseRowIndexIterator: Iterator[Int]

    Iterates over the sparse row indices of this sparse matrix.

  123. def sparseRowIterator: Iterator[Vector[E]]

    Iterates over the sparse row values of this sparse matrix.

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

  150. def transposed(): SparseMatrix[E]

    Returns the transpose of this matrix..

    Returns the transpose of this matrix..

    returns

    thisT

    Definition Classes
    GenMatrixLike
  151. def unaryOp(f: (Vector[E]) ⇒ Vector[E]): SparseMatrix[E]
    Attributes
    protected
    Definition Classes
    SparseMatrixLikeGenMatrixLike
  152. def unary_+(): SparseMatrix[E]

    Returns identity.

    Returns identity. Can also be used to copy this.

    returns

    +this

    Definition Classes
    GenMatrixLike
  153. def unary_-(): SparseMatrix[E]

    Returns negative complement of this.

    Returns negative complement of this.

    returns

    -this

    Definition Classes
    GenMatrixLike
  154. def unzip[A1, A2](implicit asPair: (Vector[E]) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])
    Definition Classes
    GenericTraversableTemplate
  155. def unzip3[A1, A2, A3](implicit asTriple: (Vector[E]) ⇒ (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
    Definition Classes
    GenericTraversableTemplate
  156. val values: Iterable[Vector[E]]
    Attributes
    protected
    Definition Classes
    SparseRowMatrixStore
  157. def view(from: Int, until: Int): IterableView[Vector[E], SparseMatrix[E]]
    Definition Classes
    IterableLike → TraversableLike
  158. def view: IterableView[Vector[E], SparseMatrix[E]]
    Definition Classes
    IterableLike → TraversableLike
  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
    @native() @throws( ... )
  162. def widen(index: Index2): SparseMatrix[E]

    index

    the requested index ranges in both dimensions (the actual index ranges will be the union of this argument and the existing ones)

    returns

    this vector with widened index ranges extended by leading and trailing zero-vector elements according to index.dim1 and then widening the vector elements itself according to index.dim2 (i.e., in both dimensions adding concrete leading and trailing zeroes that were virtual before)

    Definition Classes
    SparseMatrixLikeGenMatrixLike
    Since

    2.1.0

  163. def width: Int

    returns

    the number of columns of this matrix

    Definition Classes
    Matrix
  164. def withFilter(p: (Vector[E]) ⇒ Boolean): FilterMonadic[Vector[E], SparseMatrix[E]]
    Definition Classes
    TraversableLike → FilterMonadic
  165. def zip[A1 >: Vector[E], B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[SparseMatrix[E], (A1, B), That]): That
    Definition Classes
    IterableLike → GenIterableLike
  166. def zipAll[B, A1 >: Vector[E], That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[SparseMatrix[E], (A1, B), That]): That
    Definition Classes
    IterableLike → GenIterableLike
  167. def zipWithIndex[A1 >: Vector[E], That](implicit bf: CanBuildFrom[SparseMatrix[E], (A1, Int), That]): That
    Definition Classes
    IterableLike → GenIterableLike
  168. def ~~(other: Matrix[E]): Boolean

    Checks if this matrix is similar to the other one in terms of stripping by leading and trailing zero elements in both dimensions, respectively.

    Checks if this matrix is similar to the other one in terms of stripping by leading and trailing zero elements in both dimensions, respectively.

    returns

    true if both matrices have the same elements in equal index positions, disregarding the concrete index ranges; false otherwise

    Definition Classes
    Matrix
    Since

    2.1.0

Inherited from SparseRowMatrixStore[E]

Inherited from SparseMatrixLike[E, SparseMatrix[E]]

Inherited from Matrix[E]

Inherited from Immutable

Inherited from MatrixStore[E]

Inherited from GenMatrixLike[E, SparseMatrix[E]]

Inherited from Iterable[Vector[E]]

Inherited from IterableLike[Vector[E], SparseMatrix[E]]

Inherited from Equals

Inherited from GenIterable[Vector[E]]

Inherited from GenIterableLike[Vector[E], SparseMatrix[E]]

Inherited from Traversable[Vector[E]]

Inherited from GenTraversable[Vector[E]]

Inherited from TraversableLike[Vector[E], SparseMatrix[E]]

Inherited from GenTraversableLike[Vector[E], SparseMatrix[E]]

Inherited from Parallelizable[Vector[E], ParIterable[Vector[E]]]

Inherited from TraversableOnce[Vector[E]]

Inherited from GenTraversableOnce[Vector[E]]

Inherited from FilterMonadic[Vector[E], SparseMatrix[E]]

Inherited from HasNewBuilder[Vector[E], SparseMatrix[E]]

Inherited from AnyRef

Inherited from Any

Ungrouped