Commit 351b43a3 authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Collect type definitions under type header

parent de690d2a
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -13,17 +13,6 @@
#include "../include/types.h"
#endif

#ifdef USE_LAPACK
#ifdef USE_MKL
#include <mkl_lapacke.h>
#else
#include <lapacke.h>
#endif
#ifndef INCLUDE_LAPACK_CALLS_H_
#include "../include/lapack_calls.h"
#endif
#endif

#ifndef INCLUDE_ERRORS_H_
#include "../include/errors.h"
#endif
+0 −14
Original line number Diff line number Diff line
@@ -12,23 +12,9 @@
 * legacy serial function implementation is used as a fall-back.
 */

#ifdef USE_LAPACK
#ifdef USE_MKL
#include <mkl_lapacke.h>
#else
#include <lapacke.h>
#endif
#else
#define lapack_int int64_t
#endif

#ifndef INCLUDE_ALGEBRAIC_H_
#define INCLUDE_ALGEBRAIC_H_

#ifndef np_int
#define np_int lapack_int
#endif

/*! \brief Perform in-place matrix inversion.
 *
 * \param mat: `complex double **` The matrix to be inverted (must be a square matrix).
+0 −8
Original line number Diff line number Diff line
@@ -17,14 +17,6 @@
#ifndef INCLUDE_CLU_SUBS_H_
#define INCLUDE_CLU_SUBS_H_

#ifndef np_int
#ifndef lapack_int
#define np_int int64_t
#else
#define np_int lapack_int
#endif
#endif

/*! \brief Compute the asymmetry-corrected scattering cross-section of a cluster.
 *
 * This function computes the product between the geometrical asymmetry parameter and
+16 −0
Original line number Diff line number Diff line
@@ -12,6 +12,22 @@

typedef __complex__ double dcomplex;

#ifdef USE_LAPACK
#ifdef USE_MKL
#include <mkl_lapacke.h>
#else
#include <lapacke.h>
#endif
#endif

#ifndef np_int
#ifdef lapack_int
#define np_int lapack_int
#else
#define np_int int64_t
#endif
#endif

/*! \brief Get the real part of a complex number.
 *
 * \param z: `complex double` The argument of the function.
+0 −5
Original line number Diff line number Diff line
@@ -9,11 +9,6 @@
#endif

#ifdef USE_LAPACK
#ifdef USE_MKL
#include <mkl_lapacke.h>
#else
#include <lapacke.h>
#endif
#ifndef INCLUDE_LAPACK_CALLS_H_
#include "../include/lapack_calls.h"
#endif