Learn R Programming

MCMCglmm (version 1.06)

Dtensor: Tensor of (mixed) partial derivatives

Description

Forms tensor of (mixed) partial derivatives

Usage

Dtensor(expr, name=NULL, mu = NULL, m=1, evaluate = TRUE)

Arguments

expr
'expression'
name
character vector, giving the variable names with respect to which derivatives will be computed. If NULL all variables in the expression will be used
mu
optional: numeric vector, at which the derivatives are evaluated
m
order of derivative
evaluate
logical; if TRUE the derivatives are evaluated at mu, if FALSE the derivatives are left unevaluated

Value

  • Dtensor(list) of unevaluated expression(s) if evaluate=FALSE or a tensor if evaluate=TRUE

References

Rice, S.H. (2004) Evolutionary Theory: Mathematical and Conceptual Foundations. Sinauer (MA) USA.

See Also

evalDtensor, Dexpresions, D

Examples

Run this code
f<-expression(beta_1 + time * beta_2 + u)
Dtensor(f,eval=FALSE)

Run the code above in your browser using DataLab