MCPcopy Create free account
hub / github.com/ImageEngine/cortex / sort

Method sort

src/IECorePython/RadixSortBinding.cpp:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49{
50 template<typename T>
51 UIntVectorDataPtr sort( typename TypedData< std::vector<T> >::ConstPtr input )
52 {
53 const std::vector<unsigned int> &indices = this->operator()( input->readable() );
54
55 UIntVectorDataPtr result = new UIntVectorData();
56 result->writable().assign( indices.begin(), indices.end() );
57
58 return result;
59 }
60};
61
62void bindRadixSort()

Callers 8

doOperationMethod · 0.80
classNamesMethod · 0.80
removeMatchingMethod · 0.80
testFloatMethod · 0.80
testIntMethod · 0.80
testUIntMethod · 0.80

Calls 5

readableMethod · 0.80
operator()Method · 0.45
writableMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 3

testFloatMethod · 0.64
testIntMethod · 0.64
testUIntMethod · 0.64