Sha256: 4c38a0dda79d1508bff4e2748560136db1bfd2be47b13d0712ab9d978c29bc5d

Contents?: true

Size: 1.44 KB

Versions: 4

Compression:

Stored size: 1.44 KB

Contents

#define lapack_complex_float scomplex
#define lapack_complex_double dcomplex
#include "lapacke.h"
#include "lapacke_t.h"
#include "../numo_linalg.h"

typedef int blasint;

#define option_value numo_lapacke_option_value
extern int numo_lapacke_option_value(VALUE value, VALUE default_value);

#define option_order numo_lapacke_option_order
extern int numo_lapacke_option_order(VALUE order);

#define option_job numo_lapacke_option_job
extern char numo_lapacke_option_job(VALUE job, char true_char, char false_char);

#define option_trans numo_lapacke_option_trans
extern char numo_lapacke_option_trans(VALUE trans);

#define option_uplo numo_lapacke_option_uplo
extern char numo_lapacke_option_uplo(VALUE uplo);

#define option_diag numo_lapacke_option_diag
extern char numo_lapacke_option_diag(VALUE diag);

#define option_side numo_lapacke_option_side
extern char numo_lapacke_option_side(VALUE side);

#define check_func numo_lapacke_check_func
extern void numo_lapacke_check_func(void **func, const char *name);

#define CHECK_ERROR(info)                                           \
    { if ((info)<0) {                                               \
            rb_raise(eLapackError,"LAPACK error, info=%d",(info)); \
        }}

#define SWAP_IFCOL(order,a,b)                                           \
    { if ((order)==LAPACK_COL_MAJOR) {tmp=(a);(a)=(b);(b)=tmp;} }

#define CHECK_FUNC(fptr, fname) \
    { if ((fptr)==0) { check_func((void*)(&(fptr)),fname); } }

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
numo-linalg-0.1.2 ext/numo/linalg/lapack/numo_lapack.h
numo-linalg-0.1.1 ext/numo/linalg/lapack/numo_lapack.h
numo-linalg-0.1.0 ext/numo/linalg/lapack/numo_lapack.h
numo-linalg-0.0.1 ext/numo/linalg/lapack/numo_lapack.h