|
| static void | copy (size_t *pDest, const size_t *pSource, size_t nDims) |
| | This just wraps memcpy. More...
|
| |
| static void | deserialize (size_t *pVec, GDomListIterator &it) |
| | Load the vector from a text format. pVec must be large enough to contain all of the elements that remain in "it". More...
|
| |
| static size_t | indexOfMax (size_t *pVec, size_t size) |
| | Returns the index of the max value. In the event of a tie, the smallest index of one of the max values is returned. More...
|
| |
| static void | makeIndexVec (size_t *pVec, size_t size) |
| | Makes a vector of ints where each element contains its index (starting with zero, of course) More...
|
| |
| static size_t | maxValue (size_t *pVec, size_t size) |
| | Returns the max value. More...
|
| |
| static void | print (std::ostream &stream, size_t *pVec, size_t dims) |
| | Prints the values in the vector separated by ", ". More...
|
| |
| static GDomNode * | serialize (GDom *pDoc, const size_t *pVec, size_t dims) |
| | Write the vector to a text format. More...
|
| |
| static void | setAll (size_t *pVec, size_t value, size_t size) |
| | Sets all elements to the specified value. More...
|
| |
| static void | shuffle (size_t *pVec, size_t size, GRand *pRand) |
| | Shuffles the vector of ints. More...
|
| |
Useful functions for operating on vectors of indexes.