28 #ifndef _mpqc_src_lib_math_scmat_predicate_h
29 #define _mpqc_src_lib_math_scmat_predicate_h
38 template <
class T =
double>
39 struct abs_less :
public std::binary_function<T, T, bool> {
40 bool operator()(
const T& a,
const T& b) {
41 return std::less<T>()(std::abs(a),std::abs(b));
44 template <
class T =
double>
45 struct abs_greater :
public std::binary_function<T, T, bool> {
46 bool operator()(
const T& a,
const T& b) {
47 return std::greater<T>()(std::abs(a),std::abs(b));
53 #endif // end of header guard