LevelS C++ support library  3.83
Classes | Functions
share_utils.h File Reference
#include <algorithm>
#include "datatypes.h"

Go to the source code of this file.

Classes

class  chunkMaker
 

Functions

void calcShareGeneral (int64 glo, int64 ghi, int64 nshares, int64 myshare, int64 &lo, int64 &hi)
 

Detailed Description

Various convenience functions for subdividing tasks into chunks

Copyright (C) 2002-2016 Max-Planck-Society

Author
Martin Reinecke

Definition in file share_utils.h.

Function Documentation

◆ calcShareGeneral()

void calcShareGeneral ( int64  glo,
int64  ghi,
int64  nshares,
int64  myshare,
int64 &  lo,
int64 &  hi 
)
inline

Divides the index range [glo; ghi) into nshares approximately equal parts, and returns the sub-range [lo; hi) of the part with the number myshare (first part has index 0).

Definition at line 41 of file share_utils.h.


Generated on Wed Nov 13 2024 12:18:16 for LevelS C++ support library