Case class to represent a two-dimensional matrix.
Type parameters
- T
-
the underlying type of this matrix
Value parameters
- rows
-
the rows
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Method to multiply this Matrix2 with another Matrix2.
Method to multiply this Matrix2 with another Matrix2.
Type parameters
- Y
-
the underlying type of the other Matrix2.
- Z
-
the underlying type of the resulting Matrix.
Value parameters
- atMost
-
max duration.
- context
-
the DDContext in which any DataDefinition is evaluated (by default, DDContext.default).
- cutoff
-
the cutoff (see Dimensions).
- ev
-
evidence that Seq[T] is a monoid.
- other
-
the other Matrix2.
Attributes
- Returns
-
the product of this and other as a Matrix
The number of rows. This method may be overridden
The number of rows. This method may be overridden
Attributes
- Returns
-
a sequence of one integer.
- Definition Classes
-
BaseMatrix -> Matrix
Inherited methods
Method to process the rows of this Matrix. If the size is less than the cutoff, then we do the operation in the current thread; otherwise we do it using MapReduce.
Method to process the rows of this Matrix. If the size is less than the cutoff, then we do the operation in the current thread; otherwise we do it using MapReduce.
Type parameters
- Z
-
the underlying type of the result
Value parameters
- atMost
-
duration of total MapReduce time
- context
-
the DDContext in which any DataDefinition is evaluated (by default, DDContext.default)
- cutoff
-
the maximum size we should implement in current thread
- ev
-
evidence of Monoid[X]
- g
-
a function which takes an X and yields a Z
Attributes
- Returns
-
a Matrix which is the product of this and m
- Inherited from:
- BaseMatrix
Determine the product of this Matrix with a sequence of Y objects
Determine the product of this Matrix with a sequence of Y objects
Type parameters
- Y
-
the type of the multiplicand rows
- Z
-
the underlying type of the result
Value parameters
- atMost
-
duration of total MapReduce time
- context
-
the DDContext in which any DataDefinition is evaluated (by default, DDContext.default)
- cutoff
-
the maximum size we should implement in current thread
- ev
-
evidence of Monoid[X]
- ys
-
the rows of Y to be multiplied with this Matrix
Attributes
- Returns
-
a Matrix which is the product of this and m
- Inherited from:
- Matrix
Determine the product of this Matrix with m
Determine the product of this Matrix with m
Type parameters
- Y
-
the underlying type of m
- Z
-
the underlying type of the result
Value parameters
- atMost
-
duration of total MapReduce time
- context
-
the DDContext in which any DataDefinition is evaluated (by default, DDContext.default)
- cutoff
-
the maximum size we should implement in current thread
- ev
-
evidence of Monoid[X]
- m
-
the multiplicand
Attributes
- Returns
-
a Matrix which is the product of this and m
- Inherited from:
- Matrix
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
Attributes
- Inherited from:
- Product
An iterator over all the elements of this product.
An iterator over all the elements of this product.
Attributes
- Returns
-
in the default implementation, an
Iterator[Any] - Inherited from:
- Product