From 72cdb0d5fbb64aa93a85a2c8ffccb9992f161f1c Mon Sep 17 00:00:00 2001 From: dzaima Date: Mon, 7 Oct 2024 04:47:06 +0300 Subject: [PATCH] mark reshape_one as ascending & descending --- src/builtins/sfns.c | 2 +- src/core/stuff.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builtins/sfns.c b/src/builtins/sfns.c index e47ccd36..3a1d3d75 100644 --- a/src/builtins/sfns.c +++ b/src/builtins/sfns.c @@ -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); } diff --git a/src/core/stuff.h b/src/core/stuff.h index d6585910..448feb8d 100644 --- a/src/core/stuff.h +++ b/src/core/stuff.h @@ -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⥊