Subversion Repositories gelsvn

Rev

Rev 630 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 630 Rev 632
Line 389... Line 389...
389
  */
389
     */
390
 
390
    
391
  template <class M1, class M2>
391
    template <class M1, class M2>
392
    void copy_matrix(const M1& inmat, M2& outmat)
392
    void copy_matrix(const M1& inmat, M2& outmat)
393
    {
393
    {
394
      const unsigned int R = s_min(inmat.get_v_dim(), outmat.get_v_dim());
394
        const unsigned int R = std::min(inmat.get_v_dim(), outmat.get_v_dim());
395
      const unsigned int C = s_min(inmat.get_h_dim(), outmat.get_h_dim());
395
        const unsigned int C = std::min(inmat.get_h_dim(), outmat.get_h_dim());
396
      for(unsigned int i=0;i<R;++i)
396
        for(unsigned int i=0;i<R;++i)
397
	for(unsigned int j=0;j<C;++j)
397
            for(unsigned int j=0;j<C;++j)
398
	  outmat[i][j] = inmat[i][j];
398
                outmat[i][j] = inmat[i][j];
399
    }
399
    }
400
 
400