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 FunctionMatrix

Matrix construction using a function

Chippyash\Matrix\Matrix
Extended by Chippyash\Math\Matrix\NumericMatrix uses Chippyash\Math\Matrix\Traits\ConvertNumberToNumeric
Extended by Chippyash\Math\Matrix\FunctionMatrix

Direct known subclasses

Chippyash\Math\Matrix\IdentityMatrix, Chippyash\Math\Matrix\ZeroMatrix
Namespace: Chippyash\Math\Matrix
Deprecated: Use SpecialMatrix::create('functional', int:rows, int:cols, \Closure:f) instead
Located at FunctionMatrix.php
Methods summary
public
# __construct( callable $function, Chippyash\Type\Number\IntType $rows, Chippyash\Type\Number\IntType $cols )

Construct a complete matrix whose entries are a result of a function

Construct a complete matrix whose entries are a result of a function

The function must accept two parameters e.g. $function($row, $col) {return $row - $col;}

$row and $col are 1 based

Parameters

$function
$rows
Number of required rows
$cols
Number or required columns

Throws

InvalidArgumentException

Overrides

Chippyash\Math\Matrix\NumericMatrix::__construct()
Methods inherited from Chippyash\Math\Matrix\NumericMatrix
__invoke(), compute(), decompose(), derive(), test(), transform()
Constants inherited from Chippyash\Math\Matrix\NumericMatrix
NS_COMPUTATION, NS_DECOMPOSITION, NS_DERIVATIVE, NS_NTRANSFORMATION, NS_NUMERIC_ATTRIBUTE
Chippyash Math Matrix API documentation generated by ApiGen