PDLPorters / PDLPorters/pdl

Maybe allow broadcasting across ragged-sized entities

Open
#418 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Perl
Stars
105
Forks
49
PR merge metrics
No merged PRs in 30d

Description

It might be of interest to allow this (see https://en.wikipedia.org/wiki/Jagged_array) generally, since non-rectangular data can be a "thing". Also it might simplify PDL::Graphics::PLplot since that now uses Iliffe vectors internally with its plAlloc2dGrid et al. That would mean loop() would need to be aware, and $SIZE(n) would vary.

There would need to be some additional structure to store the length of each sub-entry, since the point of this is to allow that to vary (though it wouldn't for the rectangular data used by PLplot).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining how loop() and $SIZE(n) currently handle rectangular entities, then review PDL::Graphics::PLplot and its use of plAlloc2dGrid. Define the additional structure needed to retain each sub-entry's length and specify how broadcasting and iteration should behave for ragged data; completion requires an agreed design and corresponding behavior for both ragged and rectangular inputs.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.