Builder
in package
Matrix Builder class.
Table of Contents
Methods
- createFilledMatrix() : Matrix
- 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
- createIdentityMatrix() : Matrix
- 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
Methods
createFilledMatrix()
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
public
static createFilledMatrix(mixed $fillValue, int $rows[, int|null $columns = null ]) : Matrix
Parameters
- $fillValue : mixed
- $rows : int
- $columns : int|null = null
Tags
Return values
MatrixcreateIdentityMatrix()
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
public
static createIdentityMatrix(int $dimensions[, mixed $fillValue = null ]) : Matrix
Parameters
- $dimensions : int
- $fillValue : mixed = null