Re: [eigen] Assignment to MatrixBase fails assertion or SEGVs |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Assignment to MatrixBase fails assertion or SEGVs
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Sat, 31 Oct 2009 11:09:23 -0400
- 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=rlnGTkS6bEgw5voqBGaYLVb60xVIYabpcj6IUYaFvcs=; b=CNlMpjD/HYeR7orLp0DfF2BKkI8RObP22Td/Dh2kL+vAWB5trA1YJjN7Pw4oxvGrgu 7n7QDEmZEQ8+TwUjxLkg911RD/EzzlSCi34SdAruIypYOUvWJiR8KRMrvS+g0/nmNdpX AYQZpz+oZXkR0Z6fXQHgRi7ANdrpdoP2ccY98=
- 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=sYlo/nUxkQX64nOb+vCr6BAMUHlxNEzsOaoE3b0RzjWZZOvyUQNX81MyMvDORpby/6 FEc/adzw4EKzxXlI6lyCNPfW2SGtB9vLPSSeGsBFnMu8mMO5aVcd6JGZfBjkqbvjKY7n eC7Mz+fbez+4LpmPxw3fdhJ7nXFPmzzpOjZ8k=
Ah protected, yes!
Armin proposed yesterday on IRC "is there a constructor one could make
private/protected?" and I read only private and I said that would be
cumbersome --- but protected, yes, that's a great idea!
Benoit
2009/10/31 mmoll <Markus.Moll@xxxxxxxxxxxxxxxx>:
> Hi
>
> Quoting Benoit Jacob <jacob.benoit.1@xxxxxxxxx>:
>
>> Conclusion: never create explicitly a MatrixBase object, only create
>> Matrix objects and then cast them to MatrixBase as needed.
>
> Wouldn't it then be a good idea to make MatrixBase's constructor protected?
>
> Markus
>
>
>
>