SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LinAlg.h
Go to the documentation of this file.
1 /*
2  For more information, please see: http://software.sci.utah.edu
3 
4  The MIT License
5 
6  Copyright (c) 2009 Scientific Computing and Imaging Institute,
7  University of Utah.
8 
9 
10  Permission is hereby granted, free of charge, to any person obtaining a
11  copy of this software and associated documentation files (the "Software"),
12  to deal in the Software without restriction, including without limitation
13  the rights to use, copy, modify, merge, publish, distribute, sublicense,
14  and/or sell copies of the Software, and to permit persons to whom the
15  Software is furnished to do so, subject to the following conditions:
16 
17  The above copyright notice and this permission notice shall be included
18  in all copies or substantial portions of the Software.
19 
20  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26  DEALINGS IN THE SOFTWARE.
27 */
28 
29 
30 ///
31 ///@class LinAlg
32 ///@brief Tuned linear algebra routines
33 ///
34 ///@author
35 /// Steven G. Parker
36 /// Department of Computer Science
37 /// University of Utah
38 ///
39 ///@date November 1995
40 ///
41 
42 #ifndef Math_LinAlg_h
43 #define Math_LinAlg_h 1
44 
45 #include <Core/Math/share.h>
46 
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50  SCISHARE double linalg_norm2(int n, const double* data);
51  SCISHARE void linalg_mult(int n, double* result, double* a, double* b);
52  SCISHARE void linalg_sub(int n, double* result, double* a, double* b);
53  SCISHARE void linalg_add(int n, double* result, double* a, double* b);
54  SCISHARE double linalg_dot(int n, double* a, double* b);
55  SCISHARE void linalg_smadd(int n, double* result, double s, double* a, double* b);
56  SCISHARE typedef double LinAlg_TriDiagRow[3];
57  SCISHARE void linalg_tridiag(int n, LinAlg_TriDiagRow* data, double* c);
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 #endif
63 
void linalg_add(size_type rows, double *res, double *a, double *b)
Definition: ColumnMatrix.cc:96
#define SCISHARE
Definition: share.h:39
void linalg_mult(size_type rows, double *res, double *a, double *b)
Definition: ColumnMatrix.cc:78
SCISHARE typedef double LinAlg_TriDiagRow[3]
Definition: LinAlg.h:56
void linalg_tridiag(int rows, LinAlg_TriDiagRow *data, double *c)
Definition: LinAlg.c:134
dictionary data
Definition: eabLatVolData.py:11
double linalg_norm2(size_type rows, const double *data)
Definition: ColumnMatrix.cc:49
double linalg_dot(size_type rows, double *a, double *b)
Definition: ColumnMatrix.cc:105
void linalg_sub(size_type rows, double *res, double *a, double *b)
Definition: ColumnMatrix.cc:87
void linalg_smadd(size_type rows, double *res, double s, double *a, double *b)
Definition: ColumnMatrix.cc:137
int n
Definition: eab.py:9