Central entry point for creating Matrices. Modules implementing the Matrix
trait should also provide an instance of this type class.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Creates a Matrix with the specified elements that are structured row by row from tuples.
Creates a Matrix with the specified elements that are structured row by row from tuples.
Dimensions will be checked at compile-time.
When invoking this method the following import has to be in place:
import matr.TupleSupport.given
The creation of i.e. a 2x3 Matrix looks like this:
val m = MatrixFactory[2, 3, Int].fromTuple(
(11, 12, 13),
(21, 22, 23)
)
Attributes
Creates the identity Matrix.
Creates the identity Matrix.
Attributes
Creates a Matrix containing the specified elements, assuming row-major order. Dimensions will be checked at runtime.
Creates a Matrix containing the specified elements, assuming row-major order. Dimensions will be checked at runtime.
Attributes
Creates a Matrix containing the elements returned by the specified function.
Creates a Matrix containing the elements returned by the specified function.
Value parameters
- fillElem
-
function returning the element at the specified position (row index, column index)