nums.core.array.selection module

class nums.core.array.selection.AdvancedSelection[source]

Bases: object

class nums.core.array.selection.AxisArray(array_like)[source]

Bases: nums.core.array.selection.AxisSelection

is_empty()[source]
order()[source]
selector()[source]
shape()[source]
class nums.core.array.selection.AxisEmpty[source]

Bases: nums.core.array.selection.AxisSelection

is_empty()[source]
order()[source]
selector()[source]
shape()[source]
class nums.core.array.selection.AxisIndex(index)[source]

Bases: nums.core.array.selection.AxisSelection

classmethod from_index(index, size)[source]
is_empty()[source]
order()[source]
selector()[source]
shape()[source]
to_index()[source]
class nums.core.array.selection.AxisSelection[source]

Bases: object

is_empty()[source]
order()[source]
selector()[source]
shape()[source]
class nums.core.array.selection.AxisSlice(start, stop, step)[source]

Bases: nums.core.array.selection.AxisSelection

classmethod from_size(size, s=None)[source]
is_empty()[source]
order()[source]
selector()[source]
shape()[source]
to_slice()[source]
class nums.core.array.selection.BasicSelection(axes, shape)[source]

Bases: object

basic_steps()[source]
classmethod block_selection(shape, block_shape, order=None, block_order=None)[source]
classmethod from_shape(shape)[source]
classmethod from_subscript(shape, subscript)[source]
get_broadcastable_block_shape(partial_block_shape)[source]
get_broadcastable_shape()[source]
get_output_shape(include_indexes=False)[source]
is_aligned(block_shape)[source]
is_empty()[source]
order()[source]
position(compute_stop=False)[source]
selector()[source]
class nums.core.array.selection.Position(value)[source]

Bases: object

bop(other, bop)[source]
classmethod from_dim(dim)[source]
classmethod from_selection(sel, compute_stop=False)[source]
nums.core.array.selection.get_array_order(array, axis=0)[source]
nums.core.array.selection.is_advanced_selection(subscript)[source]
nums.core.array.selection.neg_step_slice_to_range(n, start_bound, stop_bound)[source]
nums.core.array.selection.pos_step_slice_to_range(n, start_bound, stop_bound)[source]
nums.core.array.selection.slice_to_range(s, size)[source]
nums.core.array.selection.trim_slice_bounds(s, size)[source]