Boost logo

Ublas :

From: Francisco Javier González Varel (fgonzalez_at_[hidden])
Date: 2007-03-27 04:32:41


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.