ISparseLinearAlgebraOperations<T>.ScaleAndAddInPlace Method

Evaluates a vector plus the product of a scalar and a sparse vector.

Definition

Namespace: Extreme.Mathematics.LinearAlgebra.Implementation
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
void ScaleAndAddInPlace(
	int n,
	T alpha,
	Array1D<T> x,
	Array1D<int> indx,
	ArraySlice<T> y
)

Parameters

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  Array1D<T>
A reference to a one-dimensional array containing the elements of the vector x.
indx  Array1D<Int32>
Integer array of component indices.
y  ArraySlice<T>
A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.

See Also