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