Indexing Routines

The following tables show indexing routines provided by NLCPy.

Generating Index Arrays

nlcpy.nonzero

Returns the indices of the elements that are non-zero.

nlcpy.where

Returns elements chosen from x or y depending on condition.

Indexing-like Operations

nlcpy.diag

Extracts a diagonal or constructs a diagonal array.

nlcpy.diagonal

Returns specified diagonals.

nlcpy.take

Takes elements from an array along an axis.