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