3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-27 06:43:40 +01:00
dft_tools/pytriqs/gf/local/tail.pxd
Michel Ferrero f0dfabff38 Change tail implementation with fixed array size
Now the tail have a fixed size. It actually makes everything simpler. I took
order_min = -1 and order_max = 8. This makes the tails compatible with the
previous implementation. However we might want to change this to something like
-10, 10 so that they are self-contained. This commit should also fix issue #11.
2013-09-12 15:21:56 +02:00

38 lines
1.5 KiB
Cython

from dcomplex cimport *
from arrays cimport *
cdef extern from "triqs/gfs/local/tail.hpp" :
cdef cppclass tail "triqs::python_tools::cython_proxy<triqs::gfs::local::tail_view>" :
tail()
tail(array_view[dcomplex,THREE], array_view[long,TWO], long) except +
matrix_view[dcomplex] operator()(int) except +
array_view[dcomplex,THREE] data()
array_view[long,TWO] mask_view() except +
void operator << (tail &) except +
void operator << (dcomplex &) except +
long order_min() except +
long order_max() except +
size_t size() except +
size_t shape(int) except +
cdef tail operator +( tail &, tail &) except +
cdef tail operator -( tail &, tail &) except +
cdef tail operator *( tail&, tail &) except +
cdef tail operator *( double, tail &) except +
cdef tail operator *( tail &, double) except +
cdef tail operator /( double, tail &) except +
cdef tail operator /( tail &, double) except +
cdef tail operator *( dcomplex, tail &) except +
cdef tail operator *( tail &, dcomplex) except +
cdef tail operator /( dcomplex, tail &) except +
cdef tail operator /( tail &, dcomplex) except +
cdef tail inverse_c "inverse" ( tail &) except +
cdef void h5_write (h5_group, char *, tail &)
cdef extern from "triqs/utility/serialization.hpp" :
cdef std_string boost_serialize "triqs::serialize" (tail &)
cdef void boost_unserialize_into "triqs::deserialize_into_view" (std_string, tail &)