← Back to context

Comment by nis251413

11 hours ago

That's nice, but only works, as I understand it, if you use numpy-only functions, which means that you should not use those who denote also base-pythonic, eg +,* etc operations, because then they are interpreted differently. Eg `A + x` gives

    [[1, 2], [3, 4], [5], [6]] 

instead of

    array([[ 6,  7],[ 9, 10]])

You have to keep track of the context there to know what you can do and what not I guess, which is not ideal.