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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2742 - (show annotations)
Thu Nov 12 06:03:37 2009 UTC (10 years, 1 month ago) by jfenwick
File MIME type: text/plain
File size: 789 byte(s)
Merging changes from the lapack branch.

The inverse() operation has been moved into c++. [No lazy support for this operation yet.]
Optional Lapack support has been added for matrices larger than 3x3. 
service0 is set to use mkl_lapack.



1
2 /*******************************************************
3 *
4 * Copyright (c) 2009 by University of Queensland
5 * Earth Systems Science Computational Center (ESSCC)
6 * http://www.uq.edu.au/esscc
7 *
8 * Primary Business: Queensland, Australia
9 * Licensed under the Open Software License version 3.0
10 * http://www.opensource.org/licenses/osl-3.0.php
11 *
12 *******************************************************/
13
14 #ifndef LAPACKINVERSEHELPER_H
15 #define LAPACKINVERSEHELPER_H
16
17 namespace escript
18 {
19
20 /**
21 Stores the memory required by different lapack implementations for matrix inverse
22 */
23 class LapackInverseHelper
24 {
25 public:
26 LapackInverseHelper(int N);
27 ~LapackInverseHelper();
28 int invert(double* matrix);
29 private:
30 int* piv;
31 double* work;
32 int N;
33 int lwork;
34 };
35
36 } // end of escript namespace
37
38 #endif

  ViewVC Help
Powered by ViewVC 1.1.26