Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
PhpOffice\PhpSpreadsheet\Calculation\LookupRef\Matrix Class Reference

Static Public Member Functions

static index (mixed $matrix, mixed $rowNum=0, mixed $columnNum=null)
 INDEX.
 
static isColumnVector (array $values)
 
static isRowVector (array $values)
 Helper function; NOT an implementation of any Excel Function.
 
static transpose ($matrixData)
 TRANSPOSE.
 

Member Function Documentation

◆ index()

static PhpOffice\PhpSpreadsheet\Calculation\LookupRef\Matrix::index ( mixed $matrix,
mixed $rowNum = 0,
mixed $columnNum = null )
static

INDEX.

Uses an index to choose a value from a reference or array

Excel Function: =INDEX(range_array, row_num, [column_num], [area_num])

Parameters
mixed$matrixA range of cells or an array constant
mixed$rowNumThe row in the array or range from which to return a value. If row_num is omitted, column_num is required. Or can be an array of values
mixed$columnNumThe column in the array or range from which to return a value. If column_num is omitted, row_num is required. Or can be an array of values

TODO Provide support for area_num, currently not supported

Return values
mixedthe value of a specified cell or array of cells If an array of values is passed as the $rowNum and/or $columnNum arguments, then the returned result will also be an array with the same dimensions

◆ transpose()

static PhpOffice\PhpSpreadsheet\Calculation\LookupRef\Matrix::transpose ( $matrixData)
static

TRANSPOSE.

Parameters
array | mixed$matrixDataA matrix of values

The documentation for this class was generated from the following file: