Changeset f1a9d95 in tol for tol_pkg


Ignore:
Timestamp:
Jan 6, 2010, 11:49:02 PM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
d8d4605
Parents:
9002d5f
Message:

Removing unneeded argument X.h

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

Location:
tol_pkg/MulVarFunAprox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tol_pkg/MulVarFunAprox/DesignC2.tol

    r9002d5f rf1a9d95  
    8181
    8282  //////////////////////////////////////////////////////////////////////////////
    83     VMatrix build.obs(VMatrix X, VMatrix X.h)
     83    VMatrix build.obs(VMatrix X)
    8484  //////////////////////////////////////////////////////////////////////////////
    8585  {
    … …  
    8888     FunRn2R::@BaseC2.Eval.Function::New(get.base(0));
    8989    Real m = VRows(X);
     90    VMatrix X.h=closest.reference.index(X);
    9091    WriteLn("TRACE "+_MID+"1 m="<<m);
    9192    If(!m, Rand(0,_.N,0,0), {
    … …  
    133134
    134135  //////////////////////////////////////////////////////////////////////////////
    135     VMatrix build.obs.partial.derivative.1(VMatrix X, VMatrix X.h, Real s)
     136    VMatrix build.obs.partial.derivative.1(VMatrix X, Real s)
    136137  //////////////////////////////////////////////////////////////////////////////
    137138  {
    … …  
    142143    Text _MID = "[@DesignC2::build.obs.partial.derivative.1] ";
    143144    Real m = VRows(X);
     145    VMatrix X.h=closest.reference.index(_.X);
    144146    WriteLn("TRACE "+_MID+"1 m="<<m);
    145147    If(!m, Rand(0,_.N,0,0), {
    … …  
    342344    Text _MID = "[@DesignC2::build.decomposition] ";
    343345    WriteLn("TRACE "+_MID+"1");
    344     VMatrix X.h=closest.reference.index(_.X);
    345     VMatrix _.QX := build.obs(_.X, X.h);
     346    VMatrix _.QX := build.obs(_.X);
    346347    WriteLn("TRACE "+_MID+"2");
    347348    VMatrix _.QB := build.border.prior(0);
  • tol_pkg/MulVarFunAprox/ModelC2.tol

    r9002d5f rf1a9d95  
    137137    VMatrix X.1 = SubRow(X,X.1.select);
    138138    Real m.1 = VRows(X.1);
    139     VMatrix X.1.h = _.design::closest.reference.index(X.1);
    140     VMatrix QX.1 = _.design::build.obs(X.1, X.1.h);
     139    VMatrix QX.1 = _.design::build.obs(X.1);
    141140    VMatrix F.1 = QX.1*_.alpha;
    142141    Matrix triplet.1 = SetCol(X.1.select)|Rand(m.1,1,1,1)|VMat2Mat(F.1);
    … …  
    163162    VMatrix X.1 = SubRow(X,X.select);
    164163    Real m.1 = VRows(X.1);
    165     VMatrix X.1.h = _.design::closest.reference.index(X.1);
    166     VMatrix QX.1 = _.design::build.obs.partial.derivative.1(X.1, X.1.h, s);
     164    VMatrix QX.1 = _.design::build.obs.partial.derivative.1(X.1, s);
    167165    VMatrix F.1 = QX.1*_.alpha;
    168166    Matrix triplet.1 = SetCol(X.select)|Rand(m.1,1,1,1)|VMat2Mat(F.1);
Note: See TracChangeset for help on using the changeset viewer.