|
static | createFilledMatrix ($fillValue, $rows, $columns=null) |
| Create a new matrix of specified dimensions, and filled with a specified value If the column argument isn't provided, then a square matrix will be created. More...
|
|
static | createIdentityMatrix ($dimensions, $fillValue=null) |
| Create a new identity matrix of specified dimensions This will always be a square matrix, with the number of rows and columns matching the provided dimension. More...
|
|
Definition at line 18 of file Builder.php.
◆ createFilledMatrix()
static Matrix\Builder::createFilledMatrix |
( |
|
$fillValue, |
|
|
|
$rows, |
|
|
|
$columns = null |
|
) |
| |
|
static |
◆ createIdentityMatrix()
static Matrix\Builder::createIdentityMatrix |
( |
|
$dimensions, |
|
|
|
$fillValue = null |
|
) |
| |
|
static |
Create a new identity matrix of specified dimensions This will always be a square matrix, with the number of rows and columns matching the provided dimension.
- Parameters
-
- Returns
- Matrix
- Exceptions
-
Definition at line 60 of file Builder.php.
References $grid, and $x.
62 $grid = static::createFilledMatrix($fillValue, $dimensions)->toArray();
64 for (
$x = 0;
$x < $dimensions; ++
$x) {
Class for the creating "special" Matrices.
The documentation for this class was generated from the following file:
- libs/composer/vendor/markbaker/matrix/classes/src/Builder.php