Sparse Linear Algebra Operations Of Single.Scale And Add In Place Method
Definition
Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET.SinglePrecision (in Numerics.NET.SinglePrecision.dll) Version: 9.0.3
Assembly: Numerics.NET.SinglePrecision (in Numerics.NET.SinglePrecision.dll) Version: 9.0.3
Overload List
Scale | Evaluates a vector plus the product of a scalar and a sparse vector. |
Scale | Evaluates a vector plus the product of a scalar and a sparse vector. |
ScaleAndAddInPlace(Int32, Complex<Single>, ReadOnlySpan<Complex<Single>>, ReadOnlySpan<Int32>, Int32, Span<Complex<Single>>, Int32)
Evaluates a vector plus the product of a scalar and a sparse vector.
public override void ScaleAndAddInPlace(
int n,
Complex<float> alpha,
ReadOnlySpan<Complex<float>> x,
ReadOnlySpan<int> indx,
int m,
Span<Complex<float>> y,
int incy
)
Parameters
- n Int32
- The number of elements in the vectors x and y.
- alpha Complex<Single>
- The scalar value used to multiply the elements of x.
- x ReadOnlySpan<Complex<Single>>
- 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<Single>>
- A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.
- incy Int32
Implements
ISparseLinearAlgebraOperations<T>.ScaleAndAddInPlace(Int32, T, ReadOnlySpan<T>, ReadOnlySpan<Int32>, Int32, Span<T>, Int32)ISparseLinearAlgebraOperations<T>.ScaleAndAddInPlace(Int32, T, ReadOnlySpan<T>, ReadOnlySpan<Int32>, Int32, Span<T>, Int32)
ScaleAndAddInPlace(Int32, Single, ReadOnlySpan<Single>, ReadOnlySpan<Int32>, Int32, Span<Single>, Int32)
Evaluates a vector plus the product of a scalar and a sparse vector.
public override void ScaleAndAddInPlace(
int n,
float alpha,
ReadOnlySpan<float> x,
ReadOnlySpan<int> indx,
int m,
Span<float> y,
int incy
)
Parameters
- n Int32
- The number of elements in the vectors x and y.
- alpha Single
- The scalar value used to multiply the elements of x.
- x ReadOnlySpan<Single>
- 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<Single>
- A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.
- incy Int32
Implements
ISparseLinearAlgebraOperations<T>.ScaleAndAddInPlace(Int32, T, ReadOnlySpan<T>, ReadOnlySpan<Int32>, Int32, Span<T>, Int32)ISparseLinearAlgebraOperations<T>.ScaleAndAddInPlace(Int32, T, ReadOnlySpan<T>, ReadOnlySpan<Int32>, Int32, Span<T>, Int32)