Click or drag to resize

NMathFunctionsRound(DoubleMatrix, Int32) Method

Creates a new matrix with the same dimensions as a given matrix, whose values are the result of rounding each element to the specified number of digits.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static DoubleMatrix Round(
	DoubleMatrix A,
	int digits
)

Parameters

A  DoubleMatrix
A matrix.
digits  Int32
Number of digits.

Return Value

DoubleMatrix
A new matrix.
Remarks
B[i,j] = System.Math.Round(A[i,j], d)
See Also