docstr: ...Test sort in absolute value method of arrays which keep track of
  index
docstr_tok: ["...","Test","sort","in","absolute","value","method","of","arrays","which","keep","track","of","index"]
code: def test_sort_abs_track_index(self):
      """...Test sort in absolute value method of arrays which keep track of
      index
      """
      a = np.array(
          [
              -0.45,
              -0.58,
              -1.31,
              -0.89,
              0.31,
              -1.29,
              1.77,
              -0.39,
              -1.2,
              -0.86,
          ]
      )
      sorted_index = np.array([4, 7, 0, 1, 9, 3, 8, 5, 2, 6])
      sorted_a = np.array(
          [
              0.31,
              -0.39,
              -0.45,
              -0.58,
              -0.86,
              -0.89,
              -1.2,
              -1.29,
              -1.31,
              1.77,
          ]
      )
      decreasing_sorted_index = sorted_index[::-1]
      decreasing_sorted_a = sorted_a[::-1]
  
      index = np.empty_like(a, dtype=np.uint64)
      test_a = a.copy()
      test.test_sort_abs_index_inplace_ArrayDouble(test_a, index, True)
      np.testing.assert_equal(test_a, sorted_a)
      np.testing.assert_equal(index, sorted_index)
  
      test_a = a.copy()
      test.test_sort_abs_index_inplace_ArrayDouble(test_a, index, False)
      np.testing.assert_equal(test_a, decreasing_sorted_a)
      np.testing.assert_equal(index, decreasing_sorted_index)
  
imports: import unittest
  import numpy
  from numpy.linalg import norm
  from tick.array_test.build import array_test
  from scipy.sparse import csr_matrix
  import itertools
label_desc: Use image node_id 38 for calling the Test obj's underlying member method code with example usage: obj.test_sort_abs_track_index() without return types