Closed arturgower closed 5 years ago
Also, it is often much more efficient to calculate all orders m
of a special function (for example bessel functions) in one go. Meaning structuring the code in this way will allow us to make more efficient code.
Currently the
outgoing_basis_function
andregular_basis_function
return a function, saybasis
, wherebasis(m, x)
is the basis function evaluated at the orderm
and positionx
. This is awkward because the different ways to addbasis(m, x)
overm
depends on the physics and spatial dimension. Things need to be rewritten so that, for example,outgoing_basis_function
should return either a vector evaluated over allm
smaller than a certain order, or return a functionbasis
, wherebasis(max_order, x)
is a vector.For current code examples see: general and acoustic regular waves.