33 #ifndef VECTOR_UTIL_H_
34 #define VECTOR_UTIL_H_
43 template<
typename TBlock>
46 for(
size_t j=0; j<
GetSize(v); j++)
49 if(d > tooBigValue || d < -tooBigValue || std::isfinite(d) ==
false)
55 template<
typename TBlock>
58 for(
size_t r=0; r<
GetRows(m); r++)
59 for(
size_t c=0; c<
GetCols(m); c++)
62 if(d > tooBigValue || d < -tooBigValue || std::isfinite(d) ==
false)
70 template<
typename TVector>
73 for(
size_t i=0; i<v.size(); i++)
95 template<
typename TVector>
100 template<
typename TVector>
Definition: parallel_vector.h:60
ConstSmartPtr< AlgebraLayouts > layouts() const
returns the algebra layouts
Definition: parallel_vector.h:97
bool AllProcsTrue(bool bFlag, ProcessCommunicator comm)
Definition: pcl_util.cpp:54
size_t GetCols(const T &t)
bool IsFinite(const ParallelVector< TVector > &v)
Definition: vector_util.h:101
double & BlockRef(T &vec, size_t i)
Definition: blocks.h:66
bool IsFiniteAndNotTooBig(double d)
Definition: number_util.h:39
size_t GetRows(const T &t)
bool BlockVectorFiniteAndNotTooBig(TBlock &v, double tooBigValue=1e24)
Definition: vector_util.h:44
bool BlockMatrixFiniteAndNotTooBig(TBlock &m, double tooBigValue=1e24)
Definition: vector_util.h:56
size_t GetSize(const T &t)