Re: troubles when testing the compiled library

28 views
Skip to first unread message

Ulf Lorenz

unread,
Aug 16, 2016, 3:11:35 PM8/16/16
to libt...@googlegroups.com, Jan Schulze
On Tue, 16 Aug 2016 04:37:17 -0700 (PDT)
"'Jan Schulze' via libtensor" <libt...@googlegroups.com> wrote:

> Dear all,
> I need to compile this library but it seems that I am missing
> something as there are always failed tests when I run 'make check'
> subsequently. I attached the relevant files (produced by configure
> and make). Any help would be great.
>
> Thanks in advance.

Not too long ago, I noticed this behavior as well and looked into it.
The problem I found then is that the test use equality comparison (==)
for double precision numbers instead of comparison with some error
bounds (probably around 1e-14 would be enough), which makes the tests
fail randomly. The latter one has to work with complex numbers, which
makes the solution a bit tedious. Since I am also a bit behind with my
project, I left it at that.

You can check yourself by running the tests by hand. You should get
error messages like

Value of: t
Actual: (1.47974,1.80133)
Expected: trace(A)
Which is: (1.47974,1.80133)

which already tells you that the deviations are not large.


Ulf

Jan Schulze

unread,
Aug 17, 2016, 3:12:51 AM8/17/16
to libtensor, schul...@rocketmail.com, u...@wavepacket.org
Thanks for the quick response.
In my case it seems that a corrupted ATLAS installation has triggered the problems ... at least a fresh installation worked out of the box (on CentOS 6.6) with all tests PASSED. Also the respective program which is linked to the tensor lib appears to behave as expected.

greetings

Jan
Reply all
Reply to author
Forward
0 new messages