Changeset 19 for bdm/stat/libDS.cpp

Show
Ignore:
Timestamp:
02/16/08 15:12:24 (16 years ago)
Author:
smidl
Message:

Switch to CMake

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/stat/libDS.cpp

    r18 r19  
    22#include "libDS.h" 
    33 
    4 using namespace itpp; 
     4//using namespace itpp; 
    55 
    66void MemDS::getdata(vec &dt){ 
     7        int i; 
     8         
    79        it_assert_debug(dt.length()==rowid.length(), "MemDS:getdata incompatible dt"); 
    810        for(i=0;i<rowid.length();i++){ 
     
    1214 
    1315void MemDS::getdata(vec &dt,ivec &indeces){ 
    14         int j; 
     16        int j,i; 
    1517        it_assert_debug(dt.length()==indeces.length(), "MemDS:getdata incompatible dt"); 
    1618        for(i=0;i<indeces.length();i++){ 
     
    3234} 
    3335 
    34 MemDS::MemDS(vec &Dat, ivec &rowid, ivec &delays){ 
    35         it_assert_debug(max(rowid)<=Dat.rows,"MemDS rowid is too high for given Dat.") 
    36         it_assert_debug(max(delays)<Dat.cols,"MemDS delays are too high.") 
     36MemDS::MemDS(mat &Dat, ivec &rowid, ivec &delays){ 
     37        it_assert_debug(max(rowid)<=Dat.rows(),"MemDS rowid is too high for given Dat."); 
     38        it_assert_debug(max(delays)<Dat.cols(),"MemDS delays are too high."); 
    3739         
    38         time = max(delayes);  
     40        time = max(delays);  
    3941        Data = Dat; 
    4042}