ports/math/octave-forge-specfun/files/patch-ellipj.cc
Stephen Montgomery-Smith 6473aac25b - Update math/octave to 6.2.0.
- Bump portrevision of dependent ports.
- Add patches to dependent ports math/octave-forge-* if I can figure them out.
- Mark broken dependent ports I couldn't figure out.
2021-02-21 22:41:34 +00:00

29 lines
1 KiB
C++

--- ellipj.cc.orig 2021-02-21 22:11:36 UTC
+++ ellipj.cc
@@ -190,7 +190,7 @@ return @code{NaN}.\n\
if (u_arg.is_scalar_type ()) { /* u scalar */
/*{{{*/
- if (u_arg.is_real_type ()) { // u real
+ if (u_arg.isreal ()) { // u real
double u = args(0).double_value ();
if (! error_state) {
@@ -265,7 +265,7 @@ return @code{NaN}.\n\
int nc = m.cols ();
Matrix err (nr, nc);
- if (u_arg.is_real_type ()) {
+ if (u_arg.isreal ()) {
double u = u_arg.double_value ();
Matrix sn (nr, nc), cn (nr, nc), dn (nr, nc);
if (! error_state) {
@@ -296,7 +296,7 @@ return @code{NaN}.\n\
/*}}}*/
} else { // u is matrix (m is matrix)
/*{{{*/
- if (u_arg.is_real_type ()) { // u real matrix
+ if (u_arg.isreal ()) { // u real matrix
Matrix u = u_arg.matrix_value ();
if (! error_state) {