SparseLinearAlgebraOperationsOfSingle.DotProduct Method

Definition

Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET.SinglePrecision (in Numerics.NET.SinglePrecision.dll) Version: 9.0.3

Overload List

DotProduct(Int32, ReadOnlySpan<Complex<Single>>, ReadOnlySpan<Int32>, Int32, ReadOnlySpan<Complex<Single>>, Int32)

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

Parameters

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

Return Value

Complex<Single>

Implements

ISparseLinearAlgebraOperations<T>.DotProduct(Int32, ReadOnlySpan<T>, ReadOnlySpan<Int32>, Int32, ReadOnlySpan<T>, Int32)
ISparseLinearAlgebraOperations<T>.DotProduct(Int32, ReadOnlySpan<T>, ReadOnlySpan<Int32>, Int32, ReadOnlySpan<T>, Int32)

DotProduct(Int32, ReadOnlySpan<Single>, ReadOnlySpan<Int32>, Int32, ReadOnlySpan<Single>, Int32)

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

Parameters

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

Return Value

Single

Implements

ISparseLinearAlgebraOperations<T>.DotProduct(Int32, ReadOnlySpan<T>, ReadOnlySpan<Int32>, Int32, ReadOnlySpan<T>, Int32)
ISparseLinearAlgebraOperations<T>.DotProduct(Int32, ReadOnlySpan<T>, ReadOnlySpan<Int32>, Int32, ReadOnlySpan<T>, Int32)

See Also