PHP Class pocketmine\math\Matrix

Inheritance: implements ArrayAccess
Show file Open project: ClearSkyTeam/ClearSky

Public Methods

Method Description
__construct ( $rows, $columns, array $set = [] )
__toString ( )
add ( Matrix $matrix )
determinant ( ) Computation of the determinant of 2x2 and 3x3 matrices
divideScalar ( $number )
getColumns ( )
getElement ( $row, $column )
getRows ( )
isSquare ( )
multiplyScalar ( $number )
offsetExists ( $offset )
offsetGet ( $offset )
offsetSet ( $offset, $value )
offsetUnset ( $offset )
product ( Matrix $matrix ) Naive Matrix product, O(n^3)
set ( array $m )
setElement ( $row, $column, $value )
substract ( Matrix $matrix )
transpose ( )

Method Details

__construct() public method

public __construct ( $rows, $columns, array $set = [] )
$set array

__toString() public method

public __toString ( )

add() public method

public add ( Matrix $matrix )
$matrix Matrix

determinant() public method

Computation of the determinant of 2x2 and 3x3 matrices
public determinant ( )

divideScalar() public method

public divideScalar ( $number )

getColumns() public method

public getColumns ( )

getElement() public method

public getElement ( $row, $column )

getRows() public method

public getRows ( )

isSquare() public method

public isSquare ( )

multiplyScalar() public method

public multiplyScalar ( $number )

offsetExists() public method

public offsetExists ( $offset )

offsetGet() public method

public offsetGet ( $offset )

offsetSet() public method

public offsetSet ( $offset, $value )

offsetUnset() public method

public offsetUnset ( $offset )

product() public method

Naive Matrix product, O(n^3)
public product ( Matrix $matrix )
$matrix Matrix

set() public method

public set ( array $m )
$m array

setElement() public method

public setElement ( $row, $column, $value )

substract() public method

public substract ( Matrix $matrix )
$matrix Matrix

transpose() public method

public transpose ( )