Re: [Pdl-general] How do you create a set of cdouble matrices from (real, imag) values?

2022-07-06 Thread Ed .
For this I would urge the use of “transpose” to be ultra-clear about the intention; “mv(0,-1)” would not achieve the desired effect if there were >2 dimensions! Eric, great work on getting something working! I’d recommend you put it on CPAN (with suitable tests and test data, obviously) as

Re: [Pdl-general] How do you create a set of cdouble matrices from (real, imag) values?

2022-07-06 Thread Luis Mochán
Hi Eric On July 5, 2022 11:19:58 PM CDT, Eric Wheeler wrote: >On Fri, 1 Jul 2022, Luis Mochan wrote: >> ... >> my $Sm=$S->mv(0,-1) # position, filerow >> ->reshape(2,2, $rows); # column, row, filerow > >Can you explain what $S->mv(0,-1) does with respect to the -1 value? The >pdl docs

Re: [Pdl-general] How do you create a set of cdouble matrices from (real, imag) values?

2022-07-06 Thread Luis Mochán
By the way, I understand that the current PDL uses the total number of processors as a default for set_autopthread_targ. Is this a good default? The documentation says that the gain after 4 pthreads is not much, and using more could be counterproductive. For example: No threads: $ perl