ADapply | R Documentation |
These base apply methods have been modified to keep the AD class attribute (which would otherwise be lost).
## S4 method for signature 'advector'
apply(X, MARGIN, FUN, ..., simplify = TRUE)
## S4 method for signature 'ANY'
sapply(X, FUN, ..., simplify = TRUE, USE.NAMES = TRUE)
X |
As apply |
MARGIN |
As apply |
FUN |
As apply |
... |
As apply |
simplify |
As sapply |
USE.NAMES |
As sapply |
Object of class "advector"
with a dimension attribute.
apply(advector)
: As apply
sapply(ANY)
: As sapply
F <- MakeTape(function(x) apply(matrix(x,2,2), 2, sum), numeric(4))
F$jacobian(1:4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.