moiseevigor / elliptic

Elliptic functions for Matlab and Octave
http://moiseevigor.github.io/elliptic
15 stars 5 forks source link

empty input for elliptic123(phi,m) #19

Open tangjinchuan opened 6 years ago

tangjinchuan commented 6 years ago

Dear Vigor,

Could you please add the empty returns (with the same empty size as the input) when calling elliptic123 with two empty inputs? The current version of the code gives the following:

aa= zeros(1,0); [r1 r2]=elliptic123(aa,aa) Output argument "F" (and maybe others) not assigned during call to "elliptic123>elliptic12x". Error in elliptic123

It would be very nice to get r1==r2==aa in some vectorization operations since aa could be an empty array.

Thank you very much!

Best wishes, Jinchuan

moiseevigor commented 6 years ago

Yeap, I'll try to do it.