Re: [eigen] slow adjoint sparse dense product |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] slow adjoint sparse dense product
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Fri, 11 Nov 2011 05:38:23 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=n7Q7JDstzotPIZJLkWrKdf+Vnv4HabDkSmemzJ52jn8=; b=Owr7Yh4Xfjhr76O34WxpedauO/R33m0TOSNig06T2hcD2jsr8Kxxp6WoCxXcDE+pp0 k6ADwAST+35WwMqA48SzO7TniVIKm6O+p1gxB6ysOMz7cclhBOQOePeGvqZ7gopoW9Jw 4XDXcRFTxfBoskN3O8tMdkCqSKGAuwcQRpJx8=
OK, it seems that this issue does not always occur and hardly depends
on the compiler version and whether you use complexes or simply
doubles... So sure this have to be fixed. These products will also be
parallelized. Of course if your solver is already parallel then you
don't care!
gael.
On Thu, Nov 10, 2011 at 1:21 PM, Sebastian Birk
<birk@xxxxxxxxxxxxxxxxxxxxx> wrote:
> Hi,
>
> I am working on iterative solvers for large sparse matrices and I am
> thinking about switching from uBLAS to Eigen. But the one thing that
> keeps me from changing the library is that the product of the adjoint of
> a sparse matrix with a vector is about half the speed of multiplying
> directly with the non-adjoint matrix. I attached a small simple test
> file that measures the time for an example matrix.
>
> I figured out that for the product y=Ax in class SparseTimeDenseProduct
> the case "if(Rhs::ColsAtCompileTime==1)" is chosen and the computation
> is quite fast.
> But for y=A^{H}x there is no optimized case that can be chosen. Is there
> a way to speed up the multiplication with an adjoint sparse matrix?
>
> Sebastian
>