ILNumerics Ultimate VSILMathpinv Method (InArraySingle, NullableSingle)ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Moore-Penrose pseudo inverse of A.

[ILNumerics Computing Engine]

Namespace: ILNumerics
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.3.0.0 (5.3.7131.2749)
Syntax

public static RetArray<float> pinv(
	InArray<float> A,
	Nullable<float> tolerance = null
)

Parameters

A
Type: ILNumericsInArraySingle
Input matrix.
tolerance (Optional)
Type: SystemNullableSingle
[Optional] Tolerance. Default: (null) - use default tolerance (see remarks).

Return Value

Type: RetArraySingle
Pseudo inverse of input matrix A
Remarks

The function returns the pseudo inverse (Moore-Penrose pseudoinverse) of input matrix A. The return value will be of the same size as A.T. It will satisfy the following conditions:
  • A * pinv(A) * A = A
  • pinv(A) * A * pinv(A) = pinv(A)
  • pinv(A) * A is hermitian.
  • A * pinv(A) is hermitian.
pinv(InArraySingle, NullableSingle) relies on svd(InArraycomplex), utilizing native Lapack functions internally. Singular values less than tolerance will be set to zero. As default tolerance the following equation is used: \\ tolerance = length(A) * norm(A) * eps, where
  • length(A) - the longest dimension of A.
  • norm(A) being the largest singular value of A.
  • eps - the smallest number greater than one.

[ILNumerics Computing Engine]

See Also

Reference

MathInternal.pinv(InArraySingle, NullableSingle)
MathInternal.svd(InArraySingle)
MathInternal.norm(InArraySingle, Single)