Re: [Numpy-discussion] LaTeX version of boolean indexing

2018-10-11 Thread Andras Deak
On Thu, Oct 11, 2018 at 7:45 PM Matthew Harrigan wrote: > > What do you mean by indicator? > I mostly meant what wikipedia seems to call "set-builder notation" (https://en.wikipedia.org/wiki/Set-builder_notation#Sets_defined_by_a_predicate). Since your "input" is `{x_i | i in [0,1,2]}` but your o

Re: [Numpy-discussion] LaTeX version of boolean indexing

2018-10-11 Thread Matthew Harrigan
My apologies, never write code directly in an email... s/b: mask = np.array([1, 0, 1], dtype=bool) What do you mean by indicator? On Thu, Oct 11, 2018 at 1:31 PM Andras Deak wrote: > On Thu, Oct 11, 2018 at 6:54 PM Matthew Harrigan > wrote: > > > > Hello, > > > > I am documenting some code, tr

Re: [Numpy-discussion] LaTeX version of boolean indexing

2018-10-11 Thread Andras Deak
On Thu, Oct 11, 2018 at 6:54 PM Matthew Harrigan wrote: > > Hello, > > I am documenting some code, translating the core of the algorithm to LaTeX. > The style I have currently is very similar to the einsum syntax (which is > awesome btw). Here is an example of some of the basic operations in N

[Numpy-discussion] LaTeX version of boolean indexing

2018-10-11 Thread Matthew Harrigan
Hello, I am documenting some code, translating the core of the algorithm to LaTeX. The style I have currently is very similar to the einsum syntax (which is awesome btw). Here is an example of some of the basic operations in