Changeset de5922e in tol for tol_tests


Ignore:
Timestamp:
Feb 8, 2012, 7:06:58 PM (15 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
25979b0
Parents:
a65c03e
Message:

upgrading test

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@4090 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol_tests/tol/LinearAlgebra/vmatrix/test_0006/test.tol

    ra65c03e rde5922e  
    1212  WriteLn("TRACE 1");
    1313
    14   Real size = 1000;
     14  Real size = 10000;
    1515  Real burning = 1;
    1616
    … …  
    9090
    9191  Set TruncatedSamples = For(1,Card(Cases), getAllSamples);
     92  Set Feasible.ok = For(1,Card(Cases), Real(Real k)
     93  {
     94//  Real k= 1;
     95    Set     case = Cases[k];
     96    VMatrix B    = Mat2VMat(case::B);
     97    VMatrix b    = Mat2VMat(case::b);
     98    VMatrix x = Mat2VMat(TruncatedSamples[k]);
     99    VMatrix b_ = Group("ConcatColumns",NCopy(VRows(x),b));
     100    VMatrix g = B*Tra(x)-b_;
     101    Real G = VMatMax(g);
     102    G<0
     103  });
    92104   
    93105  Matrix FullDivUnion = Group("ConcatRows", FullDividing);
    … …  
    120132    eqMinProb,
    121133    neMaxProb
    122   ]];
     134  ]] << Feasible.ok;
    123135
    124136//This is a messure of the success of the test
    125   Real quality_ = And(numErr0 == NError)*eqMinProb;
     137  Real quality_ = And(numErr0 == NError)*eqMinProb*SetMin(Feasible.ok);
    126138
    127139//Return the results
Note: See TracChangeset for help on using the changeset viewer.