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 RationalMatrix

Construct a matrix whose entries are Rational numbers

Chippyash\Matrix\Matrix
Extended by Chippyash\Math\Matrix\NumericMatrix uses Chippyash\Math\Matrix\Traits\ConvertNumberToNumeric
Extended by Chippyash\Math\Matrix\RationalMatrix uses Chippyash\Math\Matrix\Traits\ConvertNumberToRational
Namespace: Chippyash\Math\Matrix
Located at RationalMatrix.php
Methods summary
public
# __construct( Matrix|array $source, mixed $normalizeDefault = 0 )

Construct a complete Matrix with all entries set to a rational number Takes a source matrix or array (which can be incomplete and converts each entry to rational number, setting a default value if entry does not exist.

Construct a complete Matrix with all entries set to a rational number Takes a source matrix or array (which can be incomplete and converts each entry to rational number, setting a default value if entry does not exist.

If a Matrix is supplied as $source, the data is cloned into the RationalMatrix converting to rational number values, with no further checks, although you may get exceptions thrown if conversion is not possible.

Parameters

$source
Array to initialise the matrix with
$normalizeDefault
Value to set missing vertices

Throws

Chippyash\Math\Matrix\Exceptions\MathMatrixException

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