float (version 0.2-3)

solve: solve

Description

Solve a system of equations or invert a float matrix.

Usage

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

Arguments

a, b

A float vector/matrix.

...

Ignored.

Value

A float matrix if inverting. If solving a system, a float vector if given one "right hand side", and a float matrix otherwise (just like R).

Examples

Run this code
# NOT RUN {
library(float)

s = flrunif(10, 3)
cp = crossprod(s)
solve(cp)

y = fl(1:3)
solve(cp, y)

# }

Run the code above in your browser using DataLab