cg_matrix: Matrices

Description Usage Arguments Value Note Author(s) See Also

View source: R/array.R

Description

Create a matrix.

Usage

1
2
3
4
5
6
7
8
cg_matrix(
  data = NA,
  nrow = 1,
  ncol = 1,
  byrow = FALSE,
  dimnames = NULL,
  name = NULL
)

Arguments

data

either a cg_node object or a numerical vector.

nrow

either a cg_node object or a numerical scalar.

ncol

either a cg_node object or a numerical scalar.

byrow

either a cg_node object or a logical scalar.

dimnames

either a cg_node object or a character vector.

name

character scalar, name of the operation (optional).

Value

cg_operator object.

Note

This is a non-differentiable operator.

Author(s)

Ron Triepels

See Also

matrix


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