#include <cstdio>
#include <base/types.h>
-#include <lac/vectorbase.h>
#include <base/exceptions.h>
*
* @author Roland Becker, Guido Kanschat, Franz-Theo Suttmeier, revised and extended by Wolfgang Bangerth, documented by Klaus Mampel and Wolfgang Bangerth
*/
-class dVector : public VectorBase
-{
+class dVector {
friend class dFMatrix;
protected:
/**
* U(i)=a*V(j) . Replacing
*/
- void cequ(unsigned int i, const VectorBase& V,
+ void cequ(unsigned int i, const dVector& V,
double a, unsigned int j);
/**
* U(i)=a*V(j)+b*V(k) . Replacing by sum
*/
- void cequ (const unsigned int i, const VectorBase& V,
+ void cequ (const unsigned int i, const dVector& V,
const double a, const unsigned int j,
const double b, const unsigned int k);
* U(i)=a*V(j)+b*V(k)+c*V(l)+d*V(m).
* Replacing by sum
*/
- void cequ (const unsigned int i, const VectorBase& V,
+ void cequ (const unsigned int i, const dVector& V,
const double a, const unsigned int j,
const double b, const unsigned int k,
const double c, const unsigned int l,
/**
* U(i)+=a*V(j) . Simple addition
*/
- void cadd (const unsigned int i, const VectorBase& V,
+ void cadd (const unsigned int i, const dVector& V,
const double a, const unsigned int j);
/**
* U(i)+=a*V(j)+b*V(k). Multiple addition
*/
- void cadd (const unsigned int i, const VectorBase& V,
+ void cadd (const unsigned int i, const dVector& V,
const double a, const unsigned int j,
const double b, const unsigned int k);
* U(i)+=a*V(j)+b*V(k)+c*V(l)+d*V(m).
* Multiple addition
*/
- void cadd (const unsigned int i, const VectorBase& V,
+ void cadd (const unsigned int i, const dVector& V,
const double a, const unsigned int j,
const double b, const unsigned int k,
const double c, const unsigned int l,
* @name 5: Mixed stuff
*/
//@{
- ///
- virtual const char* name () const;
-
/**
* Output of vector in user-defined format.
*/
dVector::dVector (const dVector& v) :
- VectorBase(v),
dim(v.size()),
maxdim(v.size()),
val(0)
-void dVector::cadd (const unsigned int i, const VectorBase& V,
+void dVector::cadd (const unsigned int i, const dVector& v,
const double s, const unsigned int j)
{
Assert (dim!=0, ExcEmptyVector());
- const dVector& v = (const dVector&) V;
-
Assert (i<dim, ExcInvalidIndex(i,dim));
Assert (j<v.dim, ExcInvalidIndex(j,v.dim));
-void dVector::cadd(unsigned int i, const VectorBase& V,
+void dVector::cadd(unsigned int i, const dVector &v,
double s, unsigned int j,
double t, unsigned int k)
{
Assert (dim!=0, ExcEmptyVector());
- const dVector& v = (const dVector&) V;
-
Assert (i<dim, ExcInvalidIndex(i,dim));
Assert (j<v.dim, ExcInvalidIndex(j,v.dim));
Assert (k<v.dim, ExcInvalidIndex(k,v.dim));
-void dVector::cadd (const unsigned int i, const VectorBase& V,
+void dVector::cadd (const unsigned int i, const dVector &v,
const double s, const unsigned int j,
const double t, const unsigned int k,
const double q, const unsigned int l,
const double r, const unsigned int m)
{
Assert (dim!=0, ExcEmptyVector());
- const dVector& v = (const dVector&) V;
-
Assert (i<dim, ExcInvalidIndex(i,dim));
Assert (j<v.dim, ExcInvalidIndex(j,v.dim));
Assert (k<v.dim, ExcInvalidIndex(k,v.dim));
-void dVector::cequ (const unsigned int i, const VectorBase& V,
+void dVector::cequ (const unsigned int i, const dVector &v,
const double s, const unsigned int j)
{
Assert (dim!=0, ExcEmptyVector());
- const dVector& v = (const dVector&) V;
-
Assert (i<dim, ExcInvalidIndex(i,dim));
Assert (j<v.dim, ExcInvalidIndex(j,v.dim));
-void dVector::cequ (const unsigned int i, const VectorBase& V,
+void dVector::cequ (const unsigned int i, const dVector &v,
const double s, const unsigned int j,
const double t, const unsigned int k)
{
Assert (dim!=0, ExcEmptyVector());
- const dVector& v = (const dVector&) V;
-
Assert (i<dim, ExcInvalidIndex(i,dim));
Assert (j<v.dim, ExcInvalidIndex(j,v.dim));
Assert (k<v.dim, ExcInvalidIndex(k,v.dim));
-void dVector::cequ (const unsigned int i, const VectorBase& V,
+void dVector::cequ (const unsigned int i, const dVector &v,
const double s, const unsigned int j,
const double t, const unsigned int k,
const double q, const unsigned int l,
const double r, const unsigned int m)
{
Assert (dim!=0, ExcEmptyVector());
- const dVector& v = (const dVector&) V;
-
Assert (i<dim, ExcInvalidIndex(i,dim));
Assert (j<v.dim, ExcInvalidIndex(j,v.dim));
Assert (k<v.dim, ExcInvalidIndex(k,v.dim));
-const char* dVector::name () const
-{
- return "dVector";
-}
-
-
void dVector::print (FILE* f, const char* format) const
{