KernelProcessor<T>.Convolve Method

Definition

Namespace: Numerics.NET.SignalProcessing
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0

Overload List

Convolve(Vector<T>) Computes the convolution of a vector with the stored kernel (allocating).
Convolve(ReadOnlySpan<T>, Span<T>) Computes the convolution of a signal with the stored kernel.
Convolve(Vector<T>, Vector<T>) Computes the convolution of a vector with the stored kernel (non-allocating).
Convolve(Int32, ReadOnlySpan<T>, Int32, Int32, Span<T>, Int32) Computes the convolution of a signal with the stored kernel.

Convolve(Vector<T>)

Computes the convolution of a vector with the stored kernel (allocating).
C#
public Vector<T> Convolve(
	Vector<T> signal
)

Parameters

signal  Vector<T>
The input signal vector.

Return Value

Vector<T>
A vector containing the convolution result.

Convolve(ReadOnlySpan<T>, Span<T>)

Computes the convolution of a signal with the stored kernel.
C#
public void Convolve(
	ReadOnlySpan<T> signal,
	Span<T> result
)

Parameters

signal  ReadOnlySpan<T>
The input signal.
result  Span<T>
The output span to hold the convolution result.

Convolve(Vector<T>, Vector<T>)

Computes the convolution of a vector with the stored kernel (non-allocating).
C#
public void Convolve(
	Vector<T> signal,
	Vector<T> output
)

Parameters

signal  Vector<T>
The input signal vector.
output  Vector<T>
The output vector to hold the convolution result.

Convolve(Int32, ReadOnlySpan<T>, Int32, Int32, Span<T>, Int32)

Computes the convolution of a signal with the stored kernel.
C#
public abstract void Convolve(
	int signalLength,
	ReadOnlySpan<T> signal,
	int signalStride,
	int resultLength,
	Span<T> result,
	int resultStride
)

Parameters

signalLength  Int32
The length of the signal.
signal  ReadOnlySpan<T>
The input signal.
signalStride  Int32
The stride between successive elements in the signal.
resultLength  Int32
The length of the result.
result  Span<T>
The output span to hold the convolution result.
resultStride  Int32
The stride between successive elements in the result.

See Also