19 #ifndef AMESOS2_SUPERLUMT_DECL_HPP
20 #define AMESOS2_SUPERLUMT_DECL_HPP
41 template <
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;
64 typedef typename type_map::type slu_type;
65 typedef typename type_map::magnitude_type magnitude_type;
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;
275 #endif // AMESOS2_SUPERLUMT_DECL_HPP
Amesos2::SolverCore: A templated interface for interaction with third-party direct sparse solvers...
Definition: Amesos2_SolverCore_decl.hpp:71
bool matrixShapeOK_impl() const
Determines whether the shape of the matrix is OK for this solver.
Definition: Amesos2_Superlumt_def.hpp:411
Amesos2 interface to the Multi-threaded version of SuperLU.
Definition: Amesos2_Superlumt_decl.hpp:43
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
Map types to solver-specific data-types and enums.
Definition: Amesos2_TypeMap.hpp:48
Teuchos::Array< int > colptr_
Stores the location in Ai_ and Aval_ that starts row j.
Definition: Amesos2_Superlumt_decl.hpp:240
int symbolicFactorization_impl()
Perform symbolic factorization of the matrix using SuperLU_MT.
Definition: Amesos2_Superlumt_def.hpp:168
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters_impl() const
Definition: Amesos2_Superlumt_def.hpp:476
Templated core-functionality class for Amesos2 solvers.
Provides traits about solvers.
Definition: Amesos2_SolverTraits.hpp:37
int preOrdering_impl()
Performs pre-ordering on the matrix to increase efficiency.
Definition: Amesos2_Superlumt_def.hpp:148
Provides a mechanism to map function calls to the correct Solver function based on the scalar type of...
std::string name() const override
Return the name of this solver.
Definition: Amesos2_SolverCore_def.hpp:725
int numericFactorization_impl()
SuperLU_MT specific numeric factorization.
Definition: Amesos2_Superlumt_def.hpp:193
Interface to Amesos2 solver objects.
Definition: Amesos2_Solver_decl.hpp:44
void setParameters_impl(const Teuchos::RCP< Teuchos::ParameterList > ¶meterList)
Definition: Amesos2_Superlumt_def.hpp:422
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
Passes functions to TPL functions based on type.
Definition: Amesos2_FunctionMap.hpp:42
Provides access to interesting solver traits.
bool loadA_impl(EPhase current_phase)
Reads matrix data into internal structures.
Definition: Amesos2_Superlumt_def.hpp:565
Teuchos::Array< int > rowind_
Stores the row indices of the nonzero entries.
Definition: Amesos2_Superlumt_decl.hpp:238