cg_linear1: Linear Transformation

Description Usage Arguments Value Note Author(s)

View source: R/array.R

Description

Calculate x1 %*% y1 + c(z).

Usage

1
cg_linear1(x1, y1, z = NULL, name = NULL)

Arguments

x1

either a cg_node object or a numerical matrix.

y1

either a cg_node object or a numerical matrix.

z

either a cg_node object or a numerical vector (optional).

name

character scalar, name of the operation (optional).

Value

cg_operator object.

Note

This function is equivalent to cg_matmul(x1, y1) + cg_as_numeric(z) but shorter and more efficient.

Author(s)

Ron Triepels


triepels/cgraph documentation built on April 24, 2020, 12:58 a.m.