3 % Compute length of boundary edges
6 % be: `2\times\nbe`
'int32' array,`\be(\jl,k)` index of storage, in the array `\q`, of the `\jl`-th
7 % vertex of the edge of index `k`, `\jl\in\{1,2\}` and `k\in\{1,\hdots,\nbe\}.`
9 %
'q': `2\times\nq` array, `{\q}(\il,j)` is the `\il`-th coordinate of the `j`-th vertex, `\il\in\{1,2\}` and `j\in\{1,\hdots,n_q\}.`
13 % lbe: `1\times\nbe` array, lbe(k) is the length of edge k.
14 lbe=sqrt(sum((q(:,be(1,:)) - q(:,be(2,:))).^2,1));