SparseLinearAlgebraOperationsOfSingle.DotProduct Method

Definition

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

Overload List

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

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

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

Parameters

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

Implements

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

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

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

Parameters

n  Int32
The number of nonzero elements in the vectors x and y.
x  Array1D<Single>
A reference to a one-dimensional array containing the elements of the vector x.
indx  Array1D<Int32>
Integer array of component indices.
y  ArraySlice<Single>
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

Single

Implements

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

See Also