abstract class RowMatrix[E] extends Matrix[E] with MatrixLike[E, Matrix[E]]
An algebraic matrix optimized for row-vector operations.
- Alphabetic
- By Inheritance
- RowMatrix
- MatrixLike
- Matrix
- Immutable
- MatrixStore
- GenMatrixLike
- Iterable
- IterableLike
- Equals
- GenIterable
- GenIterableLike
- Traversable
- GenTraversable
- GenericTraversableTemplate
- TraversableLike
- GenTraversableLike
- Parallelizable
- TraversableOnce
- GenTraversableOnce
- FilterMonadic
- HasNewBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Type Members
-
type
Self = Matrix[E]
- Attributes
- protected[this]
- Definition Classes
- TraversableLike
-
class
WithFilter extends FilterMonadic[A, Repr]
- Definition Classes
- TraversableLike
Abstract Value Members
-
abstract
def
apply(i: Int, j: Int): E
- i
the row index
- j
the column index
- returns
the element with index
i,j
- Definition Classes
- MatrixStore
-
abstract
def
col(j: Int): Vector[E]
- j
the column index
- returns
the column vector with index
j
- Definition Classes
- MatrixStore
-
abstract
def
dataHashCode: Int
- Attributes
- protected
- Definition Classes
- MatrixStore
-
abstract
def
index: Index2
- Definition Classes
- MatrixStore
-
abstract
def
row(i: Int): Vector[E]
- i
the row index
- returns
the row vector with index
i
- Definition Classes
- MatrixStore
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
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
- MatrixLike → GenMatrixLike
-
def
*[That >: Matrix[E] <: Matrix[E]](b: That)(implicit vbf: VectorCanBuildFrom[Vector[E], E, Vector[E]], mbf: MatrixCanBuildFrom[RowMatrix.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
- MatrixLike → GenMatrixLike
-
def
*(s: E): Matrix[E]
Scales this matrix by
s
. -
def
+[That >: Matrix[E] <: Matrix[E]](b: That)(implicit vbf: VectorCanBuildFrom[Vector[E], E, Vector[E]], mbf: MatrixCanBuildFrom[RowMatrix.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
-
def
++[B >: Vector[E], That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Matrix[E], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
++:[B >: Vector[E], That](that: Traversable[B])(implicit bf: CanBuildFrom[Matrix[E], B, That]): That
- Definition Classes
- TraversableLike
-
def
++:[B >: Vector[E], That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Matrix[E], B, That]): That
- Definition Classes
- TraversableLike
-
def
-[That >: Matrix[E] <: Matrix[E]](b: That)(implicit vbf: VectorCanBuildFrom[Vector[E], E, Vector[E]], mbf: MatrixCanBuildFrom[RowMatrix.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
-
def
/:[B](z: B)(op: (B, Vector[E]) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
:\[B](z: B)(op: (Vector[E], B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
@@(at: (Int, Int)): Matrix[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
-
def
addString(b: StringBuilder): StringBuilder
- Definition Classes
- TraversableOnce
-
def
addString(b: StringBuilder, sep: String): StringBuilder
- Definition Classes
- TraversableOnce
-
def
addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
- Definition Classes
- TraversableOnce
-
def
aggregate[B](z: ⇒ B)(seqop: (B, Vector[E]) ⇒ B, combop: (B, B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
apply(i: Int): Vector[E]
- i
the row index
- returns
the row vector with index
i
- Definition Classes
- MatrixStore
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
atCol(at: Int): Matrix[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
- MatrixLike → GenMatrixLike
-
def
atRow(at: Int): Matrix[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
- MatrixLike → GenMatrixLike
-
def
binaryOp[That >: Matrix[E] <: Matrix[E]](f: (Vector[E], Vector[E]) ⇒ Vector[E], b: That)(implicit bf: MatrixCanBuildFrom[RowMatrix.this.type, Vector[E], That]): That
- Attributes
- protected
- Definition Classes
- MatrixLike → GenMatrixLike
-
def
canEqual(other: Any): Boolean
- Definition Classes
- Matrix → IterableLike → Equals
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
colIterator: Iterator[Vector[E]]
- Definition Classes
- Matrix
-
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
-
def
collect[B, That](pf: PartialFunction[Vector[E], B])(implicit bf: CanBuildFrom[Matrix[E], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
collectFirst[B](pf: PartialFunction[Vector[E], B]): Option[B]
- Definition Classes
- TraversableOnce
-
def
companion: GenericCompanion[Iterable]
- Definition Classes
- Iterable → GenIterable → Traversable → GenTraversable → GenericTraversableTemplate
-
def
copyToArray[B >: Vector[E]](xs: Array[B], start: Int, len: Int): Unit
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
copyToArray[B >: Vector[E]](xs: Array[B]): Unit
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
copyToArray[B >: Vector[E]](xs: Array[B], start: Int): Unit
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
copyToBuffer[B >: Vector[E]](dest: Buffer[B]): Unit
- Definition Classes
- TraversableOnce
-
def
count(p: (Vector[E]) ⇒ Boolean): Int
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
val
dataHashStart: Int(1)
- Attributes
- protected
- Definition Classes
- MatrixStore
-
def
drop(n: Int): Matrix[E]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
dropRight(n: Int): Matrix[E]
- Definition Classes
- IterableLike
-
def
dropWhile(p: (Vector[E]) ⇒ Boolean): Matrix[E]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
elemIterator: Iterator[E]
- Definition Classes
- Matrix
-
implicit
val
elemTag: ClassTag[E]
- Attributes
- protected
- Definition Classes
- RowMatrix → MatrixStore → GenMatrixLike
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- Matrix → Equals → AnyRef → Any
-
def
exists(p: (Vector[E]) ⇒ Boolean): Boolean
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
filter(p: (Vector[E]) ⇒ Boolean): Matrix[E]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
filterNot(p: (Vector[E]) ⇒ Boolean): Matrix[E]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
find(p: (Vector[E]) ⇒ Boolean): Option[Vector[E]]
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
flatMap[B, That](f: (Vector[E]) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Matrix[E], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike → FilterMonadic
-
def
flatten[B](implicit asTraversable: (Vector[E]) ⇒ GenTraversableOnce[B]): Iterable[B]
- Definition Classes
- GenericTraversableTemplate
-
def
fold[A1 >: Vector[E]](z: A1)(op: (A1, A1) ⇒ A1): A1
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
foldLeft[B](z: B)(op: (B, Vector[E]) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
foldRight[B](z: B)(op: (Vector[E], B) ⇒ B): B
- Definition Classes
- IterableLike → TraversableOnce → GenTraversableOnce
-
def
forall(p: (Vector[E]) ⇒ Boolean): Boolean
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
foreach[U](f: (Vector[E]) ⇒ U): Unit
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
-
def
genericBuilder[B]: Builder[B, Iterable[B]]
- Definition Classes
- GenericTraversableTemplate
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
groupBy[K](f: (Vector[E]) ⇒ K): Map[K, Matrix[E]]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
grouped(size: Int): Iterator[Matrix[E]]
- Definition Classes
- IterableLike
-
def
hasDefiniteSize: Boolean
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
-
def
hashCode(): Int
- Definition Classes
- MatrixStore → AnyRef → Any
-
def
head: Vector[E]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
headOption: Option[Vector[E]]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
height: Int
- returns
the number of rows of this matrix
- Definition Classes
- Matrix
-
def
init: Matrix[E]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
inits: Iterator[Matrix[E]]
- Definition Classes
- TraversableLike
-
def
isEmpty: Boolean
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isSquare: Boolean
- returns
if this is a square matrix (regarding to the concrete index range)
- Definition Classes
- Matrix
-
final
def
isTraversableAgain: Boolean
- Definition Classes
- TraversableLike → GenTraversableLike → GenTraversableOnce
-
def
isZero: Boolean
- returns
if this matrix contains no elements other than scal0
- Definition Classes
- Matrix
-
def
iterator: Iterator[Vector[E]]
- Definition Classes
- Matrix → IterableLike → GenIterableLike
-
def
last: Vector[E]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
lastOption: Option[Vector[E]]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
map[B, That](f: (Vector[E]) ⇒ B)(implicit bf: CanBuildFrom[Matrix[E], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike → FilterMonadic
-
def
max[B >: Vector[E]](implicit cmp: Ordering[B]): Vector[E]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
maxBy[B](f: (Vector[E]) ⇒ B)(implicit cmp: Ordering[B]): Vector[E]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
min[B >: Vector[E]](implicit cmp: Ordering[B]): Vector[E]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
minBy[B](f: (Vector[E]) ⇒ B)(implicit cmp: Ordering[B]): Vector[E]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString: String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString(sep: String): String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString(start: String, sep: String, end: String): String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newBuilder: MatrixBuilder[Vector[E], Matrix[E]]
- Attributes
- protected[this]
- Definition Classes
- Matrix → GenMatrixLike → GenericTraversableTemplate → TraversableLike → HasNewBuilder
-
def
nonEmpty: Boolean
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
par: ParIterable[Vector[E]]
- Definition Classes
- Parallelizable
-
def
parCombiner: Combiner[Vector[E], ParIterable[Vector[E]]]
- Attributes
- protected[this]
- Definition Classes
- TraversableLike → Parallelizable
-
def
partition(p: (Vector[E]) ⇒ Boolean): (Matrix[E], Matrix[E])
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
product[B >: Vector[E]](implicit num: Numeric[B]): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduce[A1 >: Vector[E]](op: (A1, A1) ⇒ A1): A1
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceLeft[B >: Vector[E]](op: (B, Vector[E]) ⇒ B): B
- Definition Classes
- TraversableOnce
-
def
reduceLeftOption[B >: Vector[E]](op: (B, Vector[E]) ⇒ B): Option[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceOption[A1 >: Vector[E]](op: (A1, A1) ⇒ A1): Option[A1]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceRight[B >: Vector[E]](op: (Vector[E], B) ⇒ B): B
- Definition Classes
- IterableLike → TraversableOnce → GenTraversableOnce
-
def
reduceRightOption[B >: Vector[E]](op: (Vector[E], B) ⇒ B): Option[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
repr: Matrix[E]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
reversed: List[Vector[E]]
- Attributes
- protected[this]
- Definition Classes
- TraversableOnce
-
def
rowIterator: Iterator[Vector[E]]
- Definition Classes
- Matrix
-
val
rowStart: Int
- Attributes
- protected
-
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
-
val
rows: Seq[Vector[E]]
- Attributes
- protected
-
def
sameElements[B >: Vector[E]](that: GenIterable[B]): Boolean
- Definition Classes
- IterableLike → GenIterableLike
-
def
scan[B >: Vector[E], That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Matrix[E], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
scanLeft[B, That](z: B)(op: (B, Vector[E]) ⇒ B)(implicit bf: CanBuildFrom[Matrix[E], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
scanRight[B, That](z: B)(op: (Vector[E], B) ⇒ B)(implicit bf: CanBuildFrom[Matrix[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.
-
def
seq: Iterable[Vector[E]]
- Definition Classes
- Iterable → GenIterable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
-
def
shorten: Matrix[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
- MatrixLike → GenMatrixLike
- Since
2.1.0
-
def
size: Int
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
sizeHintIfCheap: Int
- Attributes
- protected[scala.collection]
- Definition Classes
- GenTraversableOnce
-
def
slice(from: Int, until: Int): Matrix[E]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
sliding(size: Int, step: Int): Iterator[Matrix[E]]
- Definition Classes
- IterableLike
-
def
sliding(size: Int): Iterator[Matrix[E]]
- Definition Classes
- IterableLike
-
def
span(p: (Vector[E]) ⇒ Boolean): (Matrix[E], Matrix[E])
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
splitAt(n: Int): (Matrix[E], Matrix[E])
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
stringPrefix: String
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
sum[B >: Vector[E]](implicit num: Numeric[B]): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tail: Matrix[E]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
tails: Iterator[Matrix[E]]
- Definition Classes
- TraversableLike
-
def
take(n: Int): Matrix[E]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
takeRight(n: Int): Matrix[E]
- Definition Classes
- IterableLike
-
def
takeWhile(p: (Vector[E]) ⇒ Boolean): Matrix[E]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
thisCollection: Matrix[E]
- Attributes
- protected[this]
- Definition Classes
- GenMatrixLike → IterableLike → TraversableLike
-
def
to[Col[_]](implicit cbf: CanBuildFrom[Nothing, Vector[E], Col[Vector[E]]]): Col[Vector[E]]
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
-
def
toArray[B >: Vector[E]](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toBuffer[B >: Vector[E]]: Buffer[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toCollection(repr: Matrix[E]): Matrix[E]
- Attributes
- protected[this]
- Definition Classes
- GenMatrixLike → IterableLike → TraversableLike
-
def
toIndexedSeq: IndexedSeq[Vector[E]]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toIterable: Iterable[Vector[E]]
- Definition Classes
- IterableLike → TraversableOnce → GenTraversableOnce
-
def
toIterator: Iterator[Vector[E]]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableOnce
- Annotations
- @deprecatedOverriding( ... , "2.11.0" )
-
def
toList: List[Vector[E]]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toMap[T, U](implicit ev: <:<[Vector[E], (T, U)]): Map[T, U]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toSeq: Seq[Vector[E]]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toSet[B >: Vector[E]]: Set[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toStream: Stream[Vector[E]]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableOnce
-
def
toString(): String
- Definition Classes
- Matrix → TraversableLike → AnyRef → Any
-
def
toTraversable: Traversable[Vector[E]]
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
- Annotations
- @deprecatedOverriding( ... , "2.11.0" )
-
def
toVector: scala.Vector[Vector[E]]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
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 anIllegalArgumentException
if collections are not uniformly sized.
-
def
transposed(): Matrix[E]
Returns the transpose of this matrix..
-
def
unaryOp(f: (Vector[E]) ⇒ Vector[E]): Matrix[E]
- Attributes
- protected
- Definition Classes
- MatrixLike → GenMatrixLike
-
def
unary_+(): Matrix[E]
Returns identity.
-
def
unary_-(): Matrix[E]
Returns negative complement of this.
-
def
unzip[A1, A2](implicit asPair: (Vector[E]) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])
- Definition Classes
- GenericTraversableTemplate
-
def
unzip3[A1, A2, A3](implicit asTriple: (Vector[E]) ⇒ (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
- Definition Classes
- GenericTraversableTemplate
-
def
view(from: Int, until: Int): IterableView[Vector[E], Matrix[E]]
- Definition Classes
- IterableLike → TraversableLike
-
def
view: IterableView[Vector[E], Matrix[E]]
- Definition Classes
- IterableLike → TraversableLike
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
widen(index: Index2): Matrix[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 toindex.dim2
(i.e., in both dimensions adding concrete leading and trailing zeroes that were virtual before)
- Definition Classes
- MatrixLike → GenMatrixLike
- Since
2.1.0
-
def
width: Int
- returns
the number of columns of this matrix
- Definition Classes
- Matrix
-
def
withFilter(p: (Vector[E]) ⇒ Boolean): FilterMonadic[Vector[E], Matrix[E]]
- Definition Classes
- TraversableLike → FilterMonadic
-
def
zip[A1 >: Vector[E], B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Matrix[E], (A1, B), That]): That
- Definition Classes
- IterableLike → GenIterableLike
-
def
zipAll[B, A1 >: Vector[E], That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Matrix[E], (A1, B), That]): That
- Definition Classes
- IterableLike → GenIterableLike
-
def
zipWithIndex[A1 >: Vector[E], That](implicit bf: CanBuildFrom[Matrix[E], (A1, Int), That]): That
- Definition Classes
- IterableLike → GenIterableLike
-
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