Re: [eigen] Predefined SymmetircMatirx, BandedMatrix and PositiveDefiniteMatrix in Eigen |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Predefined SymmetircMatirx, BandedMatrix and PositiveDefiniteMatrix in Eigen
- From: Douglas Bates <bates@xxxxxxxxxxxxx>
- Date: Wed, 20 Jul 2011 09:15:49 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=onnPNCc0FbGC+e/DqJGwfjZaeTZjjrQ9icWnnKWwvPc=; b=Im9uTpG6VqEp2V7HVK3s7taBXpjpvMWtog3ZJAvrA7AbS2UbK3RonMbb6mStRxqWWT MkroWZokKXA8NAaSEK7xnkWz/s2O9ResntSkhkcmrGW1V8ohA8uvbF+LcfZeVA/YF1h0 VadoouLWjpP9fgpptcBOU8mecHOT3YEK8gKRQ=
On Wed, Jul 20, 2011 at 8:08 AM, Hongyu Miao <jackymiao@xxxxxxxxx> wrote:
> Hi, All
>
> I’m wondering why there are not predefined data types for
> SymmetircMatirx, BandedMatrix and PositiveDefiniteMatrix in Eigen. These are
> important in computing and boost::ublas has all such things except for
> PositiveDefiniteMatrix.
But there is a SelfAdjointView class and a .selfadjointView() method
for symmetric matrix manipulations. Similarly TriangularView and
..triangularView() for triangular matrix manipulations. ublas uses
packed storage for symmetric and triangular matrices, if I recall
correctly, but Eigen uses the same underlying representation (full
dense or sparse matrices) with additional properties and access
methods. There are advantages and disadvantages to either approach.
It may be confusing that the term "self-adjoint" is used instead of
"symmetric" but for complex matrices there is a distinction between
symmetric and Hermitian so self-adjoint is a more precise term.