@@ -119,7 +119,7 @@ jtipart(J jt, A z, A ind, A *i1, A *i2) {
119119 n = AN (ind );
120120 iv = AAV (ind );
121121 zp = PAV (z );
122- RZ (b = bfi ( AR (z ), SPA (zp , a ), 1 ));
122+ RZ (b = jtbfi ( jt , AR (z ), SPA (zp , a ), 1 ));
123123 c = 0 ;
124124 DO (n , if (b [i ])++ c ;);
125125 d = n - c ;
@@ -190,7 +190,7 @@ jtscubb(J jt, A z, A i1) {
190190 A a , q , x , y ;
191191 I c , d , h , j , * s , * v , * xv ;
192192 P * zp ;
193- RZ (q = scuba ( z , i1 , 1 ));
193+ RZ (q = jtscuba ( jt , z , i1 , 1 ));
194194 if (!* AS (q )) return mtm ;
195195 s = AS (z );
196196 zp = PAV (z );
@@ -206,7 +206,7 @@ jtscubb(J jt, A z, A i1) {
206206 xv = AV (x );
207207 j = c ;
208208 DO (h , xv [i ] = s [v [j ++ ]];);
209- RZ (x = odom ( 2L , h , xv ));
209+ RZ (x = jtodom ( jt , 2L , h , xv ));
210210 c = * AS (q );
211211 d = * AS (x );
212212 return jtstitch (jt , jtrepeat (jt , jtsc (jt , d ), q ), jtreitem (jt , jtsc (jt , c * d ), x ));
@@ -247,7 +247,7 @@ jtscubc(J jt, A z, A i1, A p) {
247247 RZ (y1 = jtrepeat (jt , q , y1 ));
248248 c = * AS (y1 );
249249 if (!c ) return mtm ;
250- return jtless (jt , jtstitch (jt , jtrepeat (jt , jtsc (jt , d ), y1 ), jtreitem (jt , jtsc (jt , c * d ), odom ( 2L , h , sv ))), y );
250+ return jtless (jt , jtstitch (jt , jtrepeat (jt , jtsc (jt , d ), y1 ), jtreitem (jt , jtsc (jt , c * d ), jtodom ( jt , 2L , h , sv ))), y );
251251} /* new rows for the index matrix of z for existing cells */
252252
253253static A
@@ -257,7 +257,7 @@ jtscube(J jt, A z, A i1, A p) {
257257 zp = PAV (z );
258258 a = SPA (zp , a );
259259 y = SPA (zp , i );
260- return !AN (a ) && !* AS (y ) ? jttake (jt , num (1 ), mtm ) : jtover (jt , jtscubb (jt , z , i1 ), scubc ( z , i1 , p ));
260+ return !AN (a ) && !* AS (y ) ? jttake (jt , num (1 ), mtm ) : jtover (jt , jtscubb (jt , z , i1 ), jtscubc ( jt , z , i1 , p ));
261261} /* new rows for the index matrix of z */
262262
263263static A
@@ -268,10 +268,10 @@ jtiindx(J jt, A z, A i1) {
268268 c = AN (i1 );
269269 zp = PAV (z );
270270 y = SPA (zp , i );
271- if (c == * (1 + AS (y ))) return jtindexof (jt , y , scuba ( z , i1 , 0 ));
271+ if (c == * (1 + AS (y ))) return jtindexof (jt , y , jtscuba ( jt , z , i1 , 0 ));
272272 /* when y has excess columns, do progressive indexing */
273273 RZ (y = jttaker (jt , c , y ));
274- RZ (j = jtindexof (jt , y , scuba ( z , i1 , 0 ))); /* j: group indices */
274+ RZ (j = jtindexof (jt , y , jtscuba ( jt , z , i1 , 0 ))); /* j: group indices */
275275 n = AN (j );
276276 jv = AV (j );
277277 m = * AS (y );
@@ -347,7 +347,7 @@ jtam1e(J jt, A a, A z, A ind, B ip) {
347347 e = SPA (zp , e );
348348 RZ (p = jtssel (jt , z , ind ));
349349 pv = BAV (p );
350- RZ (ipart ( z , ind , & i1 , & i2 ));
350+ RZ (jtipart ( jt , z , ind , & i1 , & i2 ));
351351 m = AN (p );
352352 n = AN (i2 );
353353 u = CAV (e );
@@ -375,10 +375,10 @@ jtam1a(J jt, A a, A z, A ind, B ip) {
375375 I ar , c , * iv , * jv , k , m , n , r , * s , uk , vk , xk ;
376376 P * zp ;
377377 RZ (a && (ind = jtistd1 (jt , z , ind )));
378- RZ (a = astd1 ( a , z , ind ));
378+ RZ (a = jtastd1 ( jt , a , z , ind ));
379379 if (mtind (ind )) return z ;
380- RZ (ipart ( z , ind , & i1 , & i2 ));
381- RZ (z = zpad1 ( z , scube ( z , i1 , jtssel (jt , z , ind )), ip ));
380+ RZ (jtipart ( jt , z , ind , & i1 , & i2 ));
381+ RZ (z = jtzpad1 ( jt , z , jtscube ( jt , z , i1 , jtssel (jt , z , ind )), ip ));
382382 zp = PAV (z );
383383 x = SPA (zp , x );
384384 y = SPA (zp , i );
@@ -398,7 +398,7 @@ jtam1a(J jt, A a, A z, A ind, B ip) {
398398 m = AN (t );
399399 if (!n && !m ) {
400400 a1 = SPA (zp , a );
401- return ar ? sparseit ( a0 , a1 , e ) : sparseit ( jtreshape (jt , shape (jt , z ), a ), a1 , a );
401+ return ar ? jtsparseit ( jt , a0 , a1 , e ) : jtsparseit ( jt , jtreshape (jt , shape (jt , z ), a ), a1 , a );
402402 }
403403 if (n ) {
404404 RZ (t = jtdcube (jt , z , i2 ));
@@ -417,6 +417,6 @@ jtam1a(J jt, A a, A z, A ind, B ip) {
417417
418418A
419419jtam1sp (J jt , A a , A z , A ind , B ip ) {
420- return amnsp ( a , z , jtope (jt , jtcatalog (jt , jtistd1 (jt , z , ind ))), ip );
420+ return jtamnsp ( jt , a , z , jtope (jt , jtcatalog (jt , jtistd1 (jt , z , ind ))), ip );
421421}
422422/* a (<ind)}z; sparse z; ind is index list; arbitrary sparse array a replacement */
0 commit comments