VectorMathMaxOf(Single, Single, Single) Method |
Creates a new vector, whose elements are the maximum of the elements of a given input vector and a given number.
Namespace: Altaxo.Calc.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static float[] MaxOf(
this float[] vector1,
float scalar,
float[] result
)
Parameters
- vector1 Single
- Input vector.
- scalar Single
- Number.
- result Single
- Provide a vector whose elements are filled with the result. If null is provided, then a new vector will be allocated and returned.
Return Value
SingleThe same instance as provided by result. Each element r[i] is the maximum of v[i] and b.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Single. 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).
See Also