Click or drag to resize

VectorMathMaxOf(IReadOnlyListSingle, Single, IVectorSingle) 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<float> MaxOf(
	this IReadOnlyList<float> vector1,
	float scalar,
	IVector<float> result
)

Parameters

vector1  IReadOnlyListSingle
Input vector.
scalar  Single
Number.
result  IVectorSingle
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

IVectorSingle
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 IReadOnlyListSingle. 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