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 ComplexMatrix

Construct a matrix whose entries are complex numbers

Chippyash\Matrix\Matrix
Extended by Chippyash\Math\Matrix\NumericMatrix uses Chippyash\Math\Matrix\Traits\ConvertNumberToNumeric
Extended by Chippyash\Math\Matrix\ComplexMatrix uses Chippyash\Math\Matrix\Traits\ConvertNumberToComplex
Namespace: Chippyash\Math\Matrix
Located at ComplexMatrix.php
Methods summary
public
# __construct( Matrix|array $source, Chippyash\Type\Number\Complex\ComplexType $normalizeDefault = null )

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

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

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

If you don't supply a default value, then 0+0i will be used

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