Skip to content

Commit

Permalink
nelem, unpdl need to physvaffine inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Jan 22, 2025
1 parent 55eabfc commit 329d695
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lib/PDL/Core.xs
Original file line number Diff line number Diff line change
Expand Up @@ -507,12 +507,13 @@ datasv_refcount(p)

PDL_Indx
nelem(x)
pdl *x
CODE:
PDLDEBUG_f(printf("Core::nelem calling ")); pdl_barf_if_error(pdl_make_physdims(x));
RETVAL = x->nvals;
OUTPUT:
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:
RETVAL


# Call my howbig function
Expand Down Expand Up @@ -1363,6 +1364,7 @@ SV *
unpdl(x)
pdl *x
CODE:
pdl_barf_if_error(pdl_make_physvaffine( x ));
RETVAL = pdl2avref(x, 0);
OUTPUT:
RETVAL
Expand Down

0 comments on commit 329d695

Please sign in to comment.