[eigen] Re: special matrix classes: template parameters |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: [eigen] Re: special matrix classes: template parameters
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Sat, 14 Nov 2009 10:45:42 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=R9PL8EZOjaC3sEqg8B1hyIOAVIo8CX/hvZJLY9jGev8=; b=G0kcCL6Yef7LAAXm3C6uWb0oJd6xC21v5keshrddf6RSYTC6fAztZaeC6oPjUrgJnv 7cpGuFUiTmCTMMZxDpCPWQJHbQl9han+keV3erMZbwLbMauvNyCPF5rEcATiI5qNOqGd 3rvH99wzZvmxe9xxCjEzTh1yPNXoLAc7Em8G4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=G5wgD2MXZ+mwQGEDmHj1ainUTzjS3yoL9QyND6FJVVyqhHxaUBWoUuTX/rYUgLJE8j QmNBQDcRINcIR2m4ahOH+o9s9v7VeIwpRorf8XlGKEtOLAp2izB5oK3+0VDZt5ll9Qgu 9/bCMgfFv1nAp5iDiL7VsAAPO0zwmKiTxBh4w=
(and the same applies to DiagonalMatrix, of course, and to
PermutationMatrix that i am coding at the moment)
2009/11/14 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>:
> Hi,
>
> Currently the BandMatrix class takes Scalar, Rows,Cols template
> parametes that could be replaced by a single parameter DenseMatrixType
> representing the return value of toDense(). Not only this would allow
> to simplify the template parameters considerably, this would also be
> more future proof (it could read more data from the DenseMatrixType),
> and would allow to benefit from the MaxRowsAtCompileTime notion (for
> dynamic-size-inside-fixed-size-storage --- that is required to ensure
> "no malloc with fixed-size objects" in complicated use cases).
>
> So OK to let it take a DenseMatrixType template parameter instead? And
> in the Options, the RowMajor stuff would also move there, so that's a
> further simplification.
>
> Benoit
>