Skip to content

module numpy.fft.pocketfft

Source: stdlib/numpy/fft/pocketfft.codon


ROT90(a)


ROTX90(a, fwd: bool)


ROTX45(a, fwd: bool)


ROTX135(a, fwd: bool)


arr[T] @tuple Class is named tuple (cannot write fields)

Fields

p: Ptr[T]

sz: int

T: type

Magic methods

__new__(sz: int)

__getitem__(self, idx: int)

__setitem__(self, idx: int, val: T)

Methods

dealloc(self)

size(self)

data(self)


sincos_2pibyn[T] @tuple Class is named tuple (cannot write fields)

Fields

N: int

mask: int

shift: int

v1: arr[complex]

v2: arr[complex]

T: type

Magic methods

__new__(n: int)

__getitem__(self, idx: int)

Methods

calc(x: int, n: int, ang: float)

cmplx(self, re, im)

dealloc(self)


PM(a, b)


MP(a, b)


fctdata[T] @tuple Class is named tuple (cannot write fields)

Fields

fct: int

tw: Ptr[T]

tws: Ptr[T]

T: type

Methods

with_fct(self, fct: int)

with_tw(self, tw: Ptr[T])

with_tws(self, tws: Ptr[T])


cfftp[T,T0]

Fields

length: int

mem: arr[T]

fact: List[fctdata[T]]

T: type

T0: type

Magic methods

__init__(self, length: int)

Methods

add_factor(self, factor: int)

pass2(ido: int, l1: int, cc: Ptr[T], ch: Ptr[T], wa: Ptr[T], fwd: bool)

pass3(ido: int, l1: int, cc: Ptr[T], ch: Ptr[T], wa: Ptr[T], fwd: bool)

pass4(ido: int, l1: int, cc: Ptr[T], ch: Ptr[T], wa: Ptr[T], fwd: bool)

pass5(ido: int, l1: int, cc: Ptr[T], ch: Ptr[T], wa: Ptr[T], fwd: bool)

pass7(ido: int, l1: int, cc: Ptr[T], ch: Ptr[T], wa: Ptr[T], fwd: bool)

pass8(ido: int, l1: int, cc: Ptr[T], ch: Ptr[T], wa: Ptr[T], fwd: bool)

pass11(ido: int, l1: int, cc: Ptr[T], ch: Ptr[T], wa: Ptr[T], fwd: bool)

passg(ido: int, ip: int, l1: int, cc: Ptr[T], ch: Ptr[T], wa: Ptr[T], csarr: Ptr[T], fwd: bool)

pass_all(self, c: Ptr[T], fct: T0, fwd: bool)

exec(self, c: Ptr[T], fct: T0, fwd: bool)

factorize(self)

twsize(self)

comp_twiddle(self)

dealloc(self)


MULPM(c, d, e, f)


REARRANGE(rx, ix, ry, iy)


rfftp[T,T0]

Fields

length: int

mem: arr[T0]

fact: List[fctdata[T0]]

T: type

T0: type

Magic methods

__init__(self, length: int)

Methods

add_factor(self, factor: int)

radf2(ido: int, l1: int, cc: Ptr[T0], ch: Ptr[T0], wa: Ptr[T0])

radf3(ido: int, l1: int, cc: Ptr[T0], ch: Ptr[T0], wa: Ptr[T0])

radf4(ido: int, l1: int, cc: Ptr[T0], ch: Ptr[T0], wa: Ptr[T0])

radf5(ido: int, l1: int, cc: Ptr[T0], ch: Ptr[T0], wa: Ptr[T0])

radfg(ido: int, ip: int, l1: int, cc: Ptr[T0], ch: Ptr[T0], wa: Ptr[T0], csarr: Ptr[T0])

radb2(ido: int, l1: int, cc: Ptr[T0], ch: Ptr[T0], wa: Ptr[T0])

radb3(ido: int, l1: int, cc: Ptr[T0], ch: Ptr[T0], wa: Ptr[T0])

radb4(ido: int, l1: int, cc: Ptr[T0], ch: Ptr[T0], wa: Ptr[T0])

radb5(ido: int, l1: int, cc: Ptr[T0], ch: Ptr[T0], wa: Ptr[T0])

radbg(ido: int, ip: int, l1: int, cc: Ptr[T0], ch: Ptr[T0], wa: Ptr[T0], csarr: Ptr[T0])

copy_and_norm(self, c: Ptr[T0], p1: Ptr[T0], fct: T0)

exec(self, c: Ptr[T0], fct: T0, r2hc: bool)

factorize(self)

twsize(self)

comp_twiddle(self)

dealloc(self)


fftblue[T,T0]

Fields

n: int

n2: int

plan: cfftp[T, T0]

mem: arr[T]

bk: Ptr[T]

bkf: Ptr[T]

T: type

T0: type

Magic methods

__init__(self, length: int)

Methods

fft(self, c: Ptr[T], fct: T0, fwd: bool)

exec(self, c: Ptr[T], fct: T0, fwd: bool)

exec_r(self, c: Ptr[T0], fct: T0, fwd: bool)

dealloc(self)


pocketfft_c[T,T0]

Fields

packplan: Optional[cfftp[T, T0]]

blueplan: Optional[fftblue[T, T0]]

length: int

T: type

T0: type

Magic methods

__init__(self, length: int)

Methods

exec(self, c: Ptr[T], fct: T0, fwd: bool)


pocketfft_r[T,T0]

Fields

packplan: Optional[rfftp[T, T0]]

blueplan: Optional[fftblue[T, T0]]

length: int

T: type

T0: type

Magic methods

__init__(self, length: int)

Methods

exec(self, c: Ptr[T0], fct: T0, fwd: bool)


fft(v: Ptr[T], n: int, norm: Optional[str], T: type)


ifft(v: Ptr[T], n: int, norm: Optional[str], T: type)


rfft(v: Ptr[T0], n: int, is_forward: bool, norm: Optional[str], o: Ptr[T], T: type, T0: type)


irfft(v: Ptr[T], n: int, norm: Optional[str], o: Ptr[T0], T: type, T0: type)