Re: [eigen] Matrix decompositions

[ Thread Index | Date Index | More Archives ]


On Thu, Feb 28, 2013 at 8:28 PM, Sameer Agarwal
<sameeragarwal@xxxxxxxxxx> wrote:
> 1. What if any impact does the row/column major storage have on the various
> matrix decomposition algorithms in Eigen? I imagine, that QR factorization
> for example will do better if the storage is column major.

For Cholesky and LU, the storage order should not matter much, for QR,
a column major storage is clearly preferable.

> 2. Are the matrix decomposition algorithms affected by the alignment of the
> underlying storage, or more generally, do the matrix decompositions use SIMD
> vectorization which in turns require alignment of the underlying data?

Yes, the factorizations do exploit SIMD, but no, the alignement does
not matter. This is because such algorithms work on sub matrices which
are not aligned even if the (0,0) coeff is.


> In this case I did do some benchmarking, where I used an eigen Matrix and a
> block of memory allocated using new and wrapped inside a Map object, and
> performed cholesky factorization on numerically identical (row major
> matrices) and did not notice any difference. Thus the curiosity. It is
> entirely possible that my benchmark is broken.
> Thanks,
> Sameer

Mail converted by MHonArc 2.6.19+