[eigen] Sparse -- Diagonal product |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] Sparse -- Diagonal product
- From: Justin Carlson <justinca@xxxxxxxxxx>
- Date: Wed, 20 May 2009 14:50:51 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=z435bFBzFWnlIrvVE4tHiTm0zXYx4DDDhAD9HjzEG/U=; b=FEgWYt6Z5oSFq5aB8rsN1LeaDLQRNlOAPuEDW8CkGEJ00vH16av+zg7nvqhtQsGzM2 /y/Ya3x6zGDukBZjDIUGniqKvk603MqvzQmafKxfiXwaV4RDvFebMPDF4iVq+HPqAPxv WwrjWauHiSUh3T0LZSZAw0jaGThiBSjGpvvN8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; b=YAox9OJr7NE/vHC56MAQbKMwv5I0ukxEdP8oAznfjyYCW9cN9PZCHi78HQRGmNA7+e lkuQ4DHSFX1YKXmFsoIRoNMnUdKc9TMleUvA0R2dVmvZa3SzlVm/bVd/1OO2VLFbs4Xb kwFEGvl6RaXbXTPx7sDBUBkhJdJUwFHcCci5A=
I was a bit surprised today to figure out that Eigen current evaluates
the product of a diagonal matrix with a sparse matrix as a dense
matrix.
Is this intentional? Changing the result to be sparse (which seems
sane to me, particularly given my current usage of the library) seems
like the right thing to do, but it would represent an API change.
Is there a design rationale for this, or is it just that no
appropriate specializations have been implemented yet for this case?
If there aren't objections to changing the behavior, I'll see about
submitting a patch.
Thanks,
-J