mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
BTL: rm stupid backends
This commit is contained in:
@@ -136,13 +136,13 @@ public :
|
||||
|
||||
Action_tridiagonalization( int size ):_size(size)
|
||||
{
|
||||
MESSAGE("Action_hessenberg Ctor");
|
||||
MESSAGE("Action_tridiagonalization Ctor");
|
||||
|
||||
// STL vector initialization
|
||||
typename Interface::stl_matrix tmp;
|
||||
init_matrix<pseudo_random>(tmp,_size);
|
||||
init_matrix<null_function>(X_stl,_size);
|
||||
STL_interface<typename Interface::real_type>::ata_product(tmp,X_stl,_size);
|
||||
STL_interface<typename Interface::real_type>::aat_product(tmp,X_stl,_size);
|
||||
|
||||
init_matrix<null_function>(C_stl,_size);
|
||||
init_matrix<null_function>(resu_stl,_size);
|
||||
@@ -155,9 +155,9 @@ public :
|
||||
_cost = 0;
|
||||
for (int j=0; j<_size-2; ++j)
|
||||
{
|
||||
int r = std::max(0,_size-j-1);
|
||||
int b = std::max(0,_size-j-2);
|
||||
_cost += 6 + 3*b + r*r*8;
|
||||
double r = std::max(0,_size-j-1);
|
||||
double b = std::max(0,_size-j-2);
|
||||
_cost += 6. + 3.*b + r*r*8.;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user