* Re: valarray
@ 1999-04-23 14:05 Jason Molenda
1999-04-30 23:15 ` valarray Jason Molenda
0 siblings, 1 reply; 12+ messages in thread
From: Jason Molenda @ 1999-04-23 14:05 UTC (permalink / raw)
To: egcs, egcs-bugs
Gabriel Dos Reis' mail system is having a little trouble contacting egcs,
he asked me to forward this note on for him.
----- Forwarded message -----
To: bkoz@nabi.net
Cc: Gabriel.Dos-Reis@cmla.ens-cachan.fr, egcs@egcs.cygnus.com,
egcs-bugs@egcs.cygnus.com
Subject: Re: valarray
References: <371ACD62.68C7A607@nabi.net>
From: Gabriel Dos Reis <Gabriel.Dos-Reis@cmla.ens-cachan.fr>
In-Reply-To: benjamin kosnik's message of "Mon, 19 Apr 1999 06:29:54 +0000"
benjamin kosnik <bkoz@nabi.net> writes:
| Hey Gaby, this is for when you get back so don't worry.
|
| I've been working on trying to run the testsuite with -02, etc and making
| sure all the required instantiations are there, etc.
|
| I get a bunch of warnings for valarray:
|
| lArray,_Constant,_Tp,_Tp>::_Tp' from dependent base class
| ../bits/valarray_meta.h:487: warning: (use `typename _BinClos::_Tp' if
| that's what you meant)
| ../bits/valarray_meta.h:487: warning: lookup of `_Tp' finds `class _Tp'
| ../bits/valarray_meta.h:487: warning: instead of `typename
| _BinClos<_Oper,_ValArray,_Constant,_Tp,_Tp>::_Tp' from dependent base class
| ../bits/valarray_meta.h:487: warning: (use `typename _BinClos::_Tp' if
| that's what you meant)
| ../bits/valarray_meta.h:494: warning: lookup of `_Tp' finds `class _Tp'
| ../bits/valarray_meta.h:494: warning: instead of `typename
| _BinClos<_Oper,_Constant,_ValArray,_Tp,_Tp>::_Tp' from dependent base class
| ../bits/valarray_meta.h:494: warning: (use `typename _BinClos::_Tp' if
| that's what you meant)
| ../bits/valarray_meta.h:497: warning: lookup of `_Tp' finds `class _Tp'
| ../bits/valarray_meta.h:497: warning: instead of `typename
| _BinClos<_Oper,_Constant,_ValArray,_Tp,_Tp>::_Tp' from dependent base class
| ../bits/valarray_meta.h:497: warning: (use `typename _BinClos::_Tp' if
| that's what you meant)
| ../bits/valarray_meta.h:497: warning: lookup of `_Tp' finds `class _Tp'
| ../bits/valarray_meta.h:497: warning: instead of `typename
| _BinClos<_Oper,_Constant,_ValArray,_Tp,_Tp>::_Tp' from dependent base class
| ../bits/valarray_meta.h:497: warning: (use `typename _BinClos::_Tp' if
| that's what you meant)
|
|
| etc etc etc--you might want to check into this when you get a chance.
Hi Benjamin!
The problem is in the C++ front end, and the error message is
bogus [cf. 14.6.1/3]: _Tp is a template parameter as you can see from
libstdc++/bits/valarray_meta.h:
// --line 480
template<template<class> class _Oper, typename _Tp>
struct _BinClos<_Oper,_ValArray,_Constant,_Tp,_Tp>
: _BinBase2<_Oper,valarray<_Tp> > {
typedef _BinBase2<_Oper,valarray<_Tp> > _Base;
typedef typename _Base::value_type value_type;
_BinClos (const valarray<_Tp>& __v, const _Tp& __t) // <===
: _Base (__v, __t) {}
};
// --line 490
That compiler bug should be fixed before egcs-1.2 gets out. IIRC it
wasn't present in egcs-2.93.15
| Also, I noticed that TNT, from the link on the main web page, uses both
| stringstreams and valarray, so I may try to get it up and running as part
| of the testing framework. I'll let you know how it goes.
Sounds great.
-- Gaby
----- End forwarded message -----
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: valarray
1999-04-23 14:05 valarray Jason Molenda
@ 1999-04-30 23:15 ` Jason Molenda
0 siblings, 0 replies; 12+ messages in thread
From: Jason Molenda @ 1999-04-30 23:15 UTC (permalink / raw)
To: egcs, egcs-bugs
Gabriel Dos Reis' mail system is having a little trouble contacting egcs,
he asked me to forward this note on for him.
----- Forwarded message -----
To: bkoz@nabi.net
Cc: Gabriel.Dos-Reis@cmla.ens-cachan.fr, egcs@egcs.cygnus.com,
egcs-bugs@egcs.cygnus.com
Subject: Re: valarray
References: <371ACD62.68C7A607@nabi.net>
From: Gabriel Dos Reis <Gabriel.Dos-Reis@cmla.ens-cachan.fr>
In-Reply-To: benjamin kosnik's message of "Mon, 19 Apr 1999 06:29:54 +0000"
benjamin kosnik <bkoz@nabi.net> writes:
| Hey Gaby, this is for when you get back so don't worry.
|
| I've been working on trying to run the testsuite with -02, etc and making
| sure all the required instantiations are there, etc.
|
| I get a bunch of warnings for valarray:
|
| lArray,_Constant,_Tp,_Tp>::_Tp' from dependent base class
| ../bits/valarray_meta.h:487: warning: (use `typename _BinClos::_Tp' if
| that's what you meant)
| ../bits/valarray_meta.h:487: warning: lookup of `_Tp' finds `class _Tp'
| ../bits/valarray_meta.h:487: warning: instead of `typename
| _BinClos<_Oper,_ValArray,_Constant,_Tp,_Tp>::_Tp' from dependent base class
| ../bits/valarray_meta.h:487: warning: (use `typename _BinClos::_Tp' if
| that's what you meant)
| ../bits/valarray_meta.h:494: warning: lookup of `_Tp' finds `class _Tp'
| ../bits/valarray_meta.h:494: warning: instead of `typename
| _BinClos<_Oper,_Constant,_ValArray,_Tp,_Tp>::_Tp' from dependent base class
| ../bits/valarray_meta.h:494: warning: (use `typename _BinClos::_Tp' if
| that's what you meant)
| ../bits/valarray_meta.h:497: warning: lookup of `_Tp' finds `class _Tp'
| ../bits/valarray_meta.h:497: warning: instead of `typename
| _BinClos<_Oper,_Constant,_ValArray,_Tp,_Tp>::_Tp' from dependent base class
| ../bits/valarray_meta.h:497: warning: (use `typename _BinClos::_Tp' if
| that's what you meant)
| ../bits/valarray_meta.h:497: warning: lookup of `_Tp' finds `class _Tp'
| ../bits/valarray_meta.h:497: warning: instead of `typename
| _BinClos<_Oper,_Constant,_ValArray,_Tp,_Tp>::_Tp' from dependent base class
| ../bits/valarray_meta.h:497: warning: (use `typename _BinClos::_Tp' if
| that's what you meant)
|
|
| etc etc etc--you might want to check into this when you get a chance.
Hi Benjamin!
The problem is in the C++ front end, and the error message is
bogus [cf. 14.6.1/3]: _Tp is a template parameter as you can see from
libstdc++/bits/valarray_meta.h:
// --line 480
template<template<class> class _Oper, typename _Tp>
struct _BinClos<_Oper,_ValArray,_Constant,_Tp,_Tp>
: _BinBase2<_Oper,valarray<_Tp> > {
typedef _BinBase2<_Oper,valarray<_Tp> > _Base;
typedef typename _Base::value_type value_type;
_BinClos (const valarray<_Tp>& __v, const _Tp& __t) // <===
: _Base (__v, __t) {}
};
// --line 490
That compiler bug should be fixed before egcs-1.2 gets out. IIRC it
wasn't present in egcs-2.93.15
| Also, I noticed that TNT, from the link on the main web page, uses both
| stringstreams and valarray, so I may try to get it up and running as part
| of the testing framework. I'll let you know how it goes.
Sounds great.
-- Gaby
----- End forwarded message -----
^ permalink raw reply [flat|nested] 12+ messages in thread
* valarray
@ 1998-11-08 6:43 Tobias Naehring
1998-11-09 7:21 ` valarray Gabriel Dos Reis
0 siblings, 1 reply; 12+ messages in thread
From: Tobias Naehring @ 1998-11-08 6:43 UTC (permalink / raw)
To: egcs
When will ***valarray*** become part of egcs???
Best regards,
Tobias N"ahring
^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <199805081913.MAA19580.cygnus.egcs@kankakee.wrs.com>]
* Re: valarray
[not found] <199805081913.MAA19580.cygnus.egcs@kankakee.wrs.com>
@ 1998-05-08 16:04 ` Ulrich Drepper
0 siblings, 0 replies; 12+ messages in thread
From: Ulrich Drepper @ 1998-05-08 16:04 UTC (permalink / raw)
To: egcs
mrs@wrs.com (Mike Stump) writes:
> It is a sad state of affairs when people donate code, and we still
> have nothing. Is there a reason why we don't have the newer classes
> yet? I think we have talked about it before, but I don't now recall
> what reason there may have been to not put it in.
It will be in the rewrite we'll have ready for the public sometime
very soon. After this, I'll step back and let everybody else write
new code and patches and will concentrate incorporating the patch and
on keeping things in good shape and compilable.
-- Uli
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: valarray
@ 1998-05-08 12:13 Mike Stump
0 siblings, 0 replies; 12+ messages in thread
From: Mike Stump @ 1998-05-08 12:13 UTC (permalink / raw)
To: Gabriel.Dos-Reis; +Cc: egcs
> Date: Thu, 7 May 1998 03:12:00 +0200 (MET DST)
> Cc: egcs mailing list <egcs@cygnus.com>
> From: Gabriel Dos Reis <Gabriel.Dos-Reis@dptmaths.ens-cachan.fr>
> Jochen> is there anything like the valarray templates with egcs.
> Actually I submitted a (almost) complete implementation, but you
> have to wait since it wasn't fully tested on all plaforms supported
> by egcs. It will be included in the newly rewritten libstdc++. I
> don't know when.
It is a sad state of affairs when people donate code, and we still
have nothing. Is there a reason why we don't have the newer classes
yet? I think we have talked about it before, but I don't now recall
what reason there may have been to not put it in.
If more work needs to be done on it to finish the work, drop it in,
and we can all work on it.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: valarray
@ 1998-05-07 5:15 Jochen.K
0 siblings, 0 replies; 12+ messages in thread
From: Jochen.K @ 1998-05-07 5:15 UTC (permalink / raw)
To: egcs mailing list
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 856 bytes --]
On Thu, 07 May 1998, Gabriel Dos Reis wrote:
>>>>>> «Jochen», Jochen K"upper <jochen@uni-duesseldorf.de> wrote:
>There is an approximation written by Daveed Vandervood in the
>past. You should be able to get it somewhere on the net. Be aware that
>Daveed no longer maintains it.
Found it at ftp://ftp.cs.rpi.edu/pub/vandevod/Valarray/Rel2_0Beta2/
Thanks,
Jochen
--
-----------------------------------------------------------------------
Jochen K"upper
Heinrich-Heine-Universit"at D"usseldorf jochen@uni-duesseldorf.de
Institut f"ur Physikalische Chemie I
Universit"atsstr. 1, Geb 26.43 Raum 02.29 phone ++49-211-8113681
40225 D"usseldorf fax ++49-211-8115195
Germany http://www-public.rz.uni-duesseldorf.de/~jochen
-----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 12+ messages in thread
* valarray
@ 1998-05-06 2:02 Jochen.K
1998-05-06 23:49 ` valarray Gabriel Dos Reis
[not found] ` <199805070112.DAA16347.cygnus.egcs@piano.dptmaths.ens-cachan.fr>
0 siblings, 2 replies; 12+ messages in thread
From: Jochen.K @ 1998-05-06 2:02 UTC (permalink / raw)
To: egcs mailing list
Dear All,
is there anything like the valarray templates with egcs. I did not find it when
looking through the header files.
As I understand from other sources (like Stroustrups The C++ Programming
Language) this is part of the standard library.
If there is no implementation with egcs, do you know any free implementations of
that conzept ?
Thanks you,
Jochen
--
-----------------------------------------------------------------------
Jochen K"upper
Heinrich-Heine-Universit"at D"usseldorf jochen@uni-duesseldorf.de
Institut f"ur Physikalische Chemie I
Universit"atsstr. 1, Geb 26.43 Raum 02.29 phone ++49-211-8113681
40225 D"usseldorf fax ++49-211-8115195
Germany http://www-public.rz.uni-duesseldorf.de/~jochen
-----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 12+ messages in thread
* valarray
1998-05-06 2:02 valarray Jochen.K
@ 1998-05-06 23:49 ` Gabriel Dos Reis
[not found] ` <199805070112.DAA16347.cygnus.egcs@piano.dptmaths.ens-cachan.fr>
1 sibling, 0 replies; 12+ messages in thread
From: Gabriel Dos Reis @ 1998-05-06 23:49 UTC (permalink / raw)
To: Jochen.K; +Cc: egcs mailing list
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 863 bytes --]
>>>>> «Jochen», Jochen K"upper <jochen@uni-duesseldorf.de> wrote:
Jochen> Dear All,
Jochen> is there anything like the valarray templates with egcs. I did not find it when
Jochen> looking through the header files.
Jochen> As I understand from other sources (like Stroustrups The C++ Programming
Jochen> Language) this is part of the standard library.
Actually I submitted a (almost) complete implementation, but you have
to wait since it wasn't fully tested on all plaforms supported by egcs. It
will be included in the newly rewritten libstdc++. I don't know when.
Jochen> If there is no implementation with egcs, do you know any free implementations of
Jochen> that conzept ?
There is an approximation written by Daveed Vandervood in the
past. You should be able to get it somewhere on the net. Be aware that
Daveed no longer maintains it.
-- Gaby
^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <199805070112.DAA16347.cygnus.egcs@piano.dptmaths.ens-cachan.fr>]
* Re: valarray
[not found] ` <199805070112.DAA16347.cygnus.egcs@piano.dptmaths.ens-cachan.fr>
@ 1998-05-08 0:54 ` Nathan Myers
1998-05-08 19:52 ` valarray Gabriel Dos Reis
0 siblings, 1 reply; 12+ messages in thread
From: Nathan Myers @ 1998-05-08 0:54 UTC (permalink / raw)
To: egcs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1106 bytes --]
Gabriel Dos Reis wrote:
>
> >>>>> «Jochen», Jochen K"upper <jochen@uni-duesseldorf.de> wrote:
> Jochen> is there anything like the valarray templates with egcs. I did not
> Jochen> find it when looking through the header files.
>
> Jochen> As I understand from other sources (like Stroustrups The C++ Programming
> Jochen> Language) this is part of the standard library.
>
> Actually I submitted a (almost) complete implementation, but you have
> to wait since it wasn't fully tested on all plaforms supported by egcs. It
> will be included in the newly rewritten libstdc++. I don't know when.
You should know that (as much as we appreciate Gabriel's contribution)
that valarray is generally a poor way to accomplish what it was intended
for. A much better choice is something like Blitz++ or its kin, which you
can find at (or by following links from)
http://monet.uwaterloo.ca/blitz/
To perform well, valarray really needs special compiler support, and because
projects like Blitz++ have been so successful, valarray is unlikely ever to
get that support.
Nathan Myers
ncm@cygnus.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: valarray
1998-05-08 0:54 ` valarray Nathan Myers
@ 1998-05-08 19:52 ` Gabriel Dos Reis
[not found] ` <355392BA.21A86073@cislunar.com>
0 siblings, 1 reply; 12+ messages in thread
From: Gabriel Dos Reis @ 1998-05-08 19:52 UTC (permalink / raw)
To: Nathan Myers; +Cc: egcs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1619 bytes --]
>>>>> «Nathan», Nathan Myers <ncm@cygnus.com> wrote:
Nathan> You should know that (as much as we appreciate Gabriel's contribution)
Nathan> that valarray is generally a poor way to accomplish what it was intended
Nathan> for. A much better choice is something like Blitz++ or its kin, which you
Nathan> can find at (or by following links from)
Nathan> http://monet.uwaterloo.ca/blitz/
Nathan> To perform well, valarray really needs special compiler support, and because
Nathan> projects like Blitz++ have been so successful, valarray is unlikely ever to
Nathan> get that support.
Any efficient C/C++ library in numerical computation *needs* some
support from the compiler (e.g. keyword "restrict" in C). I know (in
some extent) very well the blitz project. Todd is aware (at least it
was pointed to him when he visited CERN recently) that the blitz
project, as it is now, is not usable in real world scientific
computing (e.g. in finite elements, large linear systems, systems from
physics). Nevertheless it introduced new concepts which deserve new
ways of optimization.
Actually (as Bjarne told me in Sophia last March), the sade state of
valarray is a consequence of a lack of numerical computation expert in
the committee. It's just recently that I gained interest in using C++
in scientific computing. Anyway, I would really like to support an
efficient, usable valarray but for that I *need* some support form
folks here. I'm not a compiler designer but I can spend time to
learn gcc internals in order to get an efficient valarray if there
guys to explain me how things are made up.
-- Gaby
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~1999-04-30 23:15 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-23 14:05 valarray Jason Molenda
1999-04-30 23:15 ` valarray Jason Molenda
-- strict thread matches above, loose matches on Subject: below --
1998-11-08 6:43 valarray Tobias Naehring
1998-11-09 7:21 ` valarray Gabriel Dos Reis
[not found] <199805081913.MAA19580.cygnus.egcs@kankakee.wrs.com>
1998-05-08 16:04 ` valarray Ulrich Drepper
1998-05-08 12:13 valarray Mike Stump
1998-05-07 5:15 valarray Jochen.K
1998-05-06 2:02 valarray Jochen.K
1998-05-06 23:49 ` valarray Gabriel Dos Reis
[not found] ` <199805070112.DAA16347.cygnus.egcs@piano.dptmaths.ens-cachan.fr>
1998-05-08 0:54 ` valarray Nathan Myers
1998-05-08 19:52 ` valarray Gabriel Dos Reis
[not found] ` <355392BA.21A86073@cislunar.com>
1998-05-10 6:17 ` valarray Gabriel Dos Reis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).