57 T my_max(
const T& v1,
const T& v2 ) {
return v1 > v2 ? v1 : v2; }
61 T my_min(
const T& v1,
const T& v2 ) {
return v1 < v2 ? v1 : v2; }
66 const value_type denom = my_max( ::fabs(val1), 1.0 );
67 return ::fabs(val1 - val2) / denom <
sqrt_eps;
74 vs1_itr = vs1.
begin(),
75 vs2_itr = vs2.
begin();
76 for(; vs1_itr != vs1.
end() && vs2_itr != vs2.
end(); ++vs1_itr, ++vs2_itr)
77 if( !_comp(*vs1_itr,*vs2_itr) )
return false;
83 for(; vs_itr != vs.
end(); ++vs_itr)
84 if( !_comp(*vs_itr,alpha) )
return false;
92 if( !
comp(
col(gms1,trans1,i) ,
col( gms2, trans2, i ) ) )
return false;
99 if( !
comp( gms.
col(i) , alpha ) )
return false;
112 if( !
comp(
col(tri_gms1.
gms(),trans1,i)(i,n),
col(tri_gms2.
gms(),trans2,i)(i,n) ) )
126 if( !
comp(
col(tri_gms1.
gms(),trans1,i)(i,n), alpha ) )
135 const value_type denom = my_max( ::fabs(alpha), 1.0 );
136 for(; vs_itr != vs.
end(); ++vs_itr)
137 if( *vs_itr > alpha )
return false;
Teuchos::Ordinal size_type
Typedef for the size type of elements that are used by the library.
size_type cols() const
Return the number of columns.
C++ Standard Library compatable iterator class for accesing nonunit stride arrays of data...
const value_type sqrt_eps
BLAS_Cpp::Uplo uplo() const
bool comp_less(const DVectorSlice &vs, value_type alpha)
Transp bool_to_trans(bool return_trans)
Return Transp given a bool.
DVectorSlice col(DMatrixSlice &gms, BLAS_Cpp::Transp trans, size_type j)
AbstractLinAlgPack::value_type value_type
FortranTypes::f_dbl_prec value_type
Typedef for the value type of elements that is used for the library.
bool comp(const DVectorSlice &vs1, const DVectorSlice &vs2)
DVectorSlice col(size_type j)
Return DVectorSlice object representing the jth column (1-based; 1,2,..,#this->cols()#, or throw std::out_of_range)