Changeset 8d7ceaf in tol
- Timestamp:
- May 9, 2013, 1:39:36 PM (13 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 00439c7
- Parents:
- cfad556
- File:
-
- 1 edited
-
tol/btol/matrix_type/matgra.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/btol/matrix_type/matgra.cpp
rcfad556 r8d7ceaf 2706 2706 } 2707 2707 2708 2709 2708 //-------------------------------------------------------------------- 2710 2709 DeclareContensClass(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])", 2710 DefExtOpr(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])", 2714 2714 I2("Returns the vector of scales that gives unitary variations of " 2715 2715 "evaluation of a function in an environment of a given point inside " … … 2731 2731 BDat fDist=.01; 2732 2732 BDat tolerance=0.001; 2733 bool verbose = false; 2733 2734 if(Arg(5)) { fDist=Dat(Arg(5)); } 2734 2735 if(Arg(6)) { tolerance=Dat(Arg(6)); } 2736 if(Arg(7)) { verbose=Real(Arg(7))!=0; } 2735 2737 BInt n = x.Rows(); 2736 2738 contens_.Alloc(n,1); 2737 2739 if(contens_.Rows()!=n) { return; } 2738 2740 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()); 2740 2743 } 2741 2744
Note: See TracChangeset
for help on using the changeset viewer.
