Pivoting in sparse QR

Just from a glance at the source files, this code seems to run just fine:

using SparseArrays, SuiteSparse
sample_sparse = sprandn(100,50,0.01)
fixed_ordering_qr = qr(sample_sparse, ordering=SuiteSparse.SPQR.ORDERING_FIXED)

Is this what you’re looking for?

Maybe I’m missing what you mean by “masked off”, but I would guess that when you were reading that source file you just missed that this is all wrapped in the SuiteSparse.SPQR module, and so ORDERING_FIXED wasn’t in the namespace you expected?

1 Like