MCPcopy Create free account
hub / github.com/apache/singa / Shuffle

Function Shuffle

test/gtest/gtest-all.cc:733–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731// Performs an in-place shuffle of the vector's elements.
732template <typename E>
733inline void Shuffle(internal::Random* random, std::vector<E>* v) {
734 ShuffleRange(random, 0, static_cast<int>(v->size()), v);
735}
736
737// A function for deleting an object. Handy for being used as a
738// functor.

Callers 1

ShuffleTestsMethod · 0.85

Calls 2

ShuffleRangeFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected