-2

What are the different techniques to deal with multiple data types in cython? How can I make the code generic for multiple data types and on the same hand maintain efficiency as well.

bewithaman
  • 768
  • 8
  • 16
  • 1
    You need to be more specific, giving evidence that you have studied the cython documentation, and even tried a few things. – hpaulj Mar 26 '15 at 01:14

1 Answers1

0

1) Fused types, which as you now know from your previous question Alternatives of fused type in cython are fine

2) write your code in c++ using templates and wrap that

3) code duplication, possibly using a diy script you wrote yourself

4) using plain python which deals with types generically where they have the same interface and has introspection where they don't

Community
  • 1
  • 1
DavidW
  • 29,336
  • 6
  • 55
  • 86