The positive-definite matrix represented by a is inverted and assigned to a.

# S3 method for class 'pdMat'
solve(a, b, ...)

Arguments

a

an object inheriting from class "pdMat", representing a positive definite matrix.

b

this argument is only included for consistency with the generic function and is not used in this method function.

...

some methods for this generic require additional arguments. None are used in this method.

Value

a pdMat object similar to a, but with coefficients corresponding to the inverse of the positive-definite matrix represented by a.

Author

José Pinheiro and Douglas Bates bates@stat.wisc.edu

See also

Examples

pd1 <- pdCompSymm(3 * diag(3) + 1)
solve(pd1)
#> Positive definite matrix structure of class pdCompSymm representing
#>             [,1]        [,2]        [,3]
#> [1,]  0.27777778 -0.05555556 -0.05555556
#> [2,] -0.05555556  0.27777778 -0.05555556
#> [3,] -0.05555556 -0.05555556  0.27777778