This site is version 0.0.1. Most of the code on this site is drafted by an agent and needs review. I apologize for the AI-speak, we are working on rewriting it!
viv-lang.org

Notebooks · lib/minpack/qrfac

MINPACK's qrfac, QR factorization with column pivoting

A port of qrfac.f from netlib MINPACK (lib/minpack/ref). The explanation is in lib/minpack/qrfac.intent.

Differences from the Fortran, none of which changes an operation: indices count from 0, so ipvt holds 0-based column numbers; a is an m x n array instead of a leading-dimension array; and the column pieces the Fortran hands to enorm as a(j,j) (a pointer into the column) are copied into col first, because Viv has no view of part of a column.

Used with import minpack.qrfac.

Look inside this program

  • Atlas

    The program’s map: every function and which calls which.

  • There’s no recorded run of this program yet.

Shift+Enter in a cell runs it and moves to the next. Running a cell runs every cell above it too, as one program.

[1]lines 17–180