From 377cd5941d23ccc56eb53bae7647d29b230bdef4 Mon Sep 17 00:00:00 2001 From: CHatingPython Date: Sun, 1 Nov 2026 11:25:54 +0100 Subject: [PATCH] fix(math): fix unary expression shape reporting --- include/cenet/math/expr.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cenet/math/expr.hpp b/include/cenet/math/expr.hpp index 5f431e7..fdf7dbb 100644 --- a/include/cenet/math/expr.hpp +++ b/include/cenet/math/expr.hpp @@ -51,7 +51,7 @@ struct unary_expression : expression_tag, ops_provider> unary_expression(EFwd&& expr, OpFwd&& op = Op{}) // NOLINT : expr(std::forward(expr)), op(std::forward(op)) {} - constexpr auto shape() const { return expr.shape(); } + constexpr auto shape() const { return Op::shape(expr); } auto coeff(std::size_t index) const { return op(index, std::as_const(expr)); } };