We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55eabfc commit 329d695Copy full SHA for 329d695
lib/PDL/Core.xs
@@ -507,12 +507,13 @@ datasv_refcount(p)
507
508
PDL_Indx
509
nelem(x)
510
- pdl *x
511
- CODE:
512
- PDLDEBUG_f(printf("Core::nelem calling ")); pdl_barf_if_error(pdl_make_physdims(x));
513
- RETVAL = x->nvals;
514
- OUTPUT:
515
- RETVAL
+ pdl *x
+ CODE:
+ pdl_barf_if_error(pdl_make_physvaffine( x ));
+ PDLDEBUG_f(printf("Core::nelem calling ")); pdl_barf_if_error(pdl_make_physdims(x));
+ RETVAL = x->nvals;
+ OUTPUT:
516
+ RETVAL
517
518
519
# Call my howbig function
@@ -1363,6 +1364,7 @@ SV *
1363
1364
unpdl(x)
1365
pdl *x
1366
CODE:
1367
1368
RETVAL = pdl2avref(x, 0);
1369
OUTPUT:
1370
RETVAL
0 commit comments