Classic/Adapter/PDL.pm untested

filter: Statementstmt 0.0% 0 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 34 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
from
2.0
BEGIN
2.0
CRAP 2.0
1 package Data::Dataset::Classic::Adapter::PDL;
2  
3 use strict;
4 use warnings;
5 use utf8;
6  
7 use Module::Load;
8  
9 our $VERSION = '0.001'; # VERSION
10  
11 # ABSTRACT: Adapter for PDL
12  
13 sub new {
14 my $class_name = shift();
15 return bless( {}, $class_name );
16 }
17  
18 sub from {
19 my $self = shift();
20 my $data = shift();
21  
22 Module::Load::autoload PDL;
23 my @keys = sort keys %$data;
24 my $pdl = pdl( [ @{$data}{@keys} ] );
25 return transpose $pdl;
26 }
27  
28 1;
29  
30 __END__