The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
%module{SOOT};

class TArrayD {
  TArrayD(AV* array)
    %code{%
      size_t len;
      Double_t* ary = SOOT::AVToFloatVec<Double_t>(aTHX_ array, len);
      RETVAL = new TArrayD(len, ary);
      free(ary);
    %};
  TArrayDoubleArray GetArray();
};