gen_inverse: Solve Systems Using the Generalized Inverse

Description Usage Arguments Value Examples

View source: R/gen_inverse.R

Description

This function uses the pseudoinverse method to solve systems of equations given in non-square matrices.

Usage

1

Arguments

A

An n x m matrix where n>m

b

An n x 1 vector for which to solve Ax=b

Value

The m x 1 vector x that solve the system, if it exists; otherwise, an error

Examples

1
gen_inverse(matrix(1:6, nrow = 3), 1:3)

ryan-heslin/matador documentation built on Dec. 22, 2021, 8:17 p.m.