Re: [Pdl-general] [Pdl-devel] replace very small numbers

2022-05-06 Thread Ed .
Hi Guillermo, Guillermo has also emailed me about this, about what I strongly suspect is a real bug in current meigen. I have just asked him, or hereby anyone else, to open a GitHub issue on P:LA with correct values for e.g. the left and right eigenvectors for the simple 2x2 matrix used in

Re: [Pdl-general] [Pdl-devel] replace very small numbers

2022-05-06 Thread Diab Jerius via pdl-general
his: $pdl->inplace->tol0($epsilon); # one operation Does that seem like a good idea, and/or the correct names for these? Best regards, Ed *From: *Ingo Schmid <mailto:ingo...@gmx.at> *Sent: *05 May 2022 16:30 *To: *pdl-general@lists.sourceforge.net *Subject: *Re: [Pdl-general]

Re: [Pdl-general] [Pdl-devel] replace very small numbers

2022-05-05 Thread Ingo Schmid
HI, Use the comparison operator to create a mask and multiply it onto your data. $gr= abs (grandom (5,5)) p $gr*($gr>0.1) [  [ 1.1689305  1.2499314 0.71939273  0 0.73171201]  [0.31795298  1.0656512 0.32072078 0.58750721 0.36339994]  [ 0  2.0256596  1.1261147  1.0729967 

Re: [Pdl-general] [Pdl-devel] replace very small numbers

2022-05-05 Thread Zakariyya Mughal
On 2022-05-05 at 10:57:53 -0300, Guillermo P. Ortiz wrote: > Hello, > somebody know if there are a quick way > to set all very small number to zero into a ndarray? Hello, If I understand correctly, I believe that you can achieve this using the `where` function