Re: [Mplapack-devel] Operator<< for MPFR complex
Status: Pre-Alpha
Brought to you by:
nakatamaho
|
From: Maho N. <ch...@ma...> - 2011-04-07 00:25:27
|
Hi Fletcher,
Many thanks for your feedback.
Do you need a commit right of mpack project?
thanks,
Nakata Maho
From: "Fletcher, John P" <j.p...@as...>
Subject: Operator<< for MPFR complex
Date: Wed, 06 Apr 2011 16:05:40 +0100
> Nakata Maho
>
> The operator<< for mpcomplex is modeled on the one for mpreal.
Opps, that's right :-)
> std::ostream& operator<<(std::ostream& os, const mpcomplex& v)
> {
> return os << " ( " << v.real() << " " << v.imag() << " ) ";
> }
>
> I have attached modified versions of the files mpcomplex.h and mpcomplex.cpp. It provides for output as in the example in trial_mpcomplex.cpp which also documents what I was saying about the libraries.
>
> Best wishes
>
> John Fletcher
>
> Dr John P. Fletcher Tel: (44) 121 204 3389 (direct line), FAX: (44) 121 204 3678
> Chemical Engineering and Applied Chemistry (CEAC),
> Associate Dean - External Relations,
> School of Engineering and Applied Science (EAS),
> Aston University, Aston Triangle, BIRMINGHAM B4 7ET U.K.
>
>
|