Re: convert double to complex

"Mario Ruetti" <[email protected]> Sun, 28 Jan 2007 18:44:30 +0100
Newsgroups gmane.comp.lib.mtl.devel
Message-ID <[email protected]>
Hi Peter,

using 
  mtl::copy(GSM, GSMcomplex);
with
  typedef mtl::matrix< complex<double> , symmetric<lower>, envelope<>, row_major >::type ComplexEnvelopeMatrix;
  typedef mtl::matrix< float_type, symmetric<lower>, envelope<>, row_major >::type EnvelopeMatrix;


I get this message...

../src/mtl/matrix_implementation.h: In member function `void mtl::matrix_impleme
ntation<TwoDGen, IndexerGen>::fast_copy(const Matrix&) [with Matrix = mtl::symme
tric_matrix<mtl::row_matrix<mtl::gen_envelope2D<mtl::float_type, 0, 0>, mtl::gen
_banded_indexer<mtl::row_orien, 0, 0, size_t> >, mtl::lower__>, TwoDGen = mtl::g
en_envelope2D<std::complex<double>, 0, 0>, IndexerGen = mtl::gen_banded_indexer<
mtl::row_orien, 0, 0, size_t>]':
../src/mtl/mtl.h:2619:   instantiated from `void mtl::twod_copy(const MatA&, Mat
B&, mtl::row_tag, mtl::row_tag) [with MatA = mtl::symmetric_matrix<mtl::row_matr
ix<mtl::gen_envelope2D<mtl::float_type, 0, 0>, mtl::gen_banded_indexer<mtl::row_
orien, 0, 0, size_t> >, mtl::lower__>, MatB = mtl::symmetric_matrix<mtl::row_mat
rix<mtl::gen_envelope2D<std::complex<double>, 0, 0>, mtl::gen_banded_indexer<mtl
::row_orien, 0, 0, size_t> >, mtl::lower__>]'
../src/mtl/mtl.h:2647:   instantiated from `void mtl::twod_copy__(const MatA&, M
atB&, mtl::sparse_tag) [with MatA = mtl::symmetric_matrix<mtl::row_matrix<mtl::g
en_envelope2D<mtl::float_type, 0, 0>, mtl::gen_banded_indexer<mtl::row_orien, 0,
 0, size_t> >, mtl::lower__>, MatB = mtl::symmetric_matrix<mtl::row_matrix<mtl::
gen_envelope2D<std::complex<double>, 0, 0>, mtl::gen_banded_indexer<mtl::row_ori
en, 0, 0, size_t> >, mtl::lower__>]'
../src/mtl/mtl.h:2658:   instantiated from `void mtl::copy__(const MatA&, MatB&,
 mtl::twod_tag) [with MatA = mtl::symmetric_matrix<mtl::row_matrix<mtl::gen_enve
lope2D<mtl::float_type, 0, 0>, mtl::gen_banded_indexer<mtl::row_orien, 0, 0, siz
e_t> >, mtl::lower__>, MatB = mtl::symmetric_matrix<mtl::row_matrix<mtl::gen_env
elope2D<std::complex<double>, 0, 0>, mtl::gen_banded_indexer<mtl::row_orien, 0,
0, size_t> >, mtl::lower__>]'
../src/mtl/mtl.h:2681:   instantiated from `void mtl::copy(const LinalgA&, const
 LinalgB&) [with LinalgA = MyStructObject::CalcFreqResponse(unsigned int, bool,
std::vector<double, std::allocator<double> >&)::EnvelopeMatrix, LinalgB = MyStru
ctObject::CalcFreqResponse(unsigned int, bool, std::vector<double, std::allocato
r<double> >&)::ComplexEnvelopeMatrix]'
MyStructObject.cc:773:   instantiated from here
../src/mtl/matrix_implementation.h:464: error: 'class mtl::envelope2D<std::compl
ex<double> >' has no member named 'fast_copy'
make: *** [MyStructObject.o] Error 1
-------- Original-Nachricht --------
Datum: Sun, 28 Jan 2007 11:37:55 -0500
Von: Peter Gottschling <[email protected]>
An: "General Matrix Template Library \\(MTL\\) list" <[email protected]>
Betreff: Re: MTL: convert double to complex

> What is the problem with the copy?  What error do you get?
> 
> Peter
> 
> On 28.01.2007, at 11:27, Mario Ruetti wrote:
> 
> > Hi,
> >
> > I have a small - but hard for me - problem.
> > I get a matrix of this type:
> >   typedef mtl::matrix< float_type, symmetric<lower>, envelope<>, 
> > row_major >::type EnvelopeMatrix;
> >
> > where the float_type is a double. Now I will convert this matrix into 
> > a complex one of type
> >
> >   typedef mtl::matrix< complex<double> , symmetric<lower>, envelope<>, 
> > row_major >::type ComplexEnvelopeMatrix;
> >
> > I tried to use a constructor or copy but nothing will work...
> > Does anyone have a solution?
> >
> > Thanks Mario
> >
> > -- 
> > "Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
> > Jetzt GMX ProMail testen: http://www.gmx.net/de/go/promail
> > _______________________________________________
> > This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/
> >
> ------------
> Peter Gottschling
> Research Associate
> Open Systems Laboratory
> Indiana University
> 135 Lindley Hall
> Bloomington, IN 47405
> Tel.: +1-812-855-3608   Fax: +1-812-856-0853
> http://www.osl.iu.edu/~pgottsch
> 
> _______________________________________________
> This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/

-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/