@@ -2648,27 +2648,27 @@ cdef class _Lambdify(object):
2648
2648
cdef _init(self , symengine.vec_basic& args_, symengine.vec_basic& outs_):
2649
2649
raise ValueError (" Not supported" )
2650
2650
2651
- cdef void _eval_real (self , double [::1 ] inp, double [::1 ] out):
2651
+ cpdef unsafe_real (self , double [::1 ] inp, double [::1 ] out):
2652
2652
raise ValueError (" Not supported" )
2653
2653
2654
- cdef void _eval_complex (self , double complex [::1 ] inp, double complex [::1 ] out):
2654
+ cpdef unsafe_complex (self , double complex [::1 ] inp, double complex [::1 ] out):
2655
2655
raise ValueError (" Not supported" )
2656
2656
2657
2657
# the two cpdef:ed methods below may use void return type
2658
2658
# once Cython 0.23 (from 2015) is acceptable as requirement.
2659
- cpdef unsafe_real (self , double [::1 ] inp, double [::1 ] out):
2659
+ cpdef eval_real (self , double [::1 ] inp, double [::1 ] out):
2660
2660
if inp.size != self .args_size:
2661
2661
raise ValueError (" Size of inp incompatible with number of args." )
2662
2662
if out.size != self .out_size:
2663
2663
raise ValueError (" Size of out incompatible with number of exprs." )
2664
- self ._eval_real (inp, out)
2664
+ self .unsafe_real (inp, out)
2665
2665
2666
- cpdef unsafe_complex (self , double complex [::1 ] inp, double complex [::1 ] out):
2666
+ cpdef eval_complex (self , double complex [::1 ] inp, double complex [::1 ] out):
2667
2667
if inp.size != self .args_size:
2668
2668
raise ValueError (" Size of inp incompatible with number of args." )
2669
2669
if out.size != self .out_size:
2670
2670
raise ValueError (" Size of out incompatible with number of exprs." )
2671
- self ._eval_complex (inp, out)
2671
+ self .unsafe_complex (inp, out)
2672
2672
2673
2673
def __call__ (self , inp , out = None , use_numpy = None ):
2674
2674
"""
@@ -2811,10 +2811,10 @@ cdef class LambdaDouble(_Lambdify):
2811
2811
self .lambda_double_complex.resize(1 )
2812
2812
self .lambda_double_complex[0 ].init(args_, outs_)
2813
2813
2814
- cdef void _eval_real (self , double [::1 ] inp, double [::1 ] out):
2814
+ cpdef unsafe_real (self , double [::1 ] inp, double [::1 ] out):
2815
2815
self .lambda_double[0 ].call(& out[0 ], & inp[0 ])
2816
2816
2817
- cdef void _eval_complex (self , double complex [::1 ] inp, double complex [::1 ] out):
2817
+ cpdef unsafe_complex (self , double complex [::1 ] inp, double complex [::1 ] out):
2818
2818
self .lambda_double_complex[0 ].call(& out[0 ], & inp[0 ])
2819
2819
2820
2820
@@ -2827,7 +2827,7 @@ IF HAVE_SYMENGINE_LLVM:
2827
2827
self .lambda_double.resize(1 )
2828
2828
self .lambda_double[0 ].init(args_, outs_)
2829
2829
2830
- cdef void _eval_real (self , double [::1 ] inp, double [::1 ] out):
2830
+ cpdef unsafe_real (self , double [::1 ] inp, double [::1 ] out):
2831
2831
self .lambda_double[0 ].call(& out[0 ], & inp[0 ])
2832
2832
2833
2833
0 commit comments