<div dir="ltr">My apologies,but my use of "low-cost" was ambiguous.<div><br></div><div>I meant the cost of having it available - installation, size of the package, extra packages brought in, etc. I don't the rank calculation to be fast, or even cheap to compute, as it's not used very often, and not for very large matrices. I'd rather not have the size of the software multiplied by integers in order to get that one function.</div><div><br></div><div>hmatrix is highly optimized for performance and parallelization, built on top of a large C libraries with lots of functionality. Nice to have if you're doing any serious work with matrices, but massive overkill for what I need.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 24, 2015 at 3:13 AM, Alberto Ruiz <span dir="ltr"><<a href="mailto:aruiz@um.es" target="_blank">aruiz@um.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mike,<br>
<br>
If you need a robust numerical computation you can try "rcond" or "rank" from hmatrix. (It is based on the singular values, I don't know if the cost is low enough for your application.)<br>
<br>
<a href="http://en.wikipedia.org/wiki/Rank_%28linear_algebra%29#Computation" target="_blank">http://en.wikipedia.org/wiki/Rank_%28linear_algebra%29#Computation</a><br>
<br>
<a href="https://hackage.haskell.org/package/hmatrix-0.16.1.5/docs/Numeric-LinearAlgebra-HMatrix.html#g:10" target="_blank">https://hackage.haskell.org/package/hmatrix-0.16.1.5/docs/Numeric-LinearAlgebra-HMatrix.html#g:10</a><br>
<br>
Alberto<br>
<br>
On 24/04/15 00:34, Mike Meyer wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Noticing that diagrams 1.3 has moved from vector-space to linear, I<br>
decided to check them both for a function to compute the rank of a<br>
matrix. Neither seems to have it.<br>
<br>
While I'm doing quite a bit of work with 2 and 3-element vectors, the<br>
only thing I do with matrices is take their rank, as part of verifying<br>
that the faces of a polyhedron actually make a polyhedron.<br>
<br>
So I'm looking for a relatively light-weight way of doing so that will<br>
work with a recent (7.8 or 7.10) ghc release. Or maybe getting such a<br>
function added to an existing library. Anyone have any suggestions?<br>
<br>
Thanks,<br>
Mike<br>
</blockquote>
</blockquote></div><br></div>