# NOT RUN {
modello.init(10, 10, 10, 10)
## For modello_numbers sclars
x1 = number(rnorm(1), scalar=TRUE)
y1 = swish(x1)
print(y1)
print(y1$v)
## For modello_number arrays
x2 = number(matrix(rnorm(9), 3, 3))
y2 = swish(x2)
print(y2)
print(y2$v)
modello.close()
## For numeric sclars
x1 = rnorm(1)
y1 = swish(x1)
print(y1)
## For numeric arrays
x2 = matrix(rnorm(9), 3, 3)
y2 = swish(x2)
print(y2)
# }
Run the code above in your browser using DataLab