March 2003
Intermediate to advanced
656 pages
39h 30m
English
take
take(a,indices,axis=0)
Returns an array t with the same type code
and rank as a, containing the subset of
a’s elements that would
be in a slice along axis comprising the
given indices. For example, after
t
=take(
a
,(1,3)),
t
.shape==(2,)+
a
.shape[1:],
and t’s elements are
those in the second and fourth rows of a.