Jump to content

QR decomposition: Difference between revisions

m
Minor edits
(Simplify code; add pivots)
m (Minor edits)
Line 204:
 
=={{header|Axiom}}==
{{trans|Common Lisp}}
The following provides a generic QR decomposition for arbitrary precision floats, double floats and exact calculations:
<lang Axiom>)abbrev package TESTP TestPackage
Line 290 ⟶ 289:
[1,2,3]
Type: Vector(AlgebraicNumber)</lang>
The calculations are comparable to those from the QR decomposition in R, which by default uses LINPACK. R's LAPACK implementation uses column pivoting. ThisPivots can be implemented using:
<lang Axiom>)abbrev package TESTP2 TestPackage2
TestPackage2(R:Join(Field,RadicalCategory)): with
136

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.