Boost logo

Boost :

From: Joerg Walter (jhr.walter_at_[hidden])
Date: 2002-05-02 14:41:46


----- Original Message -----
From: "Toon Knapen" <toon.knapen_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Thursday, May 02, 2002 10:56 AM
Subject: [boost] ublas: matrix< real > - matrix< complex >

> I get a compilation error when trying to do a substraction of a complex
> matrix on a double matrix. I can of course do
>
> matrix< double > rm;
> matrix< std::complex< double > > cm;
> matrix< std::complex< double > > result = matrix< complex >( rm ) - cm ;

I can confirm, that this is a bug in ublas: the necessary specializations of
promote_traits aren't defined at least. Adding these to traits.h I've a
working fix for MSVC already, but I'll need to take a closer look at GCC.

> but I guess I'm loosing efficienty here creating the temporary complex
matrix
> out of rm ?

Sorry for the inconvenience

Joerg


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk