pyleecan.Functions.make_ndarray_equal module

make_ndarray_equal(vec_ref, vec_to_sort)[source]

Compare two ndarray, sort the second to match with the first one.

Parameters:
  • vec_ref (ndarray) – reference vector

  • vec_to_sort (ndarray) – vector to sort

Returns:

  • Isort (ndarray) – Vector of indice to sort the vec_to_sort

  • vec (ndarray) – Sorted vector