Boost logo

Ublas :

From: Karl Meerbergen (Karl.Meerbergen_at_[hidden])
Date: 2007-03-27 12:39:32


Hi,

I checked the source code. The symbol copy is defined in
blas1_overload.hpp, but not in blas1.hpp.

I recall that copy was not implemented because of the availability of
std::copy(), which should also work well.

Do you really want to use blas::copy ?

Karl

Quoting "Francisco J. González" <fgonzalez_at_[hidden]>:
> I tried using the full namespace path, but my compiler keeps on
> complaining about it, with the following error message:
>
> error C2039: 'copy' : is not a member of
> 'boost::numeric::bindings::blas'
>
> It seems that 'copy' is not defined in the namespace
> boost::numeric::bindings::blas (I don't get this error when using
> boost::numeric::bindings::atlas).
>
> Thanks!
>
> Fran
>
>
> ----- Original Message -----
> From: "Karl Meerbergen" <Karl.Meerbergen_at_[hidden]>
> To: "ublas mailing list" <ublas_at_[hidden]>
> Sent: Tuesday, March 27, 2007 2:17 PM
> Subject: Re: [ublas] Missing "copy" in BLAS bindings?
>
>
> Looking at the error message, I have the impression the compiler
> tries
> to use std::copy.
>
> Please try using the full namespace path in the copy function. This
> will
> remove the ambiguity in the symbol copy.
>
> Karl
>
>
>
> Quoting Francisco Javier González Varel <fgonzalez_at_[hidden]>:
> > My code includes the lines
> >
> > using namespace boost::numeric::bindings::blas;
> > //using namespace boost::numeric::bindings::atlas;
> >
> > (sorry, I didn't include them in the code in the other e-mail)
> >
> > In fact, the program uses the atlas function "copy" when I use the
>
> > atlas bindings, but this doesn't happen with the blas bindings.
> >
> > Thanks!
> >
> > Fran
> >
> > Nico Galoppo <nico_at_[hidden]>:
> >
> > > I think you need to use the ublas namespace? This is not a
> linker
> > problem, it
> > > looks to me that the compiler is complaining.
> > >
> > > Cheers,
> > >
> > > --nico
> > >
> > > Francisco J. González wrote:
> > >> Hello everyone!
> > >>
> > >> I am trying to use the BLAS (through BLAS bindings) to make a
> copy
> > of a
> > >> vector.
> > >>
> > >> // #include <bindings/blas/blas1.hpp>
> > >> #include <bindings/atlas/cblas1.hpp>
> > >>
> > >> void MyClass::q_update(const real_vector q)
> > >> {
> > >> assert( q.size() == q_.size() );
> > >> copy(q, q_);
> > >> }
> > >>
> > >> I have found that ATLAS bindings can do that, and, when I link
> my
> > code
> > >> to my ATLAS library through ATLAS bindings, no problem rises.
> > >> However, if I try to link my code with my BLAS library, called
> > through
> > >> BLAS sandbox bindings, I get the following error:
> > >>
> > >> error C2780: '_OutIt std::copy(_InIt,_InIt,_OutIt)' : expects 3
> > >> arguments - 2 provided
> > >> C:\Archivos de programa\Microsoft Visual Studio .NET
> > >> 2003\Vc7\include\xutility(1038) : see declaration of
> 'std::copy'
> > >>
> > >> It seems that the linker does not find the BLAS "copy"
> function.
> > It is
> > >> defined in cblas1.hpp, but not in blas1.hpp (however,
> > >> blas1_overloads.hpp includes the definition of "copy", with 5
> > >> arguments). Is there any reason to do that?
> > >>
> > >> Thank you in advance!
> > >>
> > >> Fran
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> >
> ------------------------------------------------------------------------
> > >>
> > >> _______________________________________________
> > >> ublas mailing list
> > >> ublas_at_[hidden]
> > >> http://lists.boost.org/mailman/listinfo.cgi/ublas
> > >
> > > --
> > > nico galoppo von borries | address: 119 fidelity st.,
> > carrboro
> > > comp. graphics phd. student | north carolina, 27510
> USA
> > > UNC, chapel hill | phone: +1 (919) 962-1898
> (office)
> > > | +1 (919) 942-4388 (home)
> > > | email: nico at cs dot unc dot
> edu
> > > | homepage:
> http://www.ngaloppo.org
> > >
> > > _______________________________________________
> > > ublas mailing list
> > > ublas_at_[hidden]
> > > http://lists.boost.org/mailman/listinfo.cgi/ublas
> > >
> >
> >
> >
> > ----------------------------------------------------------------
> > Correo enviado usando el servicio de Webmail de la UDC.
> >
> >
> > _______________________________________________
> > ublas mailing list
> > ublas_at_[hidden]
> > http://lists.boost.org/mailman/listinfo.cgi/ublas
> >
> >
>
>
>
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
>