Sparse Linear Algebra Operations.Scale And Add In Place Method
Definition
Namespace: Extreme.Mathematics.LinearAlgebra.Implementation
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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<Double>, Array1D<Complex<Double>>, Array1D<Int32>, ArraySlice<Complex<Double>>)
Evaluates a vector plus the product of a scalar and a sparse vector.
public override void ScaleAndAddInPlace(
int n,
Complex<double> alpha,
Array1D<Complex<double>> x,
Array1D<int> indx,
ArraySlice<Complex<double>> y
)
Parameters
- n Int32
- The number of nonzero elements in the vectors x and y.
- alpha Complex<Double>
- The scalar value used to multiply the elements of x.
- x Array1D<Complex<Double>>
- A reference to a one-dimensional array containing the elements of the vector x.
- indx Array1D<Int32>
- Integer array of component indices.
- y ArraySlice<Complex<Double>>
- A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.
Implements
ISparseLinearAlgebraOperations<T>.ScaleAndAddInPlace(Int32, T, Array1D<T>, Array1D<Int32>, ArraySlice<T>)ISparseLinearAlgebraOperations<T>.ScaleAndAddInPlace(Int32, T, Array1D<T>, Array1D<Int32>, ArraySlice<T>)
ScaleAndAddInPlace(Int32, Double, Array1D<Double>, Array1D<Int32>, ArraySlice<Double>)
Evaluates a vector plus the product of a scalar and a sparse vector.
public override void ScaleAndAddInPlace(
int n,
double alpha,
Array1D<double> x,
Array1D<int> indx,
ArraySlice<double> y
)
Parameters
- n Int32
- The number of nonzero elements in the vectors x and y.
- alpha Double
- The scalar value used to multiply the elements of x.
- x Array1D<Double>
- A reference to a one-dimensional array containing the elements of the vector x.
- indx Array1D<Int32>
- Integer array of component indices.
- y ArraySlice<Double>
- A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.
Implements
ISparseLinearAlgebraOperations<T>.ScaleAndAddInPlace(Int32, T, Array1D<T>, Array1D<Int32>, ArraySlice<T>)ISparseLinearAlgebraOperations<T>.ScaleAndAddInPlace(Int32, T, Array1D<T>, Array1D<Int32>, ArraySlice<T>)