$rows
$rows : integer
The number of rows in the matrix
Matrix object.
getRows(integer $row, integer $rowCount = 1) : static
Return a new matrix as a subset of rows from this matrix, starting at row number $row, and $rowCount rows A $rowCount value of 0 will return all rows of the matrix from $row A negative $rowCount value will return rows until that many rows from the end of the matrix
Note that row numbers start from 1, not from 0
integer | $row | |
integer | $rowCount |
getColumns(integer $column, integer $columnCount = 1) : \Matrix\Matrix
Return a new matrix as a subset of columns from this matrix, starting at column number $column, and $columnCount columns A $columnCount value of 0 will return all columns of the matrix from $column A negative $columnCount value will return columns until that many columns from the end of the matrix
Note that column numbers start from 1, not from 0
integer | $column | |
integer | $columnCount |
dropRows(integer $row, integer $rowCount = 1) : static
Return a new matrix as a subset of rows from this matrix, dropping rows starting at row number $row, and $rowCount rows A negative $rowCount value will drop rows until that many rows from the end of the matrix A $rowCount value of 0 will remove all rows of the matrix from $row
Note that row numbers start from 1, not from 0
integer | $row | |
integer | $rowCount |
dropColumns(integer $column, integer $columnCount = 1) : static
Return a new matrix as a subset of columns from this matrix, dropping columns starting at column number $column, and $columnCount columns A negative $columnCount value will drop columns until that many columns from the end of the matrix A $columnCount value of 0 will remove all columns of the matrix from $column
Note that column numbers start from 1, not from 0
integer | $column | |
integer | $columnCount |
rows() : \Generator|array<mixed,\Matrix\Matrix>|array<mixed,mixed>
Returns a Generator that will yield each row of the matrix in turn as a vector matrix or the value of each cell if the matrix is a vector
columns() : \Generator|array<mixed,\Matrix\Matrix>|array<mixed,mixed>
Returns a Generator that will yield each column of the matrix in turn as a vector matrix or the value of each cell if the matrix is a vector
__call(string $functionName, array<mixed,mixed> $arguments) : \Matrix\Matrix|float
Returns the result of the function call or operation
string | $functionName | |
array<mixed,mixed> | $arguments |