Class IdentityMatrix
Construct an identity matrix
- Chippyash\Matrix\Matrix
-
Chippyash\Math\Matrix\NumericMatrix uses Chippyash\Math\Matrix\Traits\ConvertNumberToNumeric
-
Chippyash\Math\Matrix\FunctionMatrix
-
Chippyash\Math\Matrix\IdentityMatrix
Namespace: Chippyash\Math\Matrix
Deprecated: Use SpecialMatrix::create('identity', size) instead
Located at IdentityMatrix.php
Deprecated: Use SpecialMatrix::create('identity', size) instead
Located at IdentityMatrix.php
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 |
public static
|
#
rationalIdentity( Chippyash\Type\Number\IntType $size )
Create and return a Rational Identity Matrix with RationalType entries |
public static
|
#
complexIdentity( Chippyash\Type\Number\IntType $size )
Create and return a Complex Identity Matrix with ComplexType entries |
public static
|
#
numericIdentity( Chippyash\Type\Number\IntType $size )
Create and return a Numeric Identity Matrix with IntType entries |
__invoke(),
compute(),
decompose(),
derive(),
test(),
transform()
|
integer |
IDM_TYPE_INT
|
#
0
|
integer |
IDM_TYPE_RATIONAL
|
#
1
|
integer |
IDM_TYPE_COMPLEX
|
#
2
|
NS_COMPUTATION,
NS_DECOMPOSITION,
NS_DERIVATIVE,
NS_NTRANSFORMATION,
NS_NUMERIC_ATTRIBUTE
|