backsolve: backsolve

backsolveR Documentation

backsolve

Description

Solve a triangular system.

Usage

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

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

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

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

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

## S4 method for signature '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

library(float)

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


float documentation built on May 29, 2024, 8:13 a.m.