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