powered by
This class represents a parameter whose value is obtained by evaluating a function.
CallbackParam(callback, rows = 1, cols = 1, name = NA_character_, sign = UNKNOWN)# S4 method for CallbackParam value(object)# S4 method for CallbackParam get_data(object)
# S4 method for CallbackParam value(object)
# S4 method for CallbackParam get_data(object)
A numeric element, vector, matrix, or data.frame
The number of rows in the parameter.
The number of columns in the parameter.
(Optional) A character string representing the name of the parameter.
A character string indicating the sign of the parameter. Must be "ZERO", "POSITIVE", "NEGATIVE", or "UNKNOWN".
A '>CallbackParam object.
get_data: Returns list(callback, rows, cols, name, sign string).
get_data
list(callback, rows, cols, name, sign string)
callback
A numeric element, vector, matrix, or data.frame.
# NOT RUN { x <- Variable(2) dim <- size(x) y <- CallbackParam(value(x), dim[1], dim[2], sign = "POSITIVE") get_data(y) # }
Run the code above in your browser using DataLab