Computes the absolute value of the elements of a matrix.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Matrix<T> Abs<T>(
this Matrix<T> matrix
)
<ExtensionAttribute>
Public Shared Function Abs(Of T) (
matrix As Matrix(Of T)
) As Matrix(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static Matrix<T>^ Abs(
Matrix<T>^ matrix
)
[<ExtensionAttribute>]
static member Abs :
matrix : Matrix<'T> -> Matrix<'T>
Parameters
- matrix
- Type: Extreme.MathematicsMatrixT
A matrix.
Type Parameters
- T
Return Value
Type:
MatrixTA matrix whose elements
are equal to the absolute value of the corresponding element of
matrix.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
MatrixT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Reference