pdl
pdl copied to clipboard
rldvec generates erroneous output size when $c provided as null
rldvec allocates a null output ndarray and calculates the decoded size only in case $c is not defined. With $c given as null, it uses null's dim(1) as the output size, which is almost always wrong. $c should be initialized to null if not defined and the target size should be calculated if $c is null.