Amesos2 - Direct Sparse Solver Interfaces  Version of the Day
basker.hpp
1 // @HEADER
2 // ***********************************************************************
3 //
4 // Basker: A Direct Linear Solver package
5 // Copyright 2011 Sandia Corporation
6 //
7 // Under terms of Contract DE-AC04-94AL85000, with Sandia Corporation, the
8 // U.S. Government retains certain rights in this software.
9 //
10 // This library is free software; you can redistribute it and/or modify
11 // it under the terms of the GNU Lesser General Public License as
12 // published by the Free Software Foundation; either version 2.1 of the
13 // License, or (at your option) any later version.
14 //
15 // This library is distributed in the hope that it will be useful, but
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 // Lesser General Public License for more details.
19 //
20 // You should have received a copy of the GNU Lesser General Public
21 // License along with this library; if not, write to the Free Software
22 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23 // USA
24 // Questions? Contact Mike A. Heroux (maherou@sandia.gov)
25 //
26 // ***********************************************************************
27 // @HEADER
28 
29 
30 #ifndef BASKER_HPP
31 #define BASKER_HPP
32 
33 #include "basker_types.hpp"
34 #include "basker_decl.hpp"
35 #include "basker_def.hpp"
36 
37 /*
38 #ifdef MATLAB_MEX_FILE
39 #include "matrix.h"
40 #include "mex.h"
41 
42 #define BASKERASSERT(a) mxAssert(a,"")
43 #define BASKERREALLOC(ptr,size) mxRealloc(ptr, size)
44 #define BASKERCALLOC(num, size) mxCalloc(num, size)
45 #define BASKERFREE(ptr)
46 
47 #else
48 #include <cassert>
49 #include <cstdlib>
50 
51 #define BASKERASSERT(a) assert(a)
52 #define BASKERREALLOC(ptr, size) realloc(ptr, size)
53 #define BASKERCALLOC(num, size) calloc(num,size)
54 #define BASKERFREE(ptr) free(ptr)
55 
56 #endif
57 */
58 
59 #endif