53 #ifndef AMESOS2_SUPERLUMT_DECL_HPP
54 #define AMESOS2_SUPERLUMT_DECL_HPP
75 template <
class Matrix,
91 typedef typename super_type::scalar_type scalar_type;
92 typedef typename super_type::local_ordinal_type local_ordinal_type;
93 typedef typename super_type::global_ordinal_type global_ordinal_type;
94 typedef typename super_type::global_size_type global_size_type;
98 typedef typename type_map::type slu_type;
99 typedef typename type_map::magnitude_type magnitude_type;
114 Teuchos::RCP<Vector> X,
115 Teuchos::RCP<const Vector> B);
167 int
solve_impl(const Teuchos::Ptr<MultiVecAdapter<Vector> > X,
168 const Teuchos::Ptr<const MultiVecAdapter<Vector> > B) const;
217 const Teuchos::RCP<Teuchos::ParameterList> & parameterList );
246 mutable struct SLUData {
247 SLUMT::SuperMatrix A, BX, L, U;
248 SLUMT::SuperMatrix AC;
250 SLUMT::superlumt_options_t options;
251 SLUMT::superlu_memusage_t mem_usage;
254 Teuchos::Array<magnitude_type> berr;
255 Teuchos::Array<magnitude_type> ferr;
256 Teuchos::Array<int> perm_r;
257 Teuchos::Array<int> perm_c;
258 Teuchos::Array<magnitude_type> R;
259 Teuchos::Array<magnitude_type> C;
264 SLUMT::equed_t equed;
270 Teuchos::Array<typename TypeMap<Amesos2::Superlumt,scalar_type>::type>
nzvals_;
295 #ifdef HAVE_TEUCHOS_COMPLEX
296 typedef Meta::make_list6<float,
299 std::complex<double>,
301 SLUMT::Z::doublecomplex> supported_scalars;
303 typedef Meta::make_list2<float, double> supported_scalars;
309 #endif // AMESOS2_SUPERLUMT_DECL_HPP
Amesos2::SolverCore: A templated interface for interaction with third-party direct sparse solvers...
Definition: Amesos2_SolverCore_decl.hpp:105
bool matrixShapeOK_impl() const
Determines whether the shape of the matrix is OK for this solver.
Definition: Amesos2_Superlumt_def.hpp:447
Amesos2 interface to the Multi-threaded version of SuperLU.
Definition: Amesos2_Superlumt_decl.hpp:77
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:331
Map types to solver-specific data-types and enums.
Definition: Amesos2_TypeMap.hpp:82
Teuchos::Array< int > colptr_
Stores the location in Ai_ and Aval_ that starts row j.
Definition: Amesos2_Superlumt_decl.hpp:274
int symbolicFactorization_impl()
Perform symbolic factorization of the matrix using SuperLU_MT.
Definition: Amesos2_Superlumt_def.hpp:202
std::string name() const
Return the name of this solver.
Definition: Amesos2_SolverCore_def.hpp:509
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters_impl() const
Definition: Amesos2_Superlumt_def.hpp:512
Templated core-functionality class for Amesos2 solvers.
Provides traits about solvers.
Definition: Amesos2_SolverTraits.hpp:70
int preOrdering_impl()
Performs pre-ordering on the matrix to increase efficiency.
Definition: Amesos2_Superlumt_def.hpp:182
Provides a mechanism to map function calls to the correct Solver function based on the scalar type of...
int numericFactorization_impl()
SuperLU_MT specific numeric factorization.
Definition: Amesos2_Superlumt_def.hpp:227
Interface to Amesos2 solver objects.
Definition: Amesos2_Solver_decl.hpp:78
void setParameters_impl(const Teuchos::RCP< Teuchos::ParameterList > ¶meterList)
Definition: Amesos2_Superlumt_def.hpp:458
Teuchos::Array< typename TypeMap< Amesos2::Superlumt, scalar_type >::type > nzvals_
Stores the values of the nonzero entries for SuperLU.
Definition: Amesos2_Superlumt_decl.hpp:270
Passes functions to TPL functions based on type.
Definition: Amesos2_FunctionMap.hpp:76
Provides access to interesting solver traits.
bool loadA_impl(EPhase current_phase)
Reads matrix data into internal structures.
Definition: Amesos2_Superlumt_def.hpp:600
Teuchos::Array< int > rowind_
Stores the row indices of the nonzero entries.
Definition: Amesos2_Superlumt_decl.hpp:272