Re: [Pdl-general] PDL and bart

2024-05-16 Thread Ingo Schmid via pdl-general
values. Ingo On 16.05.24 12:00 PM, Ingo Schmid via pdl-general wrote: Dear David and Ed, I have hacked something together that uses FlexRaw, IPC::Cmd, and File::Temp to write and read files. I am ironing it out and will release it later today, I guess. As already found out, it is written in C

Re: [Pdl-general] PDL and bart

2024-05-16 Thread Ingo Schmid via pdl-general
or significantly reduces that friction. The PDL-based calculations would return an object that is in a PDL sub-class of the original which, if fed into a pure-bart method, would know how to create a temp-file version of itself. Is that helpful? David On Wed, May 15, 2024, 9:05 AM Ingo Schmid

[Pdl-general] PDL and bart

2024-05-15 Thread Ingo Schmid via pdl-general
Hi, I both use PDL and recently started using bart (https://mrirecon.github.io/bart/). Documentation is somewhere between non-existent and horribly insufficient, before you ask. It has implementations of MRI reconstruction algorithms and its file format is complex float, very very similar to

Re: [Pdl-general] [Pdl-devel] naming conventions

2024-02-07 Thread Ingo Schmid via pdl-general
Hi, I guess this is a NiceSlice thing, this one works in the pdl shell: $f=sub{$_[0]**2}; ... Ingo On 07.02.24 01:14, Luis Mochan wrote: On Tue, Jan 30, 2024 at 09:40:59PM -0600, Luis Mochan wrote: ...> On Mon, Jan 29, 2024 at 10:19:56PM -0500, David Mertens wrote: Hello Luis, Ever

Re: [Pdl-general] Check for all element eq 0

2023-12-22 Thread Ingo Schmid via pdl-general
Hi I think it works as expected. What you are testing is if all ($a) is 0, which is true, since one element in $a is 0. You have to be careful with brackets. pdl> print all($a)==0;  # all returns 0 since the last value in $a == 0. 1 pdl> print all($a==0); # all returns 0 because only one $a