mark reshape_one as ascending & descending

This commit is contained in:
dzaima 2024-10-07 04:47:06 +03:00
parent 4b38a8cf6b
commit 72cdb0d5fb
2 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ NOINLINE Arr* reshape_one(usz nia, B x) {
NOGC_E;
}
#undef FILL
return r;
return FLV_SET(r, fl_asc|fl_dsc|fl_squoze);
}
B pair_c1(B t, B x) { return m_vec1(x); }

View File

@ -190,7 +190,7 @@ B bit_sel(B b, B e0, B e1); // consumes b; b must be bitarr; b⊏e0‿e1
Arr* allZeroes(usz ia); // ia⥊0 with undefined shape; always produces new array
Arr* allOnes(usz ia); // ia⥊1 with undefined shape; always produces new array
Arr* reshape_one(usz nia, B x); // nia⥊<x with undefined shape; consumes x
Arr* reshape_one(usz nia, B x); // nia⥊<x with undefined shape, with fl_asc, fl_dsc, and fl_squoze set; consumes x
B i64EachDec(i64 v, B x); // v¨ x; consumes x
B bit_negate(B x); // consumes; always produces new array