Skip to contents

Constructs a Shape representing tensor dimensions.

Usage

Shape(dims = integer())

Arguments

dims

An integer() vector of dimension sizes (>= 0).

Value

A Shape object.

Examples

Shape(c(2L, 3L))
#> (2x3)