Generic function to extract the numeric data from a differentiable object. For value objects, returns the underlying matrix. For plain numeric inputs, converts to matrix representation.
Assignment function to update the data field of a value object without breaking the computational graph reference.
Usage
get_data(x, ...)
# S3 method for class 'value'
get_data(x, drop = TRUE, ...)
# Default S3 method
get_data(x, ...)
get_data(x) <- value
# S3 method for class 'value'
get_data(x) <- value
# Default S3 method
get_data(x) <- value