20#ifndef AMESOS2_SHYLUBASKER_DECL_HPP
21#define AMESOS2_SHYLUBASKER_DECL_HPP
24#include "Amesos2_SolverCore.hpp"
25#include "Amesos2_ShyLUBasker_FunctionMap.hpp"
27#include "shylubasker_decl.hpp"
28#include "shylubasker_def.hpp"
29#include "shylubasker_trilinos_decl.hpp"
41template <
class Matrix,
class Vector>
58 typedef typename VectorTraits<Vector>::scalar_t vector_scalar_type;
59 typedef typename super_type::scalar_type scalar_type;
60 typedef typename super_type::local_ordinal_type local_ordinal_type;
61 typedef typename super_type::global_ordinal_type global_ordinal_type;
62 typedef typename super_type::global_size_type global_size_type;
63 typedef typename super_type::node_type node_type;
65 typedef
TypeMap<Amesos2::ShyLUBasker,scalar_type> type_map;
66 typedef typename type_map::type shylubasker_type;
67 typedef typename type_map::dtype shylubasker_dtype;
69 typedef typename type_map::type slu_type;
71 typedef
FunctionMap<Amesos2::ShyLUBasker,shylubasker_type> function_map;
73 typedef Matrix matrix_type;
76 typedef Kokkos::DefaultHostExecutionSpace HostExecSpaceType;
78 typedef Kokkos::View<local_ordinal_type*, HostExecSpaceType> host_ordinal_type_array;
79 typedef Kokkos::View<shylubasker_type*, HostExecSpaceType> host_value_type_array;
83 Teuchos::RCP<Vector> X,
84 Teuchos::RCP<const Vector> B);
105 int symbolicFactorization_impl();
127 int
solve_impl(const Teuchos::Ptr<MultiVecAdapter<Vector> > X,
128 const Teuchos::Ptr<const MultiVecAdapter<Vector> > B) const;
137 void setParameters_impl(
138 const Teuchos::RCP<Teuchos::ParameterList> & parameterList );
176 typedef typename Kokkos::View<shylubasker_type**, Kokkos::LayoutLeft,
177 typename HostExecSpaceType::memory_space> host_solve_array_t;
188#if defined( HAVE_AMESOS2_KOKKOS )
195 typedef Kokkos::DefaultHostExecutionSpace Exe_Space;
196 ::BaskerNS::BaskerTrilinosInterface<local_ordinal_type, shylubasker_dtype, Exe_Space> *ShyLUbasker;
198 #pragma message("Amesos_ShyLUBasker_decl Error: ENABLED SHYLU_NODEBASKER BUT NOT KOKKOS!")
208#ifdef HAVE_TEUCHOS_COMPLEX
215 typedef Meta::make_list6<float,
217 Kokkos::complex<float>,
218 Kokkos::complex<double>,
220 std::complex<double> > supported_scalars;
222 typedef Meta::make_list2<float, double> supported_scalars;
226template <
typename Scalar,
typename LocalOrdinal,
typename ExecutionSpace>
228 KokkosSparse::CrsMatrix<Scalar, LocalOrdinal, ExecutionSpace>> {
229 static const bool value =
true;
Provides access to interesting solver traits.
A Matrix adapter interface for Amesos2.
Definition Amesos2_MatrixAdapter_decl.hpp:42
Amesos2 interface to the Baker package.
Definition Amesos2_ShyLUBasker_decl.hpp:43
bool loadA_impl(EPhase current_phase)
Reads matrix data into internal structures.
Definition Amesos2_ShyLUBasker_def.hpp:604
host_ordinal_type_array colptr_view_
Stores the row indices of the nonzero entries.
Definition Amesos2_ShyLUBasker_decl.hpp:170
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:285
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters_impl() const
Definition Amesos2_ShyLUBasker_def.hpp:531
int numericFactorization_impl()
ShyLUBasker specific numeric factorization.
Definition Amesos2_ShyLUBasker_def.hpp:203
host_value_type_array nzvals_view_
Stores the values of the nonzero entries for Umfpack.
Definition Amesos2_ShyLUBasker_decl.hpp:166
int preOrdering_impl()
Performs pre-ordering on the matrix to increase efficiency.
Definition Amesos2_ShyLUBasker_def.hpp:109
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:103
host_solve_array_t xValues_
Persisting 1D store for X.
Definition Amesos2_ShyLUBasker_decl.hpp:180
static const char * name
Name of this solver interface.
Definition Amesos2_ShyLUBasker_decl.hpp:50
host_ordinal_type_array rowind_view_
Stores the location in Ai_ and Aval_ that starts row j.
Definition Amesos2_ShyLUBasker_decl.hpp:168
host_solve_array_t bValues_
Persisting 1D store for B.
Definition Amesos2_ShyLUBasker_decl.hpp:184
bool matrixShapeOK_impl() const
Determines whether the shape of the matrix is OK for this solver.
Definition Amesos2_ShyLUBasker_def.hpp:388
Amesos2::SolverCore: A templated interface for interaction with third-party direct sparse solvers.
Definition Amesos2_SolverCore_decl.hpp:72
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