#133 Complex Dot Product error with ACML (zdotu)

release_3.10.x
closed
5
2012-09-15
2006-05-06
No

I'm using itpp 3.10.1 with ACML 3.1.0 under both
Windows (mingw) and Linux (Fedora Core 4) and I'm
having problems in using COMPLEX-valued dot products,
although REAL-valued dot products works fine.

For example, the following code

vec vr = "1 2";
double r = dot(vr,vr);

gives me r=5, which is ok!

But, this code

cvec v = "1 2";
complex<double> c = dot(v,v);

returns c=0+0i !??!!!

I've attached a simple program which reproduces this
bug. The output of this program in my both systems is:


v=[1+0i 2+0i]
res=0+0i
c=0+0i
vr=[1 2]
res=5
r=5


BR,
Danilo

Discussion

  • Danilo Zanatta

    Danilo Zanatta - 2006-05-06

    Test program

     
  • Adam Piątyszek

    Adam Piątyszek - 2006-05-08

    Logged In: YES
    user_id=1004597

    Dear Danilo,

    Thanks for your bug report and especially for the test
    program attached. I have fixed an improper implementation
    of a wrapper function cblas_zdotu_sub() in the SVN
    repository (trunk, itpp-3-10 branch). Thus, the next bug-fix
    release of IT++ (3.10.2) should be free of this problem.

    BR,

    /ediap

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks