Learn R Programming

cgraph (version 3.0.1)

reshape_grad_dim: Reshape Array Dimensions Gradient

Description

Calculate the gradient of array(x) with respect to dim.

Arguments

x

numeric vector or array, value of x.

dim

numeric scalar or vector, value of dim.

val

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

grad

numeric vector or array, gradient of dim.

Value

numeric vector or array, gradient of the operation.