20 #ifndef LIBMESH_DENSE_VECTOR_BASE_H 21 #define LIBMESH_DENSE_VECTOR_BASE_H 64 virtual void zero() = 0;
69 virtual T
el(
const unsigned int i)
const = 0;
74 virtual T &
el(
const unsigned int i) = 0;
79 virtual unsigned int size()
const = 0;
84 virtual bool empty()
const {
return (this->
size() == 0); }
89 void print(std::ostream & os)
const;
95 friend std::ostream & operator << (std::ostream & os, const DenseVectorBase<T> & v)
112 #endif // LIBMESH_DENSE_VECTOR_BASE_H
DenseVectorBase & operator=(const DenseVectorBase &)=default
virtual unsigned int size() const =0
void print_scientific(std::ostream &os, unsigned precision=8) const
void print(std::ostream &os) const
virtual ~DenseVectorBase()=default
DenseVectorBase()=default
virtual T el(const unsigned int i) const =0
virtual bool empty() const