Learn R Programming

CVXR (version 1.9.1)

reshape_expr: Reshape an expression to a new shape

Description

Reshape an expression to a new shape

Usage

reshape_expr(x, dim, order = "F")

Value

A Reshape expression.

Arguments

x

An Expression or numeric value.

dim

Integer vector of length 2: the target shape c(nrow, ncol). A single integer is treated as c(dim, 1). Use -1 to infer a dimension.

order

Character: "F" (column-major, default) or "C" (row-major).