Fancy index and index tips

Using an index array index

 

 

 

Using Boolean array index

 

 

Using Boolean array index slicing process

 

 

 

 

 

 

ix_ () function

ix_Function can be used in different combinations of vectors, in order to obtain the results for each n-uplet. For example, to calculate all the triples obtained from each vector a, b and c are all a + b * c:

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/leon-joker/p/12637806.html