Learn R Programming

cgraph (version 3.0.1)

as_double_grad: Coerce to a Numeric Vector Gradient

Description

Calculate the gradient of as.numeric(x) with respect to x.

Arguments

x

numeric vector or array, value of x.

val

numeric vector or array, value of as.numeric(x).

grad

numeric vector or array, gradient of x.

Value

numeric vector or array, gradient of the operation.