10 #ifndef AMESOS2_UMFPACK_DECL_HPP
11 #define AMESOS2_UMFPACK_DECL_HPP
14 #include "Amesos2_SolverCore.hpp"
15 #include "Amesos2_Umfpack_FunctionMap.hpp"
27 template <
class Matrix,
43 typedef typename super_type::scalar_type scalar_type;
44 typedef typename super_type::local_ordinal_type local_ordinal_type;
45 typedef typename super_type::global_ordinal_type global_ordinal_type;
46 typedef typename super_type::global_size_type global_size_type;
55 typedef typename type_map::type umfpack_type;
56 typedef typename type_map::magnitude_type magnitude_type;
60 typedef Kokkos::DefaultHostExecutionSpace HostExecSpaceType;
61 typedef Kokkos::View<int*, HostExecSpaceType> host_size_type_array;
62 typedef Kokkos::View<int*, HostExecSpaceType> host_ordinal_type_array;
63 typedef Kokkos::View<umfpack_type*, HostExecSpaceType> host_value_type_array;
74 Umfpack(Teuchos::RCP<const Matrix> A,
75 Teuchos::RCP<Vector> X,
76 Teuchos::RCP<const Vector> B);
125 int
solve_impl(const Teuchos::Ptr<MultiVecAdapter<Vector> > X,
126 const Teuchos::Ptr<const MultiVecAdapter<Vector> > B) const;
137 void setParameters_impl(
138 const Teuchos::RCP<Teuchos::ParameterList> & parameterList );
161 mutable struct UMFPACKData {
167 double Info[UMFPACK_INFO];
168 double Control[UMFPACK_CONTROL];
181 Teuchos::Array<umfpack_type>
xvals_;
int ldx_;
183 Teuchos::Array<umfpack_type>
bvals_;
int ldb_;
192 #ifdef HAVE_TEUCHOS_COMPLEX
193 typedef Meta::make_list4<float,
199 typedef Meta::make_list2<float,
207 #endif // AMESOS2_UMFPACK_DECL_HPP
Amesos2::SolverCore: A templated interface for interaction with third-party direct sparse solvers...
Definition: Amesos2_SolverCore_decl.hpp:71
bool matrixShapeOK_impl() const
Determines whether the shape of the matrix is OK for this solver.
Definition: Amesos2_Umfpack_def.hpp:187
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters_impl() const
Definition: Amesos2_Umfpack_def.hpp:214
int symbolicFactorization_impl()
Perform symbolic factorization of the matrix using Umfpack.
Definition: Amesos2_Umfpack_def.hpp:62
Map types to solver-specific data-types and enums.
Definition: Amesos2_TypeMap.hpp:48
int solve_impl(const Teuchos::Ptr< MultiVecAdapter< Vector > > X, const Teuchos::Ptr< const MultiVecAdapter< Vector > > B) const
Umfpack specific solve.
Definition: Amesos2_Umfpack_def.hpp:108
bool loadA_impl(EPhase current_phase)
Reads matrix data into internal structures.
Definition: Amesos2_Umfpack_def.hpp:232
Provides traits about solvers.
Definition: Amesos2_SolverTraits.hpp:37
int numericFactorization_impl()
Umfpack specific numeric factorization.
Definition: Amesos2_Umfpack_def.hpp:84
Teuchos::Array< umfpack_type > xvals_
Persisting 1D store for X.
Definition: Amesos2_Umfpack_decl.hpp:181
Amesos2 interface to the Umfpack package.
Definition: Amesos2_Umfpack_decl.hpp:29
host_size_type_array colptr_view_
Stores the row indices of the nonzero entries.
Definition: Amesos2_Umfpack_decl.hpp:177
int preOrdering_impl()
Performs pre-ordering on the matrix to increase efficiency.
Definition: Amesos2_Umfpack_def.hpp:54
std::string description() const
Returns a short description of this Solver.
Definition: Amesos2_Umfpack_def.hpp:45
std::string name() const override
Return the name of this solver.
Definition: Amesos2_SolverCore_def.hpp:725
host_ordinal_type_array rowind_view_
Stores the location in Ai_ and Aval_ that starts row j.
Definition: Amesos2_Umfpack_decl.hpp:175
Interface to Amesos2 solver objects.
Definition: Amesos2_Solver_decl.hpp:44
Passes functions to TPL functions based on type.
Definition: Amesos2_FunctionMap.hpp:42
Teuchos::Array< umfpack_type > bvals_
Persisting 1D store for B.
Definition: Amesos2_Umfpack_decl.hpp:183
Provides access to interesting solver traits.
host_value_type_array nzvals_view_
Stores the values of the nonzero entries for Umfpack.
Definition: Amesos2_Umfpack_decl.hpp:173