Support for constant T-matrix generator in cython.
Former-commit-id: 184f88b0acf453d09e67f03cf41db06b4b4015bb
This commit is contained in:
parent
c86ff69827
commit
b578f305ac
|
@ -240,6 +240,10 @@ cdef class TMatrixGenerator:
|
|||
self.holder = what
|
||||
self.g.function = qpms_tmatrix_generator_axialsym
|
||||
self.g.params = (<__AxialSymParams?>self.holder).rawpointer()
|
||||
elif isinstance(what, CTMatrix):
|
||||
self.holder = what
|
||||
self.g.function = qpms_tmatrix_generator_constant
|
||||
self.g.params = <void*>(<CTMatrix?>self.holder).rawpointer()
|
||||
# TODO INTERPOLATOR
|
||||
else:
|
||||
raise TypeError("Can't construct TMatrixGenerator from that")
|
||||
|
|
|
@ -414,6 +414,7 @@ cdef extern from "tmatrices.h":
|
|||
qpms_errno_t qpms_tmatrix_generator_axialsym(qpms_tmatrix_t *t, cdouble omega, const void *params)
|
||||
qpms_errno_t qpms_tmatrix_generator_interpolator(qpms_tmatrix_t *t, cdouble omega, const void *params)
|
||||
qpms_errno_t qpms_tmatrix_generator_sphere(qpms_tmatrix_t *t, cdouble omega, const void *params)
|
||||
qpms_errno_t qpms_tmatrix_generator_constant(qpms_tmatrix_t *t, cdouble omega, const void *params)
|
||||
struct qpms_tmatrix_generator_sphere_param_t:
|
||||
qpms_epsmu_generator_t outside
|
||||
qpms_epsmu_generator_t inside
|
||||
|
|
Loading…
Reference in New Issue