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: 5.1.0.0
Syntax
| C# |
|---|
public static DoubleMatrix Round( DoubleMatrix A, int digits ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Round ( _ A As DoubleMatrix, _ digits As Integer _ ) As DoubleMatrix |
| Visual C++ |
|---|
public: static DoubleMatrix^ Round( DoubleMatrix^ A, int digits ) |
Parameters
- A
- Type: CenterSpace.NMath.Core..::.DoubleMatrix
A matrix.
- digits
- Type: System..::.Int32
Number of digits.
Return Value
A new matrix.
Remarks
B[i,j] = System.Math.Round(A[i,j], d)