Package pypower :: Module get_reorder
[hide private]
[frames] | no frames]

Module get_reorder

source code

Indexes a matrix dimension.

Functions [hide private]
 
get_reorder(A, idx, dim=0)
Returns A with one of its dimensions indexed:
source code
Variables [hide private]
  __package__ = 'pypower'
Function Details [hide private]

get_reorder(A, idx, dim=0)

source code 

Returns A with one of its dimensions indexed:

   B = get_reorder(A, idx, dim)

Returns A[:, ..., :, idx, :, ..., :], where dim determines in which dimension to place the idx.

Authors:
Ray Zimmerman (PSERC Cornell), Richard Lincoln