summaryrefslogtreecommitdiffstats
path: root/polymatrix/expression/init/initreshapeexpr.py
blob: f95fb008152a498f2596af98ffdf999a00918e8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from polymatrix.expression.mixins.expressionbasemixin import ExpressionBaseMixin
from polymatrix.expression.impl.reshapeexprimpl import ReshapeExprImpl


def init_reshape_expr(
		underlying: ExpressionBaseMixin,
		new_shape: tuple,
):
	return ReshapeExprImpl(
		underlying=underlying,
		new_shape=new_shape,
)