| 1 | # [[[ HEADER ]]] | ||
| 2 | package # hide from PAUSE indexing | ||
| 3 | perlgsl; ## no critic qw(Capitalization ProhibitMultiplePackages ProhibitReusedNames) # SYSTEM DEFAULT 3: allow multiple & lower case package names | ||
| 4 | use strict; | ||
| 5 | use warnings; | ||
| 6 | our $VERSION = 0.001_000; | ||
| 7 | |||
| 8 | # [[[ INCLUDES ]]] | ||
| 9 | use Perl::Structure::GSLMatrix; | ||
| 10 | #use RPerl::Operation::Expression::Operator::GSLFunctions; # NEED DELETE, RPERL REFACTOR | ||
| 11 | use Math::GSL::Matrix qw(:all); | ||
| 12 | # DEV NOTE: only import CBLAS global variables which may be needed by normal BLAS routines | ||
| 13 | use Math::GSL::CBLAS qw( | ||
| 14 | $CblasRowMajor | ||
| 15 | $CblasColMajor | ||
| 16 | $CblasNoTrans | ||
| 17 | $CblasTrans | ||
| 18 | $CblasConjTrans | ||
| 19 | $CblasUpper | ||
| 20 | $CblasLower | ||
| 21 | $CblasNonUnit | ||
| 22 | $CblasUnit | ||
| 23 | $CblasLeft | ||
| 24 | $CblasRight | ||
| 25 | ); | ||
| 26 | use Math::GSL::BLAS qw(:all); | ||
| 27 | |||
| 28 | # [[[ EXPORTS ]]] | ||
| 29 | use Exporter qw(import); | ||
| 30 | our @EXPORT = ( | ||
| 31 | @Perl::Structure::GSLMatrix::EXPORT, | ||
| 32 | # @RPerl::Operation::Expression::Operator::GSLFunctions::EXPORT, # NEED DELETE, RPERL REFACTOR | ||
| 33 | @Math::GSL::Matrix::EXPORT, | ||
| 34 | @Math::GSL::Matrix::EXPORT_OK, # DEV NOTE: force export all allowed exports gsl_matrix_*(), so RPerl users only have to say 'use perlgsl;' w/out the 'qw(:all)' | ||
| 35 | # DEV NOTE: only import CBLAS global variables which may be needed by normal BLAS routines | ||
| 36 | qw( | ||
| 37 | $CblasRowMajor | ||
| 38 | $CblasColMajor | ||
| 39 | $CblasNoTrans | ||
| 40 | $CblasTrans | ||
| 41 | $CblasConjTrans | ||
| 42 | $CblasUpper | ||
| 43 | $CblasLower | ||
| 44 | $CblasNonUnit | ||
| 45 | $CblasUnit | ||
| 46 | $CblasLeft | ||
| 47 | $CblasRight | ||
| 48 | ), | ||
| 49 | @Math::GSL::BLAS::EXPORT, | ||
| 50 | @Math::GSL::BLAS::EXPORT_OK, # DEV NOTE: force export all allowed exports gsl_blas_*(), so RPerl users only have to say 'use perlgsl;' w/out the 'qw(:all)' | ||
| 51 | ); | ||
| 52 | our @EXPORT_OK = ( | ||
| 53 | @Perl::Structure::GSLMatrix::EXPORT_OK, | ||
| 54 | # @RPerl::Operation::Expression::Operator::GSLFunctions::EXPORT_OK, # NEED DELETE, RPERL REFACTOR | ||
| 55 | @Math::GSL::Matrix::EXPORT_OK, | ||
| 56 | @Math::GSL::CBLAS::EXPORT_OK, | ||
| 57 | @Math::GSL::BLAS::EXPORT_OK, | ||
| 58 | ); | ||
| 59 | |||
| 60 | # DEV NOTE: must hard-code type-checking here because RPerl::Exporter doesn't handle this type of thing just yet | ||
| 61 | *perltypes::gsl_matrix_CHECK = \&Perl::Structure::GSLMatrix::gsl_matrix_CHECK; | ||
| 62 | *perltypes::gsl_matrix_CHECKTRACE = \&Perl::Structure::GSLMatrix::gsl_matrix_CHECKTRACE; | ||
| 63 | |||
| 64 | 1; # end of package |