Changeset 884

Show
Ignore:
Timestamp:
03/29/10 23:01:29 (14 years ago)
Author:
smidl
Message:

Kalman correction

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/estim/kalman.cpp

    r850 r884  
    263263        //add diagonals for rgr 
    264264        int active_x = y_block_size; 
     265        int active_Bcol = 0; 
    265266        for ( int r = 0; r < urv.length(); r++ ) { 
    266267                if (u_block_sizes(r)>0){ 
    267268                        diagonal_part ( this->A, active_x + urv.size ( r ), active_x, u_block_sizes ( r ) - urv.size ( r ) ); 
    268                         this->B.set_submatrix ( active_x, 0, eye ( urv.size ( r ) ) ); 
     269                        this->B.set_submatrix ( active_x, active_Bcol, eye ( urv.size ( r ) ) ); 
     270                        active_Bcol+=u_block_sizes(r); 
    269271                } 
    270272                active_x += u_block_sizes ( r );