mirror of
https://github.com/triqs/dft_tools
synced 2024-12-26 06:14:14 +01:00
Correction: new test det_manip_constructor
The matrix was singular ! (-> exception on OS X).
This commit is contained in:
parent
c185be83c0
commit
dce4edbdde
@ -7,13 +7,13 @@
|
|||||||
|
|
||||||
//gives the coefficients of the matrix (function F of the documentation)
|
//gives the coefficients of the matrix (function F of the documentation)
|
||||||
double operator()(double x, double y) const {
|
double operator()(double x, double y) const {
|
||||||
return(x-y);
|
return (x-y+1)*(x-y);
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
try {
|
||||||
fun f;
|
fun f;
|
||||||
int init_size=10;
|
int init_size=10;
|
||||||
std::vector<double> initial_x{1,2,2.5}, initial_y{3,4,9};
|
std::vector<double> initial_x{1,2,2.5}, initial_y{3,4,9};
|
||||||
@ -27,5 +27,6 @@
|
|||||||
//the initial matrix:
|
//the initial matrix:
|
||||||
std::cout<<std::endl<< "After construction: D.matrix()=" << D1.matrix()<<std::endl;
|
std::cout<<std::endl<< "After construction: D.matrix()=" << D1.matrix()<<std::endl;
|
||||||
std::cout<<std::endl<< "After construction: D.matrix()=" << D2.matrix()<<std::endl;
|
std::cout<<std::endl<< "After construction: D.matrix()=" << D2.matrix()<<std::endl;
|
||||||
|
}
|
||||||
|
catch(std::exception const & e ) { std::cout << "error "<< e.what()<< std::endl;}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user