Class SpecialMatrix
Create and return 'special' matrices. Inspired by Octave/Matlab
This is really a factory class
Usage: //inline creation if your version of PHP allows it $mS = (new SpecialMatrix())->create(new StringType('NameOfMatrix')[, $arg1, $arg2]);
//or as an invokable class $factory = new SpecialMatrix(); $mS = $factory(new StringType('nameOfMatrix')[, $arg1, $arg2]); //or $mS = $factory('NameOfMatrix'[, $arg1, $arg2]);
public
|
|
public
|
string |
ERR1
|
#
'You need at least the name of the special matrix to create it!'
|
string |
ERR2
|
#
'Matrix named %s does not exist'
|
string |
ERR3
|
#
'Matrix named %s does not implement SpecialMatrixInterface'
|
string |
NS
|
#
'\\Chippyash\\Math\\Matrix\\Special\\'
|