18 std::unique_ptr<Expression> arg) {
28 return std::make_unique<ConstructorMatrixResize>(
pos,
type, std::move(arg));
50 n = row + (col * this->
argument()->type().rows());
51 return this->
argument()->getConstantValue(n);
55 return (col == row) ? 1.0 : 0.0;
static std::unique_ptr< Expression > Make(const Context &context, Position pos, const Type &type, std::unique_ptr< Expression > arg)
std::optional< double > getConstantValue(int n) const override
const Type & type() const
std::unique_ptr< Expression > & argument()
bool isAllowedInES2(const Context &context) const
virtual const Type & componentType() const
virtual bool isMatrix() const
virtual int columns() const