Skip to content

flex_indexing module

Classes and functions for flexible indexing.


flex_choose_i_1d_nb function

flex_choose_i_1d_nb(
    arr,
    i
)

Choose a position in an array as if it has been broadcast against rows or columns.

Note

Array must be one-dimensional.


flex_choose_i_and_col_nb function

flex_choose_i_and_col_nb(
    arr,
    i,
    col,
    rotate_rows=False,
    rotate_cols=False
)

Choose a position in an array as if it has been broadcast rows and columns.

Can use rotational indexing along rows and columns.

Note

Array must be two-dimensional.


flex_choose_i_pc_1d_nb function

flex_choose_i_pc_1d_nb(
    arr,
    col,
    rotate_cols=False
)

Choose a position in an array as if it has been broadcast against columns.

Can use rotational indexing along columns.

Note

Array must be one-dimensional.


flex_choose_i_pc_nb function

flex_choose_i_pc_nb(
    arr,
    col,
    rotate_cols=False
)

Choose a position in an array as if it has been broadcast against columns.

Can use rotational indexing along columns.

Note

Array must be two-dimensional.


flex_choose_i_pr_1d_nb function

flex_choose_i_pr_1d_nb(
    arr,
    i,
    rotate_rows=False
)

Choose a position in an array as if it has been broadcast against rows.

Can use rotational indexing along rows.

Note

Array must be one-dimensional.


flex_choose_i_pr_nb function

flex_choose_i_pr_nb(
    arr,
    i,
    rotate_rows=False
)

Choose a position in an array as if it has been broadcast against rows.

Can use rotational indexing along rows.

Note

Array must be two-dimensional.


flex_select_1d_nb function

flex_select_1d_nb(
    arr,
    i
)

Select an element of an array as if it has been broadcast against rows or columns.

Note

Array must be one-dimensional.


flex_select_1d_pc_nb function

flex_select_1d_pc_nb(
    arr,
    col,
    rotate_cols=False
)

Select an element of an array as if it has been broadcast against columns.

Can use rotational indexing along columns.

Note

Array must be one-dimensional.


flex_select_1d_pr_nb function

flex_select_1d_pr_nb(
    arr,
    i,
    rotate_rows=False
)

Select an element of an array as if it has been broadcast against rows.

Can use rotational indexing along rows.

Note

Array must be one-dimensional.


flex_select_2d_col_nb function

flex_select_2d_col_nb(
    arr,
    col,
    rotate_cols=False
)

Select a column from a flexible 2-dim array. Returns a 2-dim array.

Note

Array must be two-dimensional.


flex_select_2d_row_nb function

flex_select_2d_row_nb(
    arr,
    i,
    rotate_rows=False
)

Select a row from a flexible 2-dim array. Returns a 2-dim array.

Note

Array must be two-dimensional.


flex_select_col_nb function

flex_select_col_nb(
    arr,
    col,
    rotate_cols=False
)

Select a column from a flexible 2-dim array. Returns a 1-dim array.

Note

Array must be two-dimensional.


flex_select_nb function

flex_select_nb(
    arr,
    i,
    col,
    rotate_rows=False,
    rotate_cols=False
)

Select element of an array as if it has been broadcast rows and columns.

Can use rotational indexing along rows and columns.

Note

Array must be two-dimensional.


flex_select_row_nb function

flex_select_row_nb(
    arr,
    i,
    rotate_rows=False
)

Select a row from a flexible 2-dim array. Returns a 1-dim array.

Note

Array must be two-dimensional.