Learn R Programming

fda (version 6.1.4)

symsolve: solve(A, B) where A is symmetric

Description

Solve A X = B for X where A is symmetric

Usage

symsolve(Asym, Bmat)

Value

A square matrix of the same dimenions as Asym and Bmat

Arguments

Asym

a symmetric matrix

Bmat

a square matrix of dimensions matching Asym

See Also

Examples

Run this code
A <- matrix(c(2,1,1,2), 2)
Ainv <- symsolve(A, diag(2))

Run the code above in your browser using DataLab