Xpetra_UseShortNamesScalar.hpp
Go to the documentation of this file.
1 // @HEADER
2 //
3 // ***********************************************************************
4 //
5 // Xpetra: A linear algebra interface package
6 // Copyright 2012 Sandia Corporation
7 //
8 // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9 // the U.S. Government retains certain rights in this software.
10 //
11 // Redistribution and use in source and binary forms, with or without
12 // modification, are permitted provided that the following conditions are
13 // met:
14 //
15 // 1. Redistributions of source code must retain the above copyright
16 // notice, this list of conditions and the following disclaimer.
17 //
18 // 2. Redistributions in binary form must reproduce the above copyright
19 // notice, this list of conditions and the following disclaimer in the
20 // documentation and/or other materials provided with the distribution.
21 //
22 // 3. Neither the name of the Corporation nor the names of the
23 // contributors may be used to endorse or promote products derived from
24 // this software without specific prior written permission.
25 //
26 // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY
27 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE
30 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
31 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
32 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
33 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
34 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
35 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
36 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 //
38 // Questions? Contact
39 // Jonathan Hu (jhu@sandia.gov)
40 // Andrey Prokopenko (aprokop@sandia.gov)
41 // Ray Tuminaro (rstumin@sandia.gov)
42 //
43 // ***********************************************************************
44 //
45 // @HEADER
46 // Get rid of template parameters
47 
48 // New definition of types using the types Scalar, LocalOrdinal, GlobalOrdinal, Node of the current context.
49 
50 // Note: There is no #ifndef/#define/#end in this header file because it can be included more than once (it can be included in methods templated by Scalar, LocalOrdinal, GlobalOrdinal, Node).
51 
52 #ifdef XPETRA_CRSMATRIX_SHORT
54 #endif
55 
56 #ifdef XPETRA_IO_SHORT
58 #endif
59 
60 #ifdef XPETRA_ITERATOROPS_SHORT
62 #endif
63 
64 #ifdef XPETRA_VECTOR_SHORT
66 #endif
67 
68 #ifdef XPETRA_BLOCKEDVECTOR_SHORT
70 #endif
71 
72 #ifdef XPETRA_MULTIVECTOR_SHORT
74 #endif
75 
76 #ifdef XPETRA_MATRIX_SHORT
78 #endif
79 
80 #ifdef XPETRA_MATRIXMATRIX_SHORT
82 #endif
83 
84 #ifdef XPETRA_TRIPLEMATRIXMULTIPLY_SHORT
86 #endif
87 
88 #ifdef XPETRA_MATRIXUTILS_SHORT
90 #endif
91 
92 #ifdef XPETRA_OPERATOR_SHORT
94 #endif
95 
96 #ifdef XPETRA_TPETRAOPERATOR_SHORT
98 #endif
99 
100 #ifdef XPETRA_BLOCKEDCRSMATRIX_SHORT
102 #endif
103 
104 #ifdef XPETRA_BLOCKEDMULTIVECTOR_SHORT
106 #endif
107 
108 #ifdef XPETRA_REORDEREDBLOCKEDMULTIVECTOR_SHORT
110 #endif
111 
112 #ifdef XPETRA_REORDEREDBLOCKEDCRSMATRIX_SHORT
114 #endif
115 
116 #ifdef HAVE_XPETRA_THYRA
117 #ifdef XPETRA_THYRAUTILS_SHORT
118 typedef Xpetra::ThyraUtils<Scalar, LocalOrdinal, GlobalOrdinal, Node> ThyraUtils;
119 #endif
120 #endif
121 
122 #ifdef XPETRA_CRSMATRIXWRAP_SHORT
124 #endif
125 
126 #ifdef XPETRA_VECTORFACTORY_SHORT
129 #endif
130 
131 #ifdef XPETRA_CRSMATRIXFACTORY_SHORT
133 #endif
134 
135 #ifdef XPETRA_MULTIVECTORFACTORY_SHORT
138 #endif
139 
140 #ifdef XPETRA_MATRIXFACTORY_SHORT
142 #endif
143 
144 #ifdef XPETRA_MATRIXFACTORY2_SHORT
146 #endif
147 
148 #ifdef XPETRA_TPETRACRSMATRIX_SHORT
150 #endif
151 
152 // TODO remove this
153 #ifdef XPETRA_EPETRACRSMATRIX_SHORT
154 #ifndef XPETRA_EPETRA_NO_32BIT_GLOBAL_INDICES
155 typedef Xpetra::EpetraCrsMatrixT<long long, Node> EpetraCrsMatrix64;
156 #endif
157 typedef Xpetra::EpetraCrsMatrixT<int, Node> EpetraCrsMatrix; // do we need this???
158 #endif
159 // TODO remove above entries
160 
161 #ifdef XPETRA_TPETRAMULTIVECTOR_SHORT
163 #endif
164 
165 #ifdef XPETRA_TPETRAVECTOR_SHORT
167 #endif
168 
169 #ifdef XPETRA_MAPEXTRACTOR_SHORT
171 #endif
172 
173 #ifdef XPETRA_MAPEXTRACTORFACTORY_SHORT
175 #endif
176 
177 // TODO: add namespace {} for shortcut types
178 
179 // Define convenient shortcut for data types
180 typedef Scalar SC;
181 // TODO: do the same for Epetra object (problem of namespace)
Xpetra::TpetraOperator
Definition: Xpetra_TpetraOperator.hpp:67
Xpetra::IO
Xpetra utility class containing IO routines to read/write vectors, matrices etc...
Definition: Xpetra_IO.hpp:159
Xpetra::MapExtractorFactory
Definition: Xpetra_MapExtractorFactory.hpp:61
Xpetra::BlockedVector
Definition: Xpetra_BlockedVector.hpp:71
Xpetra::ReorderedBlockedMultiVector
Definition: Xpetra_ReorderedBlockedMultiVector.hpp:73
Xpetra::Operator
Definition: Xpetra_Operator.hpp:64
Xpetra::MultiVector
Definition: Xpetra_MultiVector.hpp:76
Xpetra::IteratorOps
Xpetra utility class containing iteration operators.
Definition: Xpetra_IteratorOps.hpp:156
Xpetra::MultiVectorFactory
Definition: Xpetra_MultiVectorFactory.hpp:81
SC
Scalar SC
Definition: Xpetra_UseShortNamesScalar.hpp:180
Xpetra::EpetraCrsMatrix
EpetraCrsMatrixT< int, typename Xpetra::Map< int, int >::node_type > EpetraCrsMatrix
Definition: Xpetra_EpetraCrsMatrix_fwd.hpp:52
Xpetra::CrsMatrixFactory
Definition: Xpetra_CrsMatrixFactory.hpp:72
Xpetra::TpetraCrsMatrix
Definition: Xpetra_TpetraCrsMatrix.hpp:81
Xpetra::Matrix
Xpetra-specific matrix class.
Definition: Xpetra_Matrix_fwd.hpp:51
Xpetra::Vector
Definition: Xpetra_Vector_fwd.hpp:51
Xpetra::MatrixMatrix
Definition: Xpetra_MatrixMatrix.hpp:220
Xpetra::TpetraMultiVector
Definition: Xpetra_TpetraMultiVector.hpp:90
Xpetra::BlockedCrsMatrix
Definition: Xpetra_BlockedCrsMatrix.hpp:94
Xpetra::CrsMatrixWrap
Concrete implementation of Xpetra::Matrix.
Definition: Xpetra_CrsMatrixWrap_fwd.hpp:51
Xpetra::BlockedMultiVector
Definition: Xpetra_BlockedMultiVector.hpp:72
Xpetra::MatrixFactory
Definition: Xpetra_MatrixFactory_fwd.hpp:51
Xpetra::TripleMatrixMultiply
Definition: Xpetra_TripleMatrixMultiply.hpp:75
Xpetra::TpetraVector
Definition: Xpetra_TpetraVector_fwd.hpp:51
Xpetra::MapExtractor
Definition: Xpetra_MapExtractor.hpp:78
Xpetra::MatrixFactory2
Definition: Xpetra_MatrixFactory_fwd.hpp:54
Xpetra::VectorFactory
Definition: Xpetra_VectorFactory_fwd.hpp:51
Xpetra::EpetraCrsMatrixT
Definition: Xpetra_EpetraCrsMatrix.hpp:78
Xpetra::MatrixUtils
Xpetra utility class for common matrix-related routines.
Definition: Xpetra_MatrixUtils_fwd.hpp:51
Xpetra::CrsMatrix
Definition: Xpetra_CrsMatrix.hpp:73
Xpetra::ReorderedBlockedCrsMatrix
Definition: Xpetra_ReorderedBlockedCrsMatrix.hpp:73