Description Usage Arguments Value Author(s) Examples
Sum function
1 2 |
x |
a reference object of class 'number' |
k |
integer, dimension along wihich do the reduction. Currently constrained to be <= 2 |
... |
numerics to sum. Ignored for |
Returns a 'numeric' or reference object of class 'number'
Filippo Monari
1 2 3 4 5 6 | modello.init(10, 10, 10, 10)
x = number(rep(1, 20))
y = sum(x)
print(y)
print(y$v)
modello.close()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.