The Reshape class.
This class represents the reshaping of an expression. The operator vectorizes the expression, then unvectorizes it into the new dimensions. Entries are stored in column-major order.
Reshape(expr, new_dim) ## S4 method for signature 'Reshape' to_numeric(object, values) ## S4 method for signature 'Reshape' validate_args(object) ## S4 method for signature 'Reshape' dim_from_args(object) ## S4 method for signature 'Reshape' is_atom_log_log_convex(object) ## S4 method for signature 'Reshape' is_atom_log_log_concave(object) ## S4 method for signature 'Reshape' get_data(object) ## S4 method for signature 'Reshape' graph_implementation(object, arg_objs, dim, data = NA_real_)
expr |
An Expression or numeric matrix. |
new_dim |
The new dimensions. |
object |
A Reshape object. |
values |
A list of arguments to the atom. |
arg_objs |
A list of linear expressions for each argument. |
dim |
A vector representing the dimensions of the resulting expression. |
data |
A list of additional data required by the atom. |
to_numeric
: Reshape the value into the specified dimensions.
validate_args
: Check the new shape has the same number of entries as the old.
dim_from_args
: The c(rows, cols)
dimensions of the new expression.
is_atom_log_log_convex
: Is the atom log-log convex?
is_atom_log_log_concave
: Is the atom log-log concave?
get_data
: Returns a list containing the new shape.
graph_implementation
: The graph implementation of the atom.
expr
An Expression or numeric matrix.
new_dim
The new dimensions.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.