LinearAlgebraOperations.MultiplyInPlace<T, TStorage> Method

Evaluates the product of a scalar and a vector.

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public static void MultiplyInPlace<T, TStorage>(
	int n,
	T alpha,
	TStorage x
)
where TStorage : Object, IStorageSlice<T>

Parameters

n  Int32
The number of elements in the vector x.
alpha  T
The scalar value used to multiply the elements of x.
x  TStorage
A reference to a one-dimensional array containing the elements of the vector x. The elements of x are overwritten with the result.

Type Parameters

T
TStorage

See Also