Overview

Namespaces

  • Chippyash
    • Math
      • Matrix
        • Attribute
        • Computation
          • Add
          • Div
          • Mul
          • Sub
        • Decomposition
        • Derivative
          • Strategy
            • Determinant
        • Exceptions
        • Formatter
          • DirectedGraph
        • Interfaces
        • Special
        • Traits
        • Transformation
          • Strategy
            • Invert

Classes

  • ComplexMatrix
  • FunctionMatrix
  • IdentityMatrix
  • MatrixFactory
  • NumericMatrix
  • RationalMatrix
  • ShiftMatrix
  • SpecialMatrix
  • ZeroMatrix
  • Overview
  • Namespace
  • Class
  • Tree

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]);

Namespace: Chippyash\Math\Matrix
Located at SpecialMatrix.php
Methods summary
public Chippyash\Math\Matrix\NumericMatrix
# __invoke( )

Magic invokable method for class Proxies to create()

Magic invokable method for class Proxies to create()

Returns

Chippyash\Math\Matrix\NumericMatrix

Throws

Chippyash\Math\Matrix\Exceptions\MathMatrixException

See

Chippyash\Math\Matrix\SpecialMatrix::create()
public Chippyash\Math\Matrix\NumericMatrix
# create( Chippyash\Type\String\StringType $matrixName, array $args = [] )

Create a special matrix

Create a special matrix

Parameters

$matrixName
$args

Returns

Chippyash\Math\Matrix\NumericMatrix

Throws

Chippyash\Math\Matrix\Exceptions\MathMatrixException
Constants summary
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\\'
Chippyash Math Matrix API documentation generated by ApiGen