19#ifndef AMESOS2_SUPERLUMT_DECL_HPP
20#define AMESOS2_SUPERLUMT_DECL_HPP
41template <
class Matrix,
57 typedef typename super_type::scalar_type scalar_type;
58 typedef typename super_type::local_ordinal_type local_ordinal_type;
59 typedef typename super_type::global_ordinal_type global_ordinal_type;
60 typedef typename super_type::global_size_type global_size_type;
62 typedef
TypeMap<Amesos2::Superlumt,scalar_type> type_map;
64 typedef typename type_map::type slu_type;
65 typedef typename type_map::magnitude_type magnitude_type;
67 typedef
FunctionMap<Amesos2::Superlumt,slu_type> function_map;
80 Teuchos::RCP<Vector> X,
81 Teuchos::RCP<const Vector> B);
133 int
solve_impl(const Teuchos::Ptr<MultiVecAdapter<Vector> > X,
134 const Teuchos::Ptr<const MultiVecAdapter<Vector> > B) const;
183 const Teuchos::RCP<Teuchos::ParameterList> & parameterList );
212 mutable struct SLUData {
213 SLUMT::SuperMatrix A, BX, L, U;
214 SLUMT::SuperMatrix AC;
216 SLUMT::superlumt_options_t options;
217 SLUMT::superlu_memusage_t mem_usage;
220 Teuchos::Array<magnitude_type> berr;
221 Teuchos::Array<magnitude_type> ferr;
222 Teuchos::Array<int> perm_r;
223 Teuchos::Array<int> perm_c;
224 Teuchos::Array<magnitude_type> R;
225 Teuchos::Array<magnitude_type> C;
230 SLUMT::equed_t equed;
236 Teuchos::Array<typename TypeMap<Amesos2::Superlumt,scalar_type>::type>
nzvals_;
261#ifdef HAVE_TEUCHOS_COMPLEX
262 typedef Meta::make_list6<float,
265 std::complex<double>,
267 SLUMT::Z::doublecomplex> supported_scalars;
269 typedef Meta::make_list2<float, double> supported_scalars;
Templated core-functionality class for Amesos2 solvers.
Provides access to interesting solver traits.
Provides a mechanism to map function calls to the correct Solver function based on the scalar type of...
Amesos2::SolverCore: A templated interface for interaction with third-party direct sparse solvers.
Definition Amesos2_SolverCore_decl.hpp:72
Amesos2 interface to the Multi-threaded version of SuperLU.
Definition Amesos2_Superlumt_decl.hpp:44
int solve_impl(const Teuchos::Ptr< MultiVecAdapter< Vector > > X, const Teuchos::Ptr< const MultiVecAdapter< Vector > > B) const
SuperLU_MT specific solve.
Definition Amesos2_Superlumt_def.hpp:297
bool matrixShapeOK_impl() const
Determines whether the shape of the matrix is OK for this solver.
Definition Amesos2_Superlumt_def.hpp:411
Teuchos::Array< typename TypeMap< Amesos2::Superlumt, scalar_type >::type > nzvals_
Stores the values of the nonzero entries for SuperLU.
Definition Amesos2_Superlumt_decl.hpp:236
int numericFactorization_impl()
SuperLU_MT specific numeric factorization.
Definition Amesos2_Superlumt_def.hpp:193
int symbolicFactorization_impl()
Perform symbolic factorization of the matrix using SuperLU_MT.
Definition Amesos2_Superlumt_def.hpp:168
int preOrdering_impl()
Performs pre-ordering on the matrix to increase efficiency.
Definition Amesos2_Superlumt_def.hpp:148
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters_impl() const
Definition Amesos2_Superlumt_def.hpp:476
Teuchos::Array< int > rowind_
Stores the row indices of the nonzero entries.
Definition Amesos2_Superlumt_decl.hpp:238
Teuchos::Array< int > colptr_
Stores the location in Ai_ and Aval_ that starts row j.
Definition Amesos2_Superlumt_decl.hpp:240
static const char * name
Name of this solver interface.
Definition Amesos2_Superlumt_decl.hpp:51
bool loadA_impl(EPhase current_phase)
Reads matrix data into internal structures.
Definition Amesos2_Superlumt_def.hpp:565
void setParameters_impl(const Teuchos::RCP< Teuchos::ParameterList > ¶meterList)
Definition Amesos2_Superlumt_def.hpp:422
Passes functions to TPL functions based on type.
Definition Amesos2_FunctionMap.hpp:43
Map types to solver-specific data-types and enums.
Definition Amesos2_TypeMap.hpp:48
Provides traits about solvers.
Definition Amesos2_SolverTraits.hpp:37