# Dtensor

From MCMCglmm v2.29
by Jarrod Hadfield

##### Tensor of (mixed) partial derivatives

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

(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

##### Examples

```
# NOT RUN {
f<-expression(beta_1 + time * beta_2 + u)
Dtensor(f,eval=FALSE)
# }
```

*Documentation reproduced from package MCMCglmm, version 2.29, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.