PHP Class pocketmine\math\Matrix

Inheritance: implements ArrayAccess
Afficher le fichier Open project: ClearSkyTeam/ClearSky

Méthodes publiques

Méthode 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 méthode

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

__toString() public méthode

public __toString ( )

add() public méthode

public add ( Matrix $matrix )
$matrix Matrix

determinant() public méthode

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

divideScalar() public méthode

public divideScalar ( $number )

getColumns() public méthode

public getColumns ( )

getElement() public méthode

public getElement ( $row, $column )

getRows() public méthode

public getRows ( )

isSquare() public méthode

public isSquare ( )

multiplyScalar() public méthode

public multiplyScalar ( $number )

offsetExists() public méthode

public offsetExists ( $offset )

offsetGet() public méthode

public offsetGet ( $offset )

offsetSet() public méthode

public offsetSet ( $offset, $value )

offsetUnset() public méthode

public offsetUnset ( $offset )

product() public méthode

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

set() public méthode

public set ( array $m )
$m array

setElement() public méthode

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

substract() public méthode

public substract ( Matrix $matrix )
$matrix Matrix

transpose() public méthode

public transpose ( )