Click or drag to resize

VectorMathMaxOf(IReadOnlyListDouble, Double, IVectorDouble) 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 IVector<double> MaxOf(
	this IReadOnlyList<double> vector1,
	double scalar,
	IVector<double> result
)

Parameters

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

IVectorDouble
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 IReadOnlyListDouble. 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