62 template<
typename V,
typename W>
63 V
clamp(
const V val,
const W start,
const W end) {
64 if(val < start)
return start;
65 if(val > end)
return end;
Sequential linear algebra kernels.
Functions related to mesh IO.
Functions handling a distributed mesh.
Functions related to network communication.
Classes related to mesh node renumbering.
Classes and algorithms related to the layout of distributed meshes.
Simple utility functions for parallel data.
Various sorting algorithms.
The vector class and related algorithms.
Class used to plot functions on the terminal.
Dense matrix class and associated funcs.
V clamp(const V val, const W start, const W end)
Clamp a value into an interval [start, end].