cpp_polygon.pxd 879 B

12345678910111213141516171819202122232425262728293031323334353637
  1. from libcpp.string cimport string
  2. from cpp_vertex cimport cpp_Vertex
  3. from cpp_coefficients cimport cpp_Coefficients
  4. cdef extern from "polygon.cpp":
  5. pass
  6. cdef extern from "matrix.hpp":
  7. pass
  8. cdef extern from "matrix.cpp":
  9. pass
  10. cdef extern from "error.hpp":
  11. pass
  12. cdef extern from "error.cpp":
  13. pass
  14. cdef extern from "py_error.hpp":
  15. cdef int raise_py_error()
  16. cdef extern from "polygon.hpp":
  17. cdef cppclass cpp_Polygon "Polygon":
  18. cpp_Polygon()
  19. cpp_Polygon(string) except +raise_py_error
  20. size_t size()
  21. size_t graph_size()
  22. cpp_Vertex vertex(size_t i)
  23. double get_coeff_B(size_t i,size_t j)
  24. double get_coeff_C(size_t i,size_t j)
  25. double get_coeff_M(size_t i,size_t j)
  26. double get_fp()
  27. @staticmethod
  28. cpp_Coefficients get_coefficients()
  29. #cdef extern from "polygon.cpp" namespace "Polygon":
  30. # cpp_Coefficients get_coefficients()