WindowFunction<T>.AsSpan Method

Returns a read-only span over the sequence of weights in this instance.

Definition

Namespace: Numerics.NET.SignalProcessing
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0
C#
public ReadOnlySpan<T> AsSpan()

Return Value

ReadOnlySpan<T>
A read-only span of T values representing the weights. The span reflects the current state of the underlying data and is valid only as long as the instance remains unchanged.

Remarks

The returned span provides a memory-efficient, non-copying view of the weights. Modifying the underlying collection or disposing of the instance may invalidate the span.

See Also