Changeset 772

Show
Ignore:
Timestamp:
01/12/10 20:25:54 (14 years ago)
Author:
smidl
Message:

reordering in chmat

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/math/chmat.h

    r766 r772  
    7676          Some templates require this constructor to compile, but 
    7777          it shouldn't actually be called. 
     78          \note may be numerically unstable 
    7879        */ 
    79         chmat ( const chmat &M, const ivec &perm ) NOT_IMPLEMENTED_VOID; 
     80        chmat ( const chmat &M, const ivec &perm ): sqmat(perm.length()) { 
     81                mat complete = M.to_mat (); 
     82                mat subs = complete.get_cols(perm); 
     83                Ch = chol(subs.get_rows(perm)); 
     84        } 
    8085 
    8186        //! Access function