src/Utilities/GeometricUtilities.hh
//------------------------------------------------------------------------------
// Construct a Tensor with the given diagonal elements, enforcing a maximum.
//------------------------------------------------------------------------------
Construct a Tensor with the given diagonal elements, enforcing a maximum.
Construct a Tensor with the given diagonal elements enforcing a maximum .
inline
Dim<1>::Tensor
constructTensorWithMaxDiagonal(const Dim<1>::Vector& vec,
                               const double minval) {
  return Dim<1>::Tensor(std::max(minval, vec.x()));
}
inline Dim < 1 > :: Tensor constructTensorWithMaxDiagonal ( const Dim < 1 > :: Vector & vec , const double minval ) { return Dim < 1 > :: Tensor ( std :: max ( minval , vec . x ( ) ) ) ; }
Construct a Tensor with the given diagonal elements, enforcing a maximum.
Construct a Tensor with the given diagonal elements enforcing a maximum .