Amesos2 - Direct Sparse Solver Interfaces  Version of the Day
basker.hpp
1 // @HEADER
2 // *****************************************************************************
3 // Basker: A Direct Linear Solver package
4 //
5 // Copyright 2011 NTESS and the Basker contributors.
6 // SPDX-License-Identifier: LGPL-2.1-or-later
7 // *****************************************************************************
8 // @HEADER
9 
10 
11 #ifndef BASKER_HPP
12 #define BASKER_HPP
13 
14 #include "basker_types.hpp"
15 #include "basker_decl.hpp"
16 #include "basker_def.hpp"
17 
18 /*
19 #ifdef MATLAB_MEX_FILE
20 #include "matrix.h"
21 #include "mex.h"
22 
23 #define BASKERASSERT(a) mxAssert(a,"")
24 #define BASKERREALLOC(ptr,size) mxRealloc(ptr, size)
25 #define BASKERCALLOC(num, size) mxCalloc(num, size)
26 #define BASKERFREE(ptr)
27 
28 #else
29 #include <cassert>
30 #include <cstdlib>
31 
32 #define BASKERASSERT(a) assert(a)
33 #define BASKERREALLOC(ptr, size) realloc(ptr, size)
34 #define BASKERCALLOC(num, size) calloc(num,size)
35 #define BASKERFREE(ptr) free(ptr)
36 
37 #endif
38 */
39 
40 #endif