Returns a copy of the input matrix only if the input matrix contains only real values (no NaN's of infinite values allowed). If the input matrix contains any non-real values an InvalidArgumentException is thrown.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public static DoubleMatrix CopyOnlyReal(
	DoubleMatrix A
)
Visual Basic (Declaration)
Public Shared Function CopyOnlyReal ( _
	A As DoubleMatrix _
) As DoubleMatrix
Visual C++
public:
static DoubleMatrix^ CopyOnlyReal(
	DoubleMatrix^ A
)

Parameters

A
Type: CenterSpace.NMath.Core..::.DoubleMatrix
Matrix to copy.

Return Value

A deep copy of A if it contains only real values.

See Also