$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] linear algebra library... again
From: DE (satan66613_at_[hidden])
Date: 2010-02-04 13:09:33
on 04.02.2010 at 20:46
joel falcou wrote :
> DE wrote:
>> forgot to answer: it throws an exception
> triggering a static assert makes more sense as the type of matrix is
> known at CT
if you meant that we try to assign to a symmetric matrix a matrix that
is not symmetric as in the example
m = m1*m2; //m is symmetric
then the code does not compile
to force the assignment we can write
m = reshape<symmetric>(m1*m2);
or
m = reshape<symmetric, lower_tr>(m1*m2);
to get mirrored lower triangular part
-- Pavel