MCPcopy Create free account
hub / github.com/Kitware/VTK / SortArrayByComponent

Function SortArrayByComponent

Common/Core/vtkSortDataArray.h:118–121  ·  view source on GitHub ↗

* Sorts the given data array using the specified component as a key. * Think of the array as a 2-D grid with each tuple representing a row. * Tuples are swapped until the \a k-th column of the grid is * monotonically increasing. Where two tuples have the same value for * the \a k-th component, their order in the final result is unspecified. */

Source from the content-addressed store, hash-verified

116 * the \a k-th component, their order in the final result is unspecified.
117 */
118 static void SortArrayByComponent(vtkAbstractArray* arr, int k)
119 {
120 vtkSortDataArray::SortArrayByComponent(arr, k, 0);
121 }
122
123 /**
124 * Sorts the given data array using the specified component as a key.

Callers 2

InsertSetCellCopiesMethod · 0.85
TestSortDataArrayFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestSortDataArrayFunction · 0.68