SVMExtensions
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Truncate | 1 | Truncate the floating point value to a precision of 1e-6, so that the floating point calculation error can be ignored in the equality comparison. |
| IsEqual | 2 | Compare the two arrays element by element. |
| IsEqual | 2 | Compare the two Double arrays element by element, the values are truncated by the SVMExtensions.Truncate()) function before the comparison. |
03 Members
Double)Truncate the floating point value to a precision of 1e-6, so that the floating point calculation error can be ignored in the equality comparison.
| Name | Type | Description |
|---|---|---|
x | Double | The value that will be truncated. |
The truncated value.
``0()(), ``0()())Compare the two jagged arrays element by element.
| Name | Description |
|---|---|
T | The element type of the arrays. |
| Name | Type | Description |
|---|---|---|
lhs | ``0()() | The first array. |
rhs | ``0()() | The second array. |
True when the two arrays have the same size and all of their elements are equal to each other.
``0(), ``0())Compare the two arrays element by element.
| Name | Description |
|---|---|
T | The element type of the arrays. |
| Name | Type | Description |
|---|---|---|
lhs | ``0() | The first array. |
rhs | ``0() | The second array. |
True when the two arrays have the same size and all of their elements are equal to each other.
Double(), Double())Compare the two Double arrays element by element, the values are truncated by the SVMExtensions.Truncate() function before the comparison.
| Name | Type | Description |
|---|---|---|
lhs | Double() | The first array. |
rhs | Double() | The second array. |
True when the two arrays have the same size and all of their truncated elements are equal to each other.
Double()(), Double()())Compare the two jagged Double arrays element by element, the values are truncated before the comparison.
| Name | Type | Description |
|---|---|---|
lhs | Double()() | The first array. |
rhs | Double()() | The second array. |
True when the two arrays have the same size and all of their truncated elements are equal to each other.