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"
75template <
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;
218 ::BaskerNS::BaskerTrilinosInterface<local_ordinal_type, slu_type, Exe_Space> *ShyLUbasker;
220 ::BaskerNS::BaskerTrilinosInterface<local_ordinal_type, slu_type, Exe_Space> *ShyLUbaskerTr;
222 #pragma message("Amesos_ShyLUBasker_decl Error: ENABLED SHYLU_NODEBASKER BUT NOT KOKKOS or NOT OPENMP!")
233#ifdef HAVE_TEUCHOS_COMPLEX
234 typedef Meta::make_list4<float,
237 std::complex<double> > supported_scalars;
239 typedef Meta::make_list2<float, double> supported_scalars;
Provides access to interesting solver traits.
A Matrix adapter interface for Amesos2.
Definition: Amesos2_MatrixAdapter_decl.hpp:76
Amesos2 interface to the Baker package.
Definition: Amesos2_ShyLUBasker_decl.hpp:77
bool loadA_impl(EPhase current_phase)
Reads matrix data into internal structures.
Definition: Amesos2_ShyLUBasker_def.hpp:732
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:416
Teuchos::Array< slu_type > bvals_
Persisting 1D store for B.
Definition: Amesos2_ShyLUBasker_decl.hpp:205
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters_impl() const
Definition: Amesos2_ShyLUBasker_def.hpp:675
int numericFactorization_impl()
ShyLUBasker specific numeric factorization.
Definition: Amesos2_ShyLUBasker_def.hpp:280
Teuchos::Array< slu_type > nzvals_
Stores the values of the nonzero entries for ShyLUBasker.
Definition: Amesos2_ShyLUBasker_decl.hpp:193
Teuchos::Array< local_ordinal_type > rowind_
Stores the location in Ai_ and Aval_ that starts row j.
Definition: Amesos2_ShyLUBasker_decl.hpp:195
int preOrdering_impl()
Performs pre-ordering on the matrix to increase efficiency.
Definition: Amesos2_ShyLUBasker_def.hpp:162
Teuchos::Array< slu_type > xvals_
Persisting 1D store for X.
Definition: Amesos2_ShyLUBasker_decl.hpp:203
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:156
Teuchos::Array< local_ordinal_type > colptr_
Stores the row indices of the nonzero entries.
Definition: Amesos2_ShyLUBasker_decl.hpp:197
static const char * name
Name of this solver interface.
Definition: Amesos2_ShyLUBasker_decl.hpp:84
bool matrixShapeOK_impl() const
Determines whether the shape of the matrix is OK for this solver.
Definition: Amesos2_ShyLUBasker_def.hpp:544
Amesos2::SolverCore: A templated interface for interaction with third-party direct sparse solvers.
Definition: Amesos2_SolverCore_decl.hpp:106
Passes functions to TPL functions based on type.
Definition: Amesos2_FunctionMap.hpp:77
Map types to solver-specific data-types and enums.
Definition: Amesos2_TypeMap.hpp:82
Provides traits about solvers.
Definition: Amesos2_SolverTraits.hpp:71