backsolve | R Documentation |
Solve a triangular system.
## 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)
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 |
library(float)
s = flrunif(10, 3)
cp = crossprod(s)
y = fl(1:3)
backsolve(cp, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.