Click or drag to resize

VectorMathMaxOf(Double, Double, Double) 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.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double[] MaxOf(
	this double[] vector1,
	double scalar,
	double[] result
)

Parameters

vector1  Double
Input vector.
scalar  Double
Number.
result  Double
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

Double
The 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 Double. 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