LinearAlgebraOperationsExtensions.MultiplyInPlace<T, TStorage>(ILinearAlgebraOperations<T>, Int32, T, TStorage) Method

Evaluates the product of a scalar and a vector.

Definition

Namespace: Extreme.Collections
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 9.0.0
C#
public static void MultiplyInPlace<T, TStorage>(
	this ILinearAlgebraOperations<T> operations,
	int n,
	T alpha,
	TStorage x
)
where TStorage : Object, IStorageSlice<T>

Parameters

operations  ILinearAlgebraOperations<T>
The linear algebra operations instance used to perform the calculation.
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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ILinearAlgebraOperations<T>. 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