FftConvolver class
Reusable FFT-based convolution context for repeated calls.
Use this class when the same xMax/hMax configuration is reused across
many calls; it keeps a single native context and internal buffers.
- Inheritance
-
- Object
- NativeHandle<
_FftConvolverResource> - FftConvolver
Constructors
- FftConvolver({required int xMax, required int hMax})
-
Creates a reusable convolver with maximum input lengths
xMaxandhMax.factory
Properties
- bins → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hMax → int
-
final
- isClosed → bool
-
Whether close() has been called.
no setterinherited
- nfft → int
-
final
- res → _FftConvolverResource
-
Throws if closed; returns the native resource otherwise.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- xMax → int
-
final
Methods
-
close(
) → void -
Deterministic cleanup.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
outLenFor(
int nx, int nh) → int -
Returns the output length for an input of size
nxand kernel sizenh. -
process(
Float32List x, Float32List h, {ConvMode mode = ConvMode.convolution}) → Float32List - Computes convolution/cross-correlation and returns a newly allocated output.
-
processInto(
Float32List x, Float32List h, Float32List out, {ConvMode mode = ConvMode.convolution}) → int -
Computes into caller-provided
outto avoid allocating a fresh output. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited