Changeset 8d7ceaf in tol


Ignore:
Timestamp:
May 9, 2013, 1:39:36 PM (13 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
00439c7
Parents:
cfad556
Message:

new argument 'verbose' in AustoScale function

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/matrix_type/matgra.cpp

    rcfad556 r8d7ceaf  
    27062706}
    27072707
    2708 
    27092708//--------------------------------------------------------------------
    27102709DeclareContensClass(BMat, BMatTemporary, BMatAutoScale);
    2711 DefExtOpr(1, BMatAutoScale, "AutoScale", 4, 6,
    2712   "Code Matrix Matrix Matrix Real Real",
    2713   "(Code function, Matrix x0, Matrix xMin, Matrix xMax [, Real fDist=.01, Real tolerance=0.001])",
     2710DefExtOpr(1, BMatAutoScale, "AutoScale", 4, 7,
     2711  "Code Matrix Matrix Matrix Real Real Real",
     2712  "(Code function, Matrix x0, Matrix xMin, Matrix xMax "
     2713  "[, Real fDist=.01, Real tolerance=0.001, Real verbose=False])",
    27142714  I2("Returns the vector of scales that gives unitary variations of "
    27152715     "evaluation of a function in an environment of a given point inside "
    … …  
    27312731  BDat fDist=.01;
    27322732  BDat tolerance=0.001;
     2733  bool verbose = false;
    27332734  if(Arg(5)) { fDist=Dat(Arg(5)); }
    27342735  if(Arg(6)) { tolerance=Dat(Arg(6)); }
     2736  if(Arg(7)) { verbose=Real(Arg(7))!=0; }
    27352737  BInt   n    = x.Rows();
    27362738  contens_.Alloc(n,1);
    27372739  if(contens_.Rows()!=n) { return; }
    27382740  BRnRCode f(n, code);
    2739   f.AutoScale(x.Data(), xMin.Data(), xMax.Data(), fDist, tolerance, contens_.GetData());
     2741  f.AutoScale(x.Data(), xMin.Data(), xMax.Data(),
     2742   fDist, tolerance, verbose, contens_.GetData());
    27402743}
    27412744
Note: See TracChangeset for help on using the changeset viewer.