Description Usage Arguments Examples
Sets the value of a slice in a number
1 2 | ## S3 replacement method for class 'modello_number'
x[..., dx = FALSE] <- value
|
x |
|
... |
indexes defining the slice |
dx |
if TRUE the slice is taken from the gradient |
value |
value to set |
1 2 3 4 5 6 7 8 | modello.init(10, 10, 10, 10)
x = number(matrix(rnorm(9), 3, 3))
print(x$v)
x[1,1] = -100
print(x$v)
x[1:2,1:2] = 100
print(x$v)
modello.close()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.