54 #ifndef AMESOS2_SHYLUBASKER_DECL_HPP
55 #define AMESOS2_SHYLUBASKER_DECL_HPP
58 #include "Amesos2_SolverCore.hpp"
59 #include "Amesos2_ShyLUBasker_FunctionMap.hpp"
61 #include "shylubasker_decl.hpp"
62 #include "shylubasker_def.hpp"
63 #include "shylubasker_trilinos_decl.hpp"
75 template <
class Matrix,
class Vector>
92 typedef typename super_type::scalar_type scalar_type;
93 typedef typename super_type::local_ordinal_type local_ordinal_type;
94 typedef typename super_type::global_ordinal_type global_ordinal_type;
95 typedef typename super_type::global_size_type global_size_type;
96 typedef typename super_type::node_type node_type;
100 typedef typename type_map::type slu_type;
101 typedef typename type_map::magnitude_type magnitude_type;
105 typedef Matrix matrix_type;
110 Teuchos::RCP<Vector> X,
111 Teuchos::RCP<const Vector> B);
132 int symbolicFactorization_impl();
154 int
solve_impl(const Teuchos::Ptr<MultiVecAdapter<Vector> > X,
155 const Teuchos::Ptr<const MultiVecAdapter<Vector> > B) const;
164 void setParameters_impl(
165 const Teuchos::RCP<Teuchos::ParameterList> & parameterList );
203 mutable Teuchos::Array<slu_type>
xvals_; local_ordinal_type ldx_;
205 mutable Teuchos::Array<slu_type>
bvals_; local_ordinal_type ldb_;
209 #if defined( HAVE_AMESOS2_KOKKOS ) && defined( KOKKOS_ENABLE_OPENMP )
216 typedef Kokkos::OpenMP Exe_Space;
217 ::BaskerNS::BaskerTrilinosInterface<local_ordinal_type, slu_type, Exe_Space> *ShyLUbasker;
219 #pragma message("Amesos_ShyLUBasker_decl Error: ENABLED SHYLU_NODEBASKER BUT NOT KOKKOS or NOT OPENMP!")
230 #ifdef HAVE_TEUCHOS_COMPLEX
231 typedef Meta::make_list4<float,
234 std::complex<double> > supported_scalars;
236 typedef Meta::make_list2<float, double> supported_scalars;
242 #endif // AMESOS2_SHYLUBASKER_DECL_HPP
Amesos2::SolverCore: A templated interface for interaction with third-party direct sparse solvers...
Definition: Amesos2_SolverCore_decl.hpp:105
int solve_impl(const Teuchos::Ptr< MultiVecAdapter< Vector > > X, const Teuchos::Ptr< const MultiVecAdapter< Vector > > B) const
ShyLUBasker specific solve.
Definition: Amesos2_ShyLUBasker_def.hpp:323
Map types to solver-specific data-types and enums.
Definition: Amesos2_TypeMap.hpp:82
Teuchos::Array< slu_type > nzvals_
Stores the values of the nonzero entries for ShyLUBasker.
Definition: Amesos2_ShyLUBasker_decl.hpp:193
Amesos2 interface to the Baker package.
Definition: Amesos2_ShyLUBasker_decl.hpp:76
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters_impl() const
Definition: Amesos2_ShyLUBasker_def.hpp:523
Teuchos::Array< slu_type > bvals_
Persisting 1D store for B.
Definition: Amesos2_ShyLUBasker_decl.hpp:205
Teuchos::Array< slu_type > xvals_
Persisting 1D store for X.
Definition: Amesos2_ShyLUBasker_decl.hpp:203
std::string name() const
Return the name of this solver.
Definition: Amesos2_SolverCore_def.hpp:509
int preOrdering_impl()
Performs pre-ordering on the matrix to increase efficiency.
Definition: Amesos2_ShyLUBasker_def.hpp:132
Provides traits about solvers.
Definition: Amesos2_SolverTraits.hpp:71
Teuchos::Array< local_ordinal_type > colptr_
Stores the row indices of the nonzero entries.
Definition: Amesos2_ShyLUBasker_decl.hpp:197
bool matrixShapeOK_impl() const
Determines whether the shape of the matrix is OK for this solver.
Definition: Amesos2_ShyLUBasker_def.hpp:443
Teuchos::Array< local_ordinal_type > rowind_
Stores the location in Ai_ and Aval_ that starts row j.
Definition: Amesos2_ShyLUBasker_decl.hpp:195
bool loadA_impl(EPhase current_phase)
Reads matrix data into internal structures.
Definition: Amesos2_ShyLUBasker_def.hpp:568
A Matrix adapter interface for Amesos2.
Definition: Amesos2_MatrixAdapter_decl.hpp:76
int numericFactorization_impl()
ShyLUBasker specific numeric factorization.
Definition: Amesos2_ShyLUBasker_def.hpp:219
Passes functions to TPL functions based on type.
Definition: Amesos2_FunctionMap.hpp:76
Provides access to interesting solver traits.
bool single_proc_optimization() const
can we optimize size_type and ordinal_type for straight pass through, also check that is_contiguous_ ...
Definition: Amesos2_ShyLUBasker_def.hpp:126