Changeset 4 for tests/test-frobenius.C

Show
Ignore:
Timestamp:
03/13/07 10:33:27 (2 years ago)
Author:
pernet
Message:

Clean up the code for charpoly, + misc updates

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tests/test-frobenius.C

    r1 r4  
    2828                o << vect[i] << " " ; 
    2929        return o << vect[vect.size()-1] << std::endl; 
    30 } 
     30        } 
    3131 
    3232int main(int argc, char** argv){ 
     
    5151        tim.clear(); 
    5252        tim.start(); 
    53         FFPACK::Frobenius (F, frobForm, n, A, n, c); 
     53        FFPACK::CharpolyArithProg (F, frobForm, n, A, n, c); 
    5454        tim.stop();  
    5555        std::list<vector<Field::Element> >::iterator it = frobForm.begin(); 
    56         size_t i=0; 
    5756        while(it != frobForm.end()){ 
    5857                printvect (cout, *(it++)); 
    5958        } 
    6059        cerr<<c<<" "<<tim.usertime()<<" "<<4.55*n*n/1000000.0*n/tim.usertime()<<endl; 
     60        delete[] A; 
    6161        return 0;               
    6262} 
    63