ufuncs, iterators

2005-08-20 Thread S V N Vishwanathan
Hi! Barry After sleeping on it, it may be ok to include these methods in Barry Mat as methods for filling up matrices so long as in the end Barry you end up with a Mat that you then use as an operator. Yes that sounds like a good test to me. If the end result of the computation is a matrix which

ufuncs, iterators

2005-08-20 Thread S V N Vishwanathan
Hi! Barry Certainly pointwise addition is the same as adding two operators Barry together (PETSc has this with MatAXPY), but what about, for example, Barry pointwise multiply? Pointwise multiply is the Hadamard product of two matrices matrix. You have something like MatGetRowMax which strictly

ufuncs, iterators

2005-08-20 Thread Matthew Knepley
Simon Burton simon at arrowtheory.com writes: Oh, that should probably read: exp( -1/2\sigma^{2} ||x1_{i} - x2_{j}||_{2}^{2}) And when we vectorize this operation: ||x1_i - x2_j||^2 = ||x1_i||^2 + ||x2_i||^2 + 2*(x1_i,x2_j) and the last term is the ip matrix. It seems that this

ufuncs, iterators

2005-08-20 Thread Barry Smith
I withdraw my concern for the (I thought) possible mislocation of the various operations on Matrices. So folks should feel free to begin to add them. Barry On Sat, 20 Aug 2005, S V N Vishwanathan wrote: Hi! Barry After sleeping on it, it may be ok to include these methods in Barry