Learn R Programming

salad (version 1.2)

inversion: Determinant and matrix inversion for dual matrices

Description

Methods extending to dual matrices the corresponding methods for numeric matrices.

Usage

det.dual(x, ...)

# S4 method for dual det(x, ...)

# S3 method for dual determinant(x, logarithm = TRUE, ...)

# S4 method for dual,dual solve(a, b, ...)

# S4 method for dual,missing solve(a, b, ...)

# S4 method for numericOrArray,dual solve(a, b, ...)

# S4 method for dual,numericOrArray solve(a, b, ...)

Value

'det' returns a dual scalar, 'determinant' a list with components 'modulus' (which is a dual object) and 'sign', and 'solve' returns a dual object (vector or matrix).

Arguments

x

a dual matrix

...

extra parameters (ignored)

logarithm

if 'TRUE', get logarithm of modulus of determinant

a, b

dual or numerical arguments for `solve`

Examples

Run this code
x <- dual( matrix(c(1,2,1,3), 2, 2) )
det(x)
d(det(x), "x1.1")
solve(x)
d(solve(x), "x1.1")

Run the code above in your browser using DataLab