| NMathFunctionsRound(FloatMatrix, 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.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static FloatMatrix Round(
FloatMatrix A,
int digits
)
Public Shared Function Round (
A As FloatMatrix,
digits As Integer
) As FloatMatrix
public:
static FloatMatrix^ Round(
FloatMatrix^ A,
int digits
)
static member Round :
A : FloatMatrix *
digits : int -> FloatMatrix
Parameters
- A FloatMatrix
- A matrix.
- digits Int32
- Number of digits.
Return Value
FloatMatrixA new matrix.
Remarks B[i,j] = (float) System.Math.Round(A[i,j], d)
See Also