Method |
Description |
|
create ( array $A, integer $n = null ) : Matrix |
Factory method |
|
eye ( integer $m, integer $n, integer $k, number $x = 1 ) : Matrix |
Eye matrix - ones on the k diagonal and zeros everywhere else. |
|
identity ( integer $n, number $x = 1 ) : SquareMatrix |
Identity matrix - n x n matrix with ones in the diagonal
Option to set the diagonal to any number. |
|
one ( integer $m, integer $n ) : Matrix |
Ones matrix - m x n matrix with all elements being ones |
|
zero ( integer $m, integer $n ) : Matrix |
Zero matrix - m x n matrix with all elements being zeros |
|