Inv {lazy.symbolic}R Documentation

Matrix Inversion

Description

Japanese help file: Inv_JPH

Usage

Inv(A, loc = 1:nrow(A), method = "Sweep", ...)

Arguments

A

A square matrix

loc

vector of pivot locations

method

"Sweep" or "GE"

...

options to matSwp or invGE

Details

Matrix Inversion by Sweep or Gaussian Elimination

If A is a numeric matrix, matSwp function in lazy.mat package will be used with the following parameters:
A, loc, eps, nopermute, chkginv, history, debug.

If A is a semi symbolic character matrix, matSweep function or invGE function in lazy.symbolic package will be used with the following parameters
A, loc, simplify, debug.

If A is a semi symbolic character matrix, if method="Sweep", matSweep will be used. (Sweep Operator) if method="Ge", invGE will be used. (Gaussian Elimination)

Examples

# numeric A
An=demomat(2,2)
Inv(An)

# character A
A=demomat(2,2, root="a")
Inv(A)

# # by Gaussian Elimination
# Inv(A, method="GE" )

# character A as a partitioned matrix
Ap=demomat(2,2, root="A", fullsymb=1)
Inv(Ap)


[Package lazy.symbolic version 1.0.0.20250830 ]