Matrix Builder class.
More...
|
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.
|
|
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.
|
|
◆ createFilledMatrix()
static Builder::createFilledMatrix |
( |
| $fillValue, |
|
|
| $rows, |
|
|
| $columns = null ) |
|
static |
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.
- Parameters
-
mixed | $fillValue | |
int | $rows | |
int | null | $columns | |
- Return values
-
- Exceptions
-
◆ createIdentityMatrix()
static 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
-
- Return values
-
- Exceptions
-
The documentation for this class was generated from the following file:
- lib/phpspreadsheet/markbaker/matrix/classes/src/Builder.php