bte.utils.indexs#
Module Contents#
Classes#
Functions#
|
|
|
get_index_table return two dictionary. |
|
get_index_len |
|
|
|
Attributes#
- bte.utils.indexs.get_index_table(M, dim=3)[source]#
get_index_table return two dictionary. The first is (int,int,…)->int The second is int->(int,int,…)
- Parameters:
M (int) – order
dim (int, optional) – dimension. Defaults to 3.
- Returns:
indexNto1dict, index1toNdict
- bte.utils.indexs.get_index_len(M, dim=3)[source]#
get_index_len
- Parameters:
M (int) – order.
dim (int, optional) – dimension. Defaults to 3.
- Returns:
(M+dim)*(M+dim-1)*…(M+1)/(dim!)
- Return type:
int
- bte.utils.indexs.get_change_index(indt, index_base, index_tuple_add)[source]#
- Parameters:
indt (index_table) –
index_base (List[int]) –
- bte.utils.indexs.get_change_index_projection(indt, index_base, index_tuple_add)[source]#
- Parameters:
indt (index_table) –
index_base (List[int]) –
- class bte.utils.indexs.index_table_expand(M, dim=3)[source]#
Bases:
index_table- Parameters:
M (int) –
dim (int) –