SparseLinearAlgebraOperations.DotProduct Method

Definition

Namespace: Extreme.Mathematics.LinearAlgebra.Implementation
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

DotProduct(Int32, Array1D<Complex<Double>>, Array1D<Int32>, ArraySlice<Complex<Double>>) Returns the dot product of a sparse and a dense vector.
DotProduct(Int32, Array1D<Double>, Array1D<Int32>, ArraySlice<Double>) Returns the dot product of a sparse and a dense vector.

DotProduct(Int32, Array1D<Complex<Double>>, Array1D<Int32>, ArraySlice<Complex<Double>>)

Returns the dot product of a sparse and a dense vector.
C#
public override Complex<double> DotProduct(
	int n,
	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.
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.

Return Value

Complex<Double>

Implements

ISparseLinearAlgebraOperations<T>.DotProduct(Int32, Array1D<T>, Array1D<Int32>, ArraySlice<T>)
ISparseLinearAlgebraOperations<T>.DotProduct(Int32, Array1D<T>, Array1D<Int32>, ArraySlice<T>)

DotProduct(Int32, Array1D<Double>, Array1D<Int32>, ArraySlice<Double>)

Returns the dot product of a sparse and a dense vector.
C#
public override double DotProduct(
	int n,
	Array1D<double> x,
	Array1D<int> indx,
	ArraySlice<double> y
)

Parameters

n  Int32
The number of nonzero elements in the vectors x and y.
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.

Return Value

Double

Implements

ISparseLinearAlgebraOperations<T>.DotProduct(Int32, Array1D<T>, Array1D<Int32>, ArraySlice<T>)
ISparseLinearAlgebraOperations<T>.DotProduct(Int32, Array1D<T>, Array1D<Int32>, ArraySlice<T>)

See Also