Changeset dcfa400 in tol


Ignore:
Timestamp:
Nov 4, 2009, 9:34:13 AM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
ba8b08f
Parents:
eeb77dc
Message:

Method checkDimensions is now virtual to affect just to primary modules

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

Location:
tol/btol/vmatrix_type
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/vmatrix_type/tol_bvmat_bsr_impl.h

    reeb77dc rdcfa400  
    18621862  int expand2AllEqu_covAndFactors(noise_info& resInfo);
    18631863
    1864   int checkDimensions(int m);
     1864  virtual int checkDimensions(int m) { return(0); }
    18651865
    18661866  int getMissing(BVMat& Y,
  • tol/btol/vmatrix_type/vmat_bsr_primary.cpp

    reeb77dc rdcfa400  
    540540
    541541  /////////////////////////////////////////////////////////////////////////////
     542  int checkDimensions(int m)
     543  /////////////////////////////////////////////////////////////////////////////
     544  {
     545    int b = noise.vec.size();
     546    if(!b)
     547    {
     548      Error(BSR()+"At least a vector of noise with independent normal distribution must be defined");
     549      return(-4);
     550    }
     551    if(!m)
     552    {
     553      Error(BSR()+"At least a linear equation must be defined");
     554      return(-5);
     555    }
     556    return(0);
     557  };
     558
     559  /////////////////////////////////////////////////////////////////////////////
    542560  int getData(vector<variable_info>&  linearInfo_,
    543561              vector<missing_info>&   inputMissingInfo_,
Note: See TracChangeset for help on using the changeset viewer.