Skip to content

Commit

Permalink
sure
Browse files Browse the repository at this point in the history
  • Loading branch information
vmchale committed Feb 24, 2025
1 parent d12fed8 commit 353d223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyc/apple.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ NPA(npy_b,1,NPY_BOOL)

Z PY apy(K apple_t,K U);

#define apd(t,pd) PyArray_Descr* pd; {int n=t.pi_n;T s=alloca(3*n+1);J l;J o=0;DO(i,n,T r;switch(t.a_pi[i].ty.aa){C(F_t,r="f8,";l=3) C(B_t,r="?,";l=2) C(I_t,r="i8,";l=3)};memcpy(s+o,r,l);o+=l);s[o]=0;PY rt=PyUnicode_FromString(s);PyArray_DescrConverter(rt, &pd);}
#define apd(t,pd) PyArray_Descr* pd; {int n=t.pi_n;T s=alloca(3*n+1);J l;J o=0;DO(i,n,$(t.a_pi[i].f==Rc,"tuples-of-tuples not yet implemented.");T r;switch(t.a_pi[i].ty.aa){C(F_t,r="f8,";l=3) C(B_t,r="?,";l=2) C(I_t,r="i8,";l=3)};memcpy(s+o,r,l);o+=l);s[o]=0;PY rt=PyUnicode_FromString(s);PyArray_DescrConverter(rt, &pd);}

// https://numpy.org/devdocs/reference/arrays.dtypes.html#specifying-and-constructing-data-types
_ PY npy_p(K apple_P t, U x){
Expand Down

0 comments on commit 353d223

Please sign in to comment.