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 IdentityMatrix

Construct an identity matrix

Chippyash\Matrix\Matrix
Extended by Chippyash\Math\Matrix\NumericMatrix uses Chippyash\Math\Matrix\Traits\ConvertNumberToNumeric
Extended by Chippyash\Math\Matrix\FunctionMatrix
Extended by Chippyash\Math\Matrix\IdentityMatrix
Namespace: Chippyash\Math\Matrix
Deprecated: Use SpecialMatrix::create('identity', size) instead
Located at IdentityMatrix.php
Methods summary
public
# __construct( Chippyash\Type\Number\IntType $size, Chippyash\Type\Number\IntType $identityType = null )

Construct a square NumericMatrix whose entries on the diagonal == 1, 1/1 or 1+0i All other entries == 0, 0/1 or 0+0i

Construct a square NumericMatrix whose entries on the diagonal == 1, 1/1 or 1+0i All other entries == 0, 0/1 or 0+0i

Parameters

$size
Number of required rows and columns
$identityType
Type of identity entries: default == IDM_TYPE_INT

Throws

InvalidArgumentException

Overrides

Chippyash\Math\Matrix\FunctionMatrix::__construct()
public static Chippyash\Math\Matrix\RationalMatrix
# rationalIdentity( Chippyash\Type\Number\IntType $size )

Create and return a Rational Identity Matrix with RationalType entries

Create and return a Rational Identity Matrix with RationalType entries

Parameters

$size

Returns

Chippyash\Math\Matrix\RationalMatrix
public static Chippyash\Math\Matrix\RationalMatrix
# complexIdentity( Chippyash\Type\Number\IntType $size )

Create and return a Complex Identity Matrix with ComplexType entries

Create and return a Complex Identity Matrix with ComplexType entries

Parameters

$size

Returns

Chippyash\Math\Matrix\RationalMatrix
public static Chippyash\Math\Matrix\NumericMatrix
# numericIdentity( Chippyash\Type\Number\IntType $size )

Create and return a Numeric Identity Matrix with IntType entries

Create and return a Numeric Identity Matrix with IntType entries

Parameters

$size

Returns

Chippyash\Math\Matrix\NumericMatrix
Methods inherited from Chippyash\Math\Matrix\NumericMatrix
__invoke(), compute(), decompose(), derive(), test(), transform()
Constants summary
integer IDM_TYPE_INT
# 0
integer IDM_TYPE_RATIONAL
# 1
integer IDM_TYPE_COMPLEX
# 2
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