Esempio n. 1
0
 def query(self, x):
     idx = rs.get_int_p_v()
     res = rs.get_int_v()
     self.simple_index_areatime.query(x.data(), x.size(), idx, res)
     n = rs.get_int(res)
     a = intpp2array(idx, n)
     return a
Esempio n. 2
0
 def query_with_uids(self, x, uids):
     idx = rs.get_int_pp()
     res = rs.get_int_p()
     self.simple_index_areatime.query_with_uids(x.data(), x.size(),
                                                uids.data(), uids.size(),
                                                idx, res)
     n = rs.get_int(res)
     a = intpp2array(idx, n)
     return a
Esempio n. 3
0
 def query_with_uids(self, x, uids):
     s = uids.shape[0]
     idx = rs.get_int_p_v()
     res = rs.get_int_v()
     self.simple_index_areatime.query_with_uids(x.data(), x.size(),
                                                rs.swig_ptr(uids), s, idx,
                                                res)
     n = rs.get_int(res)
     a = intpp2array(idx, n)
     return a
Esempio n. 4
0
 def query(self, x):
     idx = rs.get_int_pp()
     #print('t1', idx)
     res = rs.get_int_p()
     #print('t2', res)
     self.simple_index_areatime.query(x.data(), x.size(), idx, res)
     #print('t3')
     n = rs.get_int(res)
     #print('t4', n)
     a = intpp2array(idx, n)
     #print('t5')
     return a