mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
NETGEN_INLINE for Range::Split
This commit is contained in:
parent
7f172344e8
commit
a0b9dca246
@ -294,7 +294,7 @@ namespace ngcore
|
|||||||
NETGEN_INLINE ArrayRangeIterator<T> begin() const { return first; }
|
NETGEN_INLINE ArrayRangeIterator<T> begin() const { return first; }
|
||||||
NETGEN_INLINE ArrayRangeIterator<T> end() const { return next; }
|
NETGEN_INLINE ArrayRangeIterator<T> end() const { return next; }
|
||||||
|
|
||||||
T_Range Split (size_t nr, int tot) const
|
NETGEN_INLINE T_Range Split (size_t nr, int tot) const
|
||||||
{
|
{
|
||||||
T diff = next-first;
|
T diff = next-first;
|
||||||
return T_Range (first + nr * diff / tot,
|
return T_Range (first + nr * diff / tot,
|
||||||
|
Loading…
Reference in New Issue
Block a user