Valarray

Gabriel Dos Reis dosreis@cmla.ens-cachan.fr
Thu Nov 18 17:01:00 GMT 1999


Marc Lepage <mlepage@molecularmining.com> writes:

| First of all, I'm a little confused as to the relative state of development, in
| stable release, latest CVS, and on my system. I have a GCC 2.7.2.3 in /usr/bin
| but have been using egcs then GCC 2.95 then 2.95.1 in /usr/local/bin for half a
| year. I've installed snapshots of libstdc++-v3 but haven't used them.
| 
| So, on this machine, I have GCC 2.95.1, and the source to libstdc++-2.90.6.

Marc,

If you've properly installed GCC-2.95.1 then you've an integrating
libstdc++ (including valarray).

| Can someone summarize for me, where current development is? What is the version
| of the standard library in GCC? I only see a valarray in
| /usr/local/include/g++-3, is that correct?

Yes.

| ... If so, the naming confuses me.

It corresponds to ABI names. What is confusing?

| What changes have occurred in valarray since GCC 2.95.1? 

As far as I can tell, there is no change between gcc-2.95/valarray and
gcc-2.95.1/valarray.  Various bugs were fixed long before, but
unfortunately they weren't included in the dot releases. 

Current CVS trees (both GCC and libstdc++-v3) are more up-to-date.

| ... It seems that
| tanh(valarray) isn't available, and I don't see it in libstdc++-2.90.6's
| valarray either. Has this been reported or fixed? See bits/valarray_meta.h:944
| for details.

I forgot this one. Thanks!

| Why doesn't valarray use more macro shenanigans (like _DEFINE_BINARY_OPERATOR(+,
| plus)) to declare the operators within the class? See bits/std_valarray.h:140
| for details.

Why should them be declared within then class? Where do you draw that
requirement from?

| Similarly, why aren't the function objects defined using macros in the same
| fashion? See bits/stl_function.h:49 for details.

Please, can you exapnd on this?

| P.S. Not related to libstdc++-v3, has anyone had any experience wrapping
| functors/valarray in more OO fashion, for dynamic binding and persistence? I've
| been playing with that recently, and wouldn't mind comparing notes.

What do call "more OO fashion" ? 

Thanks!

-- Gaby


More information about the Libstdc++ mailing list