ISparseLinearAlgebraOperations<T>.Scatter Method

Copies the nonzero components of a sparse vector into the corresponding components of a dense vector.

Definition

Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
void Scatter(
	int n,
	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.
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.

See Also