| Constructor and Description |
|---|
IdentityBuilder(int n)
Create a new builder with the given dimension.
|
| Modifier and Type | Method and Description |
|---|---|
Matrix |
build()
Create a new matrix using the data in this builder.
|
Matrix.IdentityBuilder |
set(int i,
int j,
double value)
Set the matrix at the given coordinates to the provided value and return the builder.
|
public IdentityBuilder(int n)
n - the dimension of the matrix.public Matrix.IdentityBuilder set(int i, int j, double value)
i - the row to set the value at.j - the column to set the value at.value - the value to set.public Matrix build()