Re: retain dimensions for numpy slice

2016-10-24 Thread duncan smith
On 24/10/16 19:05, Peter Otten wrote: > duncan smith wrote: > >> Hello, >> I have several arrays that I need to combine elementwise in >> various fashions. They are basically probability tables and there is a >> mapping of axes to variables. I have code for transposing and reshaping >> that

Re: retain dimensions for numpy slice

2016-10-24 Thread Peter Otten
duncan smith wrote: > Hello, > I have several arrays that I need to combine elementwise in > various fashions. They are basically probability tables and there is a > mapping of axes to variables. I have code for transposing and reshaping > that aligns the variables / axes so the usual

retain dimensions for numpy slice

2016-10-24 Thread duncan smith
Hello, I have several arrays that I need to combine elementwise in various fashions. They are basically probability tables and there is a mapping of axes to variables. I have code for transposing and reshaping that aligns the variables / axes so the usual broadcasting rules achieve the