Builder
A Builder
is a "Matrix under construction" that itself forms a (mutable) Matrix. Utilizing Builder
is the preferred way of creating new Matrices in Matrix operations.
Modules implementing the Matrix
trait should also provide an implementation of this trait.
Invoking the same Builder
instance multiple times is OK, but letting a Builder
leave the local scope is not OK (it's mutable!).
Implementations of this trait must return zero for uninitialized element positions.
Attributes
- Graph
-
- Supertypes
Members list
Value members
Abstract methods
Creates the Matrix resulting from this Builder
.
Creates the Matrix resulting from this Builder
.
Attributes
Sets the specified element at the specified position.
Sets the specified element at the specified position.
Attributes
Inherited methods
Performs a Matrix Addition.
Performs a Matrix Subtraction.
Checks the equality of this and the other Matrix by performing element-wise comparision.
Checks the equality of this and the other Matrix by performing element-wise comparision.
Attributes
- Returns
-
true
if both Matrices are equal - Inherited from:
- Matrix
Returns the element at the index specified at compile-time.
Returns the element at the index specified at compile-time.
Type parameters
- ColIdx
-
column index
- RowIdx
-
row index
Attributes
- Inherited from:
- Matrix
Returns the column dimension.
Combines this Matrix and the other Matrix by applying the specified operation on the respective corresponding elements.
Combines this Matrix and the other Matrix by applying the specified operation on the respective corresponding elements.
Attributes
- Inherited from:
- Matrix
Returns the determinant of this Matrix. Requires that this Matrix is a squared Matrix.
Returns the determinant of this Matrix. Requires that this Matrix is a squared Matrix.
Attributes
- Inherited from:
- Matrix
Performs a Matrix Multiplication by calculating the dot product.
Folds over the elements of this Matrix by invoking the specified operation with each element's index and the result of the previous invocation.
Folds over the elements of this Matrix by invoking the specified operation with each element's index and the result of the previous invocation.
Value parameters
- op
-
operation applied to each element (index)
- start
-
value provided to the first invocation
Attributes
- Returns
-
result of the last invocation of the specified operation
- Inherited from:
- Matrix
Returns the inverse of this Matrix. Requires that this Matrix is a squared Matrix.
Returns the inverse of this Matrix. Requires that this Matrix is a squared Matrix.
Attributes
- Inherited from:
- Matrix
Iterates over this Matrix by invoking the specified operation with each element's index.
Iterates over this Matrix by invoking the specified operation with each element's index.
Attributes
- Inherited from:
- Matrix
Maps this Matrix to a new Matrix by applying the specified operation element-wise.
Maps this Matrix to a new Matrix by applying the specified operation element-wise.
Attributes
- Inherited from:
- Matrix
Renders this Matrix to a String using the specified function.
Renders this Matrix to a String using the elements' toString
method.
Renders this Matrix to a String using the elements' toString
method.
Attributes
- Inherited from:
- Matrix
Allows to easily "modify" this Matrix by creating a Builder
initialized with the values of this Matrix.
Allows to easily "modify" this Matrix by creating a Builder
initialized with the values of this Matrix.
Attributes
- Inherited from:
- Matrix
Returns the row dimension.
Returns the submatrix with the specified bounds.
Returns the submatrix with the specified bounds.
Type parameters
- ColIdxBR
-
column index of the bottom-right vertex
- ColIdxTL
-
column index of the top-left vertex
- RowIdxBR
-
row index of the bottom-right vertex
- RowIdxTL
-
row index of the top-left vertex
Attributes
- Inherited from:
- Matrix