SparseLinearAlgebraOperations<T>.ScaleAndAddInPlace Method

Definition

Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

ScaleAndAddInPlace(Int32, T, ReadOnlySpan<T>, ReadOnlySpan<Int32>, Int32, Span<T>, Int32) Evaluates a vector plus the product of a scalar and a sparse vector.
ScaleAndAddInPlace(Int32, Complex<T>, ReadOnlySpan<Complex<T>>, ReadOnlySpan<Int32>, Int32, Span<Complex<T>>, Int32) Evaluates a vector plus the product of a scalar and a sparse vector.

ScaleAndAddInPlace(Int32, T, ReadOnlySpan<T>, ReadOnlySpan<Int32>, Int32, Span<T>, Int32)

Evaluates a vector plus the product of a scalar and a sparse vector.
C#
public virtual void ScaleAndAddInPlace(
	int n,
	T alpha,
	ReadOnlySpan<T> x,
	ReadOnlySpan<int> indx,
	int m,
	Span<T> y,
	int yStride
)

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  ReadOnlySpan<T>
A reference to a one-dimensional array containing the elements of the vector x.
indx  ReadOnlySpan<Int32>
Integer array of component indices.
m  Int32
The length of the vector y.
y  Span<T>
A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.
yStride  Int32
The distance between successive elements in y.

Implements

ISparseLinearAlgebraOperations<T>.ScaleAndAddInPlace(Int32, T, ReadOnlySpan<T>, ReadOnlySpan<Int32>, Int32, Span<T>, Int32)

ScaleAndAddInPlace(Int32, Complex<T>, ReadOnlySpan<Complex<T>>, ReadOnlySpan<Int32>, Int32, Span<Complex<T>>, Int32)

Evaluates a vector plus the product of a scalar and a sparse vector.
C#
public virtual void ScaleAndAddInPlace(
	int n,
	Complex<T> alpha,
	ReadOnlySpan<Complex<T>> x,
	ReadOnlySpan<int> indx,
	int m,
	Span<Complex<T>> y,
	int yStride
)

Parameters

n  Int32
The number of elements in the vectors x and y.
alpha  Complex<T>
The scalar value used to multiply the elements of x.
x  ReadOnlySpan<Complex<T>>
A reference to a one-dimensional array containing the elements of the vector x.
indx  ReadOnlySpan<Int32>
Integer array of component indices.
m  Int32
The length of the vector y.
y  Span<Complex<T>>
A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.
yStride  Int32
The distance between successive elements in y.

Implements

ISparseLinearAlgebraOperations<T>.ScaleAndAddInPlace(Int32, T, ReadOnlySpan<T>, ReadOnlySpan<Int32>, Int32, Span<T>, Int32)

See Also