/[escript]/trunk/escript/src/LapackInverseHelper.h
ViewVC logotype

Contents of /trunk/escript/src/LapackInverseHelper.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4369 - (show annotations)
Fri Apr 19 02:32:34 2013 UTC (5 years, 9 months ago) by jfenwick
File MIME type: text/plain
File size: 915 byte(s)
fix problems revealed on freebsd
1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2009-2013 by University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Open Software License version 3.0
9 * http://www.opensource.org/licenses/osl-3.0.php
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development since 2012 by School of Earth Sciences
13 *
14 *****************************************************************************/
15
16 #ifndef LAPACKINVERSEHELPER_H
17 #define LAPACKINVERSEHELPER_H
18
19 namespace escript
20 {
21
22 /**
23 Stores the memory required by different lapack implementations for matrix inverse
24 */
25 class LapackInverseHelper
26 {
27 public:
28 LapackInverseHelper(int N);
29 ~LapackInverseHelper();
30 int invert(double* matrix);
31 private:
32 int* piv;
33 double* work;
34 int N;
35 int lwork;
36 };
37
38 } // end of escript namespace
39
40 #endif
41

  ViewVC Help
Powered by ViewVC 1.1.26