1 package Math
::GSL
::CBLAS
::Test
;
2 use base
q{Test::Class};
4 use Math
::GSL
::CBLAS qw
/:all/;
5 use Math
::GSL qw
/:all/;
7 use Math
::GSL
::Errno qw
/:all/;
10 sub make_fixture
: Test
(setup
) {
13 sub teardown
: Test
(teardown
) {
16 #sub TEST_CBLAS : Tests {
18 # my $A = [ 0.11, 0.12, 0.13,
22 # my $B = [ 1011, 1012,
28 # my $C = [0.00, 0.00,
33 # # C = [ 367.76 368.12 ]
35 # local $TODO = "need typemap for float const *";
36 # cblas_sgemm ($CblasRowMajor,
37 # $CblasNoTrans, $CblasNoTrans, 2, 2, 3,
38 # 1.0, $A, $lda, $B, $ldb, 0.0, $C, $ldc);
39 # print Dumper [ $C ];
42 sub CBLAS_IDAMAX
: Tests
{
48 $k = cblas_idamax
($N, $X, $incX);
52 sub CBLAS_ISAMAX
: Tests
{
57 my $k = cblas_isamax
($N, $X, $incX);
61 sub CBLAS_SASUM
: Tests
{
66 my $f = cblas_sasum
($N, $X, $incX);
71 sub CBLAS_DASUM
: Tests
{
76 my $f = cblas_dasum
($N, $X, $incX);