float (version 0.2-4)

backsolve: backsolve

Description

Solve a triangular system.

Usage

# S4 method for float32,float32
backsolve(r, x, k = ncol(r), upper.tri = TRUE, transpose = FALSE)

# S4 method for float32,BaseLinAlg backsolve(r, x, k = ncol(r), upper.tri = TRUE, transpose = FALSE)

# S4 method for BaseLinAlg,float32 backsolve(r, x, k = ncol(r), upper.tri = TRUE, transpose = FALSE)

# S4 method for float32,float32 forwardsolve(l, x, k = ncol(l), upper.tri = FALSE, transpose = FALSE)

# S4 method for float32,BaseLinAlg forwardsolve(l, x, k = ncol(l), upper.tri = FALSE, transpose = FALSE)

# S4 method for BaseLinAlg,float32 forwardsolve(l, x, k = ncol(l), upper.tri = FALSE, transpose = FALSE)

Arguments

r, l

A triangular coefficients matrix.

x

The right hand sides.

k

The number of equations (columns of r + rows of x) to use.

upper.tri

Should the upper triangle be used? (if not the lower is)

transpose

Should the transposed coefficients matrix be used? More efficient than manually transposing with t().

Examples

Run this code
# NOT RUN {
library(float)

s = flrunif(10, 3)
cp = crossprod(s)
y = fl(1:3)
backsolve(cp, y)

# }

Run the code above in your browser using DataCamp Workspace