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

Evaluates a vector plus 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 MultiplyAndAddInPlace<T, TStorage>(
	this ILinearAlgebraOperations<T> operations,
	int n,
	T alpha,
	TStorage x,
	TStorage y
)
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 vectors x and y.
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.
y  TStorage
A reference to a one-dimensional array containing the elements of the vector y. The elements of y 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