Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 5503e831 authored by hhakim's avatar hhakim
Browse files

Increase error tol from machine epsilon to 1e-15.

It fixes the rare error below:

Assertion failed in FaustTest/testMul and it did not run to completion.

    ---------------------
    Framework Diagnostic:
    ---------------------
    assertLessThan failed.
    --> The value must be less than the maximum value.

    Actual Value:
         2.331686814165176e-16
    Maximum Value (Exclusive):
         2.220446049250313e-16

    ------------------
    Stack Information:
    ------------------
    In /Users/ci/builds/Z-XUzYP3/0/faustgrp/faust/misc/test/src/Matlab/FaustTest.m (FaustTest.testMul) at 441
parent fced1cbc
No related branches found
No related tags found
No related merge requests found
...@@ -438,8 +438,8 @@ classdef FaustTest < matlab.unittest.TestCase ...@@ -438,8 +438,8 @@ classdef FaustTest < matlab.unittest.TestCase
this.verifyEqual(test_commu_rF,ref_rF, 'RelTol', 10^-3); this.verifyEqual(test_commu_rF,ref_rF, 'RelTol', 10^-3);
this.verifyNotEqual(test_rF, ref_full_faust*(r+1)) this.verifyNotEqual(test_rF, ref_full_faust*(r+1))
this.verifyNotEqual(test_commu_rF, ref_full_faust*(r+1)) this.verifyNotEqual(test_commu_rF, ref_full_faust*(r+1))
this.assertLessThan(norm(full(F'*r)-full(F)'*r)/norm(full(F)'*r), eps(1.)) this.assertLessThan(norm(full(F'*r)-full(F)'*r)/norm(full(F)'*r), 1e-15)
this.assertLessThan(norm(full(F.'*r)-full(F).'*r)/norm(full(F).'*r), eps(1.)) this.assertLessThan(norm(full(F.'*r)-full(F).'*r)/norm(full(F).'*r), 1e-15)
disp('test mul by complex scalar') disp('test mul by complex scalar')
r = rand()+j*rand(); r = rand()+j*rand();
test_rF = full(F*r); test_rF = full(F*r);
...@@ -449,8 +449,8 @@ classdef FaustTest < matlab.unittest.TestCase ...@@ -449,8 +449,8 @@ classdef FaustTest < matlab.unittest.TestCase
this.verifyEqual(test_commu_rF,ref_rF, 'RelTol', 10^-3); this.verifyEqual(test_commu_rF,ref_rF, 'RelTol', 10^-3);
this.verifyNotEqual(test_rF, ref_full_faust*(r+1)) this.verifyNotEqual(test_rF, ref_full_faust*(r+1))
this.verifyNotEqual(test_commu_rF, ref_full_faust*(r+1)) this.verifyNotEqual(test_commu_rF, ref_full_faust*(r+1))
this.assertLessThan(norm(full(F'*r)-full(F)'*r)/norm(full(F)'*r), eps(1.)) this.assertLessThan(norm(full(F'*r)-full(F)'*r)/norm(full(F)'*r), 1e-15)
this.assertLessThan(norm(full(F.'*r)-full(F).'*r)/norm(full(F).'*r), eps(1.)) this.assertLessThan(norm(full(F.'*r)-full(F).'*r)/norm(full(F).'*r), 1e-15)
disp('test mul of two Fausts') disp('test mul of two Fausts')
r_fausts = {matfaust.rand(size(F,2), randi(100)), r_fausts = {matfaust.rand(size(F,2), randi(100)),
matfaust.rand(size(F,2), randi(100) , 'density', .5, 'field', 'complex')}; matfaust.rand(size(F,2), randi(100) , 'density', .5, 'field', 'complex')};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment