Sha256: 431fddc28a513854eb2c68fc453123f48b187e4d49b8f9811fcd66a8d16e3df2

Contents?: true

Size: 1010 Bytes

Versions: 9

Compression:

Stored size: 1010 Bytes

Contents

#ifndef SCS_BLAS_H_GUARD
#define SCS_BLAS_H_GUARD

#ifdef USE_LAPACK

#ifdef __cplusplus
extern "C" {
#endif

/* Default to underscore for blas / lapack */
#ifndef BLASSUFFIX
#define BLASSUFFIX _
#endif

/* annoying hack because some preprocessors can't handle empty macros */
#if defined(NOBLASSUFFIX) && NOBLASSUFFIX > 0
/* single or double precision */
#ifndef SFLOAT
#define BLAS(x) d##x
#else
#define BLAS(x) s##x
#endif
#else
/* this extra indirection is needed for BLASSUFFIX to work correctly as a
 * variable */
#define stitch_(pre, x, post) pre##x##post
#define stitch__(pre, x, post) stitch_(pre, x, post)
/* single or double precision */
#ifndef SFLOAT
#define BLAS(x) stitch__(d, x, BLASSUFFIX)
#else
#define BLAS(x) stitch__(s, x, BLASSUFFIX)
#endif
#endif

#ifdef MATLAB_MEX_FILE
typedef ptrdiff_t blas_int;
#elif defined BLAS64
#include <stdint.h>
typedef int64_t blas_int;
#else
typedef int blas_int;
#endif

#ifdef __cplusplus
}
#endif

#endif /* USE_LAPACK */

#endif /* SCS_BLAS_H_GUARD */

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
scs-0.4.1 vendor/scs/include/scs_blas.h
scs-0.4.0 vendor/scs/include/scs_blas.h
scs-0.3.2 vendor/scs/include/scs_blas.h
scs-0.3.1 vendor/scs/include/scs_blas.h
scs-0.3.0 vendor/scs/include/scs_blas.h
scs-0.2.3 vendor/scs/include/scs_blas.h
scs-0.2.2 vendor/scs/include/scs_blas.h
scs-0.2.1 vendor/scs/include/scs_blas.h
scs-0.2.0 vendor/scs/include/scs_blas.h