Click or drag to resize

VectorMathMaxOf(Int32, Int32, Int32) 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 int[] MaxOf(
	this int[] vector1,
	int scalar,
	int[] result
)

Parameters

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

Int32
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 Int32. 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