Re: [eigen] Matrix decompositions |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
> 1. What if any impact does the row/column major storage have on the variousFor Cholesky and LU, the storage order should not matter much, for QR,
> matrix decomposition algorithms in Eigen? I imagine, that QR factorization
> for example will do better if the storage is column major.
a column major storage is clearly preferable.
Yes, the factorizations do exploit SIMD, but no, the alignement does
> 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?
not matter. This is because such algorithms work on sub matrices which
are not aligned even if the (0,0) coeff is.
gael
> 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+ | http://listengine.tuxfamily.org/ |