cg_linear {cgraph} | R Documentation |
Calculate x %*% y + c(z)
.
cg_linear(x, y, z, name = NULL)
x |
either a cg_node object or a numeric matrix. |
y |
either a cg_node object or a numeric matrix. |
z |
either a cg_node object or a numeric vector. |
name |
character scalar, name of the operation (optional). |
cg_operator object, node of the operation.
This function is equivalent to cg_matmul(x, y) + cg_as_numeric(z)
.
Ron Triepels