46 #ifndef XPETRA_VECTOR_HPP
47 #define XPETRA_VECTOR_HPP
52 #include "Xpetra_MultiVector.hpp"
56 template <
class Scalar,
61 :
public virtual MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >
82 #ifdef HAVE_XPETRA_KOKKOS_REFACTOR
87 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
98 template<
class TargetDeviceType>
99 typename Kokkos::Impl::if_c<
101 typename dual_view_type::t_dev_um::execution_space::memory_space,
102 typename TargetDeviceType::memory_space>::value,
103 typename dual_view_type::t_dev_um,
104 typename dual_view_type::t_host_um>::type
105 getLocalView ()
const {
110 template<
class TargetDeviceType,
class AccessType>
111 typename Kokkos::Impl::if_c<
113 typename dual_view_type::t_dev_um::execution_space::memory_space,
114 typename TargetDeviceType::memory_space>::value,
115 typename dual_view_type::t_dev_um,
116 typename dual_view_type::t_host_um>::type
117 getLocalView (AccessType access_type)
const {
182 #define XPETRA_VECTOR_SHORT
static const EVerbosityLevel verbLevel_default
virtual Scalar dot(const Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &a) const =0
Computes dot product of this Vector against input Vector x.
virtual ~Vector()
Destructor.
virtual void sumIntoGlobalValue(GlobalOrdinal globalRow, const Scalar &value)=0
Adds specified value to existing value at the specified location.
virtual Teuchos::ScalarTraits< Scalar >::magnitudeType norm1() const =0
Return 1-norm of this Vector.
virtual void replaceLocalValue(LocalOrdinal myRow, const Scalar &value)=0
Replace current value at the specified location with specified values.
virtual std::string description() const =0
Return a simple one-line description of this object.
virtual void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const =0
Print the object with some verbosity level to an FancyOStream object.
virtual Scalar meanValue() const =0
Compute mean (average) value of this Vector.
virtual void replaceGlobalValue(GlobalOrdinal globalRow, const Scalar &value)=0
Replace current value at the specified location with specified value.
GlobalOrdinal global_ordinal_type
virtual void sumIntoLocalValue(LocalOrdinal myRow, const Scalar &value)=0
Adds specified value to existing value at the specified location.
virtual Teuchos::ScalarTraits< Scalar >::magnitudeType normInf() const =0
Compute Inf-norm of this Vector.
virtual Teuchos::ScalarTraits< Scalar >::magnitudeType norm2() const =0
Compute 2-norm of this Vector.
LocalOrdinal local_ordinal_type