10 #ifndef THYRA_TPETRA_THYRA_WRAPPERS_DECL_HPP
11 #define THYRA_TPETRA_THYRA_WRAPPERS_DECL_HPP
14 #include "Thyra_OperatorVectorTypes.hpp"
31 RCP<const Teuchos::Comm<Ordinal> >
39 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
40 RCP<const VectorSpaceBase<Scalar> >
41 createVectorSpace(
const RCP<
const Tpetra::Map<LocalOrdinal,GlobalOrdinal,Node> > &tpetraMap);
48 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
49 RCP<VectorBase<Scalar> >
51 const RCP<Tpetra::Vector<Scalar,LocalOrdinal,GlobalOrdinal,Node> > &tpetraVector,
52 const RCP<
const VectorSpaceBase<Scalar> > space =
Teuchos::null
60 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
61 RCP<const VectorBase<Scalar> >
63 const RCP<
const Tpetra::Vector<Scalar,LocalOrdinal,GlobalOrdinal,Node> > &tpetraVector,
64 const RCP<
const VectorSpaceBase<Scalar> > space =
Teuchos::null
72 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
73 RCP<MultiVectorBase<Scalar> >
75 const RCP<Tpetra::MultiVector<Scalar,LocalOrdinal,GlobalOrdinal,Node> > &tpetraMultiVector,
76 const RCP<
const VectorSpaceBase<Scalar> > rangeSpace =
Teuchos::null,
77 const RCP<
const VectorSpaceBase<Scalar> > domainSpace =
Teuchos::null
85 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
86 RCP<const MultiVectorBase<Scalar> >
88 const RCP<
const Tpetra::MultiVector<Scalar,LocalOrdinal,GlobalOrdinal,Node> > &tpetraMultiVector,
89 const RCP<
const VectorSpaceBase<Scalar> > rangeSpace =
Teuchos::null,
90 const RCP<
const VectorSpaceBase<Scalar> > domainSpace =
Teuchos::null
98 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
99 RCP<LinearOpBase<Scalar> >
101 const RCP<Tpetra::Operator<Scalar,LocalOrdinal,GlobalOrdinal,Node> > &tpetraOperator,
102 const RCP<
const VectorSpaceBase<Scalar> > rangeSpace =
Teuchos::null,
103 const RCP<
const VectorSpaceBase<Scalar> > domainSpace =
Teuchos::null
111 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
112 RCP<const LinearOpBase<Scalar> >
114 const RCP<
const Tpetra::Operator<Scalar,LocalOrdinal,GlobalOrdinal,Node> > &tpetraOperator,
115 const RCP<
const VectorSpaceBase<Scalar> > rangeSpace =
Teuchos::null,
116 const RCP<
const VectorSpaceBase<Scalar> > domainSpace =
Teuchos::null
140 template <class Scalar = Tpetra::Vector<>::scalar_type,
141 class LocalOrdinal = Tpetra::Vector<>::local_ordinal_type,
142 class GlobalOrdinal = Tpetra::Vector<>::global_ordinal_type,
143 class Node = Tpetra::Vector<>::node_type>
194 #endif // THYRA_TPETRA_THYRA_WRAPPERS_DECL_HPP
RCP< MultiVectorBase< Scalar > > createMultiVector(const RCP< Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &tpetraMultiVector, const RCP< const VectorSpaceBase< Scalar > > rangeSpace=Teuchos::null, const RCP< const VectorSpaceBase< Scalar > > domainSpace=Teuchos::null)
RCP< const VectorBase< Scalar > > createConstVector(const RCP< const Tpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &tpetraVector, const RCP< const VectorSpaceBase< Scalar > > space=Teuchos::null)
RCP< const LinearOpBase< Scalar > > createConstLinearOp(const RCP< const Tpetra::Operator< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &tpetraOperator, const RCP< const VectorSpaceBase< Scalar > > rangeSpace=Teuchos::null, const RCP< const VectorSpaceBase< Scalar > > domainSpace=Teuchos::null)
RCP< LinearOpBase< Scalar > > createLinearOp(const RCP< Tpetra::Operator< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &tpetraOperator, const RCP< const VectorSpaceBase< Scalar > > rangeSpace=Teuchos::null, const RCP< const VectorSpaceBase< Scalar > > domainSpace=Teuchos::null)
RCP< VectorBase< Scalar > > createVector(const RCP< Tpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &tpetraVector, const RCP< const VectorSpaceBase< Scalar > > space=Teuchos::null)
RCP< const MultiVectorBase< Scalar > > createConstMultiVector(const RCP< const Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &tpetraMultiVector, const RCP< const VectorSpaceBase< Scalar > > rangeSpace=Teuchos::null, const RCP< const VectorSpaceBase< Scalar > > domainSpace=Teuchos::null)
RCP< const VectorSpaceBase< Scalar > > createVectorSpace(const RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &tpetraMap)
Create a Thyra::VectorSpaceBase object given a Tpetra::Map.
RCP< const Teuchos::Comm< Ordinal > > convertTpetraToThyraComm(const RCP< const Teuchos::Comm< int > > &tpetraComm)
Given an Tpetra Teuchos::Comm<int> object, return an equivalent Teuchos::Comm<Ordinal> object...