ajdmom.poly.kv

ajdmom.poly.kv(i, key)[source]

get key[i] where key is a tuple

Parameters:
  • i (int) – index of key or -1 for not having the element.

  • key (tuple) – tuple as a key for Poly.

Returns:

key[i] if i in range(len(k)), otherwise 0.

Return type:

int