19 #ifndef AMESOS2_BASKER_DECL_HPP 
   20 #define AMESOS2_BASKER_DECL_HPP 
   23 #include "Amesos2_SolverCore.hpp" 
   24 #include "Amesos2_Basker_FunctionMap.hpp" 
   38 template <
class Matrix,
class Vector>
 
   55   typedef typename super_type::scalar_type                      scalar_type;
 
   56   typedef typename super_type::local_ordinal_type        local_ordinal_type;
 
   57   typedef typename super_type::global_ordinal_type      global_ordinal_type;
 
   58   typedef typename super_type::global_size_type            global_size_type;
 
   59   typedef typename super_type::node_type                          node_type;
 
   63   typedef typename type_map::type                               basker_type;
 
   65   typedef typename type_map::dtype                             basker_dtype;
 
   69   typedef Matrix                                                matrix_type;
 
   73   Basker( Teuchos::RCP<const Matrix> A,
 
   74           Teuchos::RCP<Vector>       X,
 
   75           Teuchos::RCP<const Vector> B);
 
   95   int symbolicFactorization_impl();
 
  117   int 
solve_impl(const Teuchos::Ptr<MultiVecAdapter<Vector> >       X,
 
  118                  const Teuchos::Ptr<const MultiVecAdapter<Vector> > B) const;
 
  127   void setParameters_impl(
 
  128     const Teuchos::RCP<Teuchos::ParameterList> & parameterList );
 
  154   typedef Kokkos::DefaultHostExecutionSpace HostSpaceType;
 
  155   typedef Kokkos::View<local_ordinal_type*, HostSpaceType> host_ordinal_type_array;
 
  157   typedef Kokkos::View<basker_type*, HostSpaceType>     host_value_type_array;
 
  169   typedef typename Kokkos::View<basker_type**, Kokkos::LayoutLeft, HostSpaceType>
 
  179   mutable ::BaskerClassicNS::BaskerClassic<local_ordinal_type,basker_dtype> basker;
 
  188 #ifdef HAVE_TEUCHOS_COMPLEX 
  189   typedef Meta::make_list6<float,
 
  191                            Kokkos::complex<float>,
 
  192                            Kokkos::complex<double>,
 
  194                            std::complex<double> > supported_scalars;
 
  196   typedef Meta::make_list2<float, double> supported_scalars;
 
  200 template <
typename Scalar, 
typename LocalOrdinal, 
typename ExecutionSpace>
 
  201 struct solver_supports_matrix<
Basker,
 
  202   KokkosSparse::CrsMatrix<Scalar, LocalOrdinal, ExecutionSpace>> {
 
  203   static const bool value = 
true;
 
  208 #endif  // AMESOS2_BASKER_DECL_HPP 
Amesos2::SolverCore: A templated interface for interaction with third-party direct sparse solvers...
Definition: Amesos2_SolverCore_decl.hpp:71
host_ordinal_type_array host_col_ptr_view_
Stores the row indices of the nonzero entries. 
Definition: Amesos2_Basker_decl.hpp:165
Map types to solver-specific data-types and enums. 
Definition: Amesos2_TypeMap.hpp:48
bool loadA_impl(EPhase current_phase)
Reads matrix data into internal structures. 
Definition: Amesos2_Basker_def.hpp:261
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters_impl() const 
Definition: Amesos2_Basker_def.hpp:241
Provides traits about solvers. 
Definition: Amesos2_SolverTraits.hpp:37
host_solve_array_t bValues_
Persisting 1D store for B. 
Definition: Amesos2_Basker_decl.hpp:176
Amesos2 interface to the Baker package. 
Definition: Amesos2_Basker_decl.hpp:39
bool single_proc_optimization() const 
can we optimize size_type and ordinal_type for straight pass through, 
Definition: Amesos2_Basker_def.hpp:51
A Matrix adapter interface for Amesos2. 
Definition: Amesos2_MatrixAdapter_decl.hpp:42
std::string name() const override
Return the name of this solver. 
Definition: Amesos2_SolverCore_def.hpp:746
bool matrixShapeOK_impl() const 
Determines whether the shape of the matrix is OK for this solver. 
Definition: Amesos2_Basker_def.hpp:215
host_solve_array_t xValues_
Persisting 1D store for X. 
Definition: Amesos2_Basker_decl.hpp:173
Passes functions to TPL functions based on type. 
Definition: Amesos2_FunctionMap.hpp:42
int preOrdering_impl()
Performs pre-ordering on the matrix to increase efficiency. 
Definition: Amesos2_Basker_def.hpp:57
Provides access to interesting solver traits. 
host_ordinal_type_array host_rows_view_
Stores the location in Ai_ and Aval_ that starts row j. 
Definition: Amesos2_Basker_decl.hpp:163
int numericFactorization_impl()
Basker specific numeric factorization. 
Definition: Amesos2_Basker_def.hpp:80
host_value_type_array host_nzvals_view_
Stores the values of the nonzero entries for CHOLMOD. 
Definition: Amesos2_Basker_decl.hpp:161
int solve_impl(const Teuchos::Ptr< MultiVecAdapter< Vector > > X, const Teuchos::Ptr< const MultiVecAdapter< Vector > > B) const 
Basker specific solve. 
Definition: Amesos2_Basker_def.hpp:132