dim.modello_number: Get Number Shape

Description Usage Arguments Value Author(s) Examples

Description

S3 method to get the shape of a number

Usage

1
2
## S3 method for class 'modello_number'
dim(x)

Arguments

x

a reference object of class 'number'

Value

Returns the shape vector of the number

Author(s)

Filippo Monari

Examples

1
2
3
4
modello.init(10, 10, 10, 10)
x = number(matrix(rnorm(9), 3, 3))
dim(x) # c(3, 3)
modello.close()

modello documentation built on Feb. 2, 2021, 9:06 a.m.