NAME

$package_name - N-Dimension Array of $type

SYNOPSYS

my \$ndarray = $package_name->new;
my \$dim1 = 3;
my \$dim2 = 4;
my \$length = \$dim1 * \$dim2;
\$ndarray->{base} = new ${type}[\$length];
\$ndarray->{length} = \$length;
\$ndarray->{shape} = [\$dim1, \$dim2];

DESCRIPTION

$package_name is N-Dimension Array of $type.

See SPVM::NDArray::Document about Details of N-Dimension Array. EOS

my $perl_module_file = "lib/SPVM/NDArray/"  . ucfirst($type) . ".pm";
open my $perl_module_fh, '>', $perl_module_file
  or die "Can't open $perl_module_file: $!";
print $perl_module_fh $perl_module_content;

}