/**
* The pointer to the actual matrix.
*/
- SmartPointer<const MATRIX,PointerMatrix<MATRIX,VECTOR> > mtrx;
+ SmartPointer<const MATRIX,PointerMatrix<MATRIX,VECTOR> > matrix;
};
/**
* The pointer to the actual matrix.
*/
- SmartPointer<const MATRIX,PointerMatrixAux<MATRIX,VECTOR> > mtrx;
+ SmartPointer<const MATRIX,PointerMatrixAux<MATRIX,VECTOR> > matrix;
};
/**
* The pointer to the actual matrix.
*/
- SmartPointer<const Vector<number>,PointerMatrixVector<number> > mtrx;
+ SmartPointer<const Vector<number>,PointerMatrixVector<number> > matrix;
};
template<class MATRIX, class VECTOR>
PointerMatrix<MATRIX, VECTOR>::PointerMatrix (const MATRIX *M)
- : mtrx(M, typeid(*this).name())
+ : matrix(M, typeid(*this).name())
{}
template<class MATRIX, class VECTOR>
PointerMatrix<MATRIX, VECTOR>::PointerMatrix (const char *name)
- : mtrx(0, name)
+ : matrix(0, name)
{}
PointerMatrix<MATRIX, VECTOR>::PointerMatrix (
const MATRIX *M,
const char *name)
- : mtrx(M, name)
+ : matrix(M, name)
{}
inline void
PointerMatrix<MATRIX, VECTOR>::clear ()
{
- mtrx = 0;
+ matrix = 0;
}
inline const PointerMatrix<MATRIX, VECTOR> &
PointerMatrix<MATRIX, VECTOR>::operator= (const MATRIX *M)
{
- mtrx = M;
+ matrix = M;
return *this;
}
inline bool
PointerMatrix<MATRIX, VECTOR>::empty () const
{
- if (mtrx == 0)
+ if (matrix == 0)
return true;
- return mtrx->empty();
+ return matrix->empty();
}
template<class MATRIX, class VECTOR>
PointerMatrix<MATRIX, VECTOR>::vmult (VECTOR &dst,
const VECTOR &src) const
{
- Assert (mtrx != 0, ExcNotInitialized());
- mtrx->vmult (dst, src);
+ Assert (matrix != 0, ExcNotInitialized());
+ matrix->vmult (dst, src);
}
PointerMatrix<MATRIX, VECTOR>::Tvmult (VECTOR &dst,
const VECTOR &src) const
{
- Assert (mtrx != 0, ExcNotInitialized());
- mtrx->Tvmult (dst, src);
+ Assert (matrix != 0, ExcNotInitialized());
+ matrix->Tvmult (dst, src);
}
PointerMatrix<MATRIX, VECTOR>::vmult_add (VECTOR &dst,
const VECTOR &src) const
{
- Assert (mtrx != 0, ExcNotInitialized());
- mtrx->vmult_add (dst, src);
+ Assert (matrix != 0, ExcNotInitialized());
+ matrix->vmult_add (dst, src);
}
PointerMatrix<MATRIX, VECTOR>::Tvmult_add (VECTOR &dst,
const VECTOR &src) const
{
- Assert (mtrx != 0, ExcNotInitialized());
- mtrx->Tvmult_add (dst, src);
+ Assert (matrix != 0, ExcNotInitialized());
+ matrix->Tvmult_add (dst, src);
}
inline typename PointerMatrix<MATRIX, VECTOR>::size_type
PointerMatrix<MATRIX, VECTOR>::m () const
{
- Assert (mtrx != 0, ExcNotInitialized());
- return mtrx->m();
+ Assert (matrix != 0, ExcNotInitialized());
+ return matrix->m();
}
inline typename PointerMatrix<MATRIX, VECTOR>::size_type
PointerMatrix<MATRIX, VECTOR>::n () const
{
- Assert (mtrx != 0, ExcNotInitialized());
- return mtrx->n();
+ Assert (matrix != 0, ExcNotInitialized());
+ return matrix->n();
}
VectorMemory<VECTOR> *mem,
const MATRIX *M)
: mem(mem, typeid(*this).name()),
- mtrx(M, typeid(*this).name())
+ matrix(M, typeid(*this).name())
{
if (mem == 0) mem = &my_memory;
}
VectorMemory<VECTOR> *mem,
const char *name)
: mem(mem, name),
- mtrx(0, name)
+ matrix(0, name)
{
if (mem == 0) mem = &my_memory;
}
const MATRIX *M,
const char *name)
: mem(mem, name),
- mtrx(M, name)
+ matrix(M, name)
{
if (mem == 0) mem = &my_memory;
}
inline void
PointerMatrixAux<MATRIX, VECTOR>::clear ()
{
- mtrx = 0;
+ matrix = 0;
}
inline const PointerMatrixAux<MATRIX, VECTOR> &
PointerMatrixAux<MATRIX, VECTOR>::operator= (const MATRIX *M)
{
- mtrx = M;
+ matrix = M;
return *this;
}
inline bool
PointerMatrixAux<MATRIX, VECTOR>::empty () const
{
- if (mtrx == 0)
+ if (matrix == 0)
return true;
- return mtrx->empty();
+ return matrix->empty();
}
template<class MATRIX, class VECTOR>
if (mem == 0)
mem = &my_memory;
Assert (mem != 0, ExcNotInitialized());
- Assert (mtrx != 0, ExcNotInitialized());
- mtrx->vmult (dst, src);
+ Assert (matrix != 0, ExcNotInitialized());
+ matrix->vmult (dst, src);
}
if (mem == 0)
mem = &my_memory;
Assert (mem != 0, ExcNotInitialized());
- Assert (mtrx != 0, ExcNotInitialized());
- mtrx->Tvmult (dst, src);
+ Assert (matrix != 0, ExcNotInitialized());
+ matrix->Tvmult (dst, src);
}
if (mem == 0)
mem = &my_memory;
Assert (mem != 0, ExcNotInitialized());
- Assert (mtrx != 0, ExcNotInitialized());
+ Assert (matrix != 0, ExcNotInitialized());
VECTOR *v = mem->alloc();
v->reinit(dst);
- mtrx->vmult (*v, src);
+ matrix->vmult (*v, src);
dst += *v;
mem->free(v);
}
if (mem == 0)
mem = &my_memory;
Assert (mem != 0, ExcNotInitialized());
- Assert (mtrx != 0, ExcNotInitialized());
+ Assert (matrix != 0, ExcNotInitialized());
VECTOR *v = mem->alloc();
v->reinit(dst);
- mtrx->Tvmult (*v, src);
+ matrix->Tvmult (*v, src);
dst += *v;
mem->free(v);
}
inline typename PointerMatrixAux<MATRIX, VECTOR>::size_type
PointerMatrixAux<MATRIX, VECTOR>::m () const
{
- Assert (mtrx != 0, ExcNotInitialized());
- return mtrx->m();
+ Assert (matrix != 0, ExcNotInitialized());
+ return matrix->m();
}
inline typename PointerMatrixAux<MATRIX, VECTOR>::size_type
PointerMatrixAux<MATRIX, VECTOR>::n () const
{
- Assert (mtrx != 0, ExcNotInitialized());
- return mtrx->n();
+ Assert (matrix != 0, ExcNotInitialized());
+ return matrix->n();
}
template<typename number>
PointerMatrixVector<number>::PointerMatrixVector (const Vector<number> *M)
- : mtrx(M, typeid(*this).name())
+ : matrix(M, typeid(*this).name())
{}
template<typename number>
PointerMatrixVector<number>::PointerMatrixVector (const char *name)
- : mtrx(0, name)
+ : matrix(0, name)
{}
PointerMatrixVector<number>::PointerMatrixVector (
const Vector<number> *M,
const char *name)
- : mtrx(M, name)
+ : matrix(M, name)
{}
inline void
PointerMatrixVector<number>::clear ()
{
- mtrx = 0;
+ matrix = 0;
}
inline const PointerMatrixVector<number> &
PointerMatrixVector<number>::operator= (const Vector<number> *M)
{
- mtrx = M;
+ matrix = M;
return *this;
}
inline bool
PointerMatrixVector<number>::empty () const
{
- if (mtrx == 0)
+ if (matrix == 0)
return true;
- return mtrx->empty();
+ return matrix->empty();
}
template<typename number>
Vector<number> &dst,
const Vector<number> &src) const
{
- Assert (mtrx != 0, ExcNotInitialized());
+ Assert (matrix != 0, ExcNotInitialized());
Assert (dst.size() == 1, ExcDimensionMismatch(dst.size(), 1));
- dst(0) = *mtrx * src;
+ dst(0) = *matrix * src;
}
Vector<number> &dst,
const Vector<number> &src) const
{
- Assert (mtrx != 0, ExcNotInitialized());
+ Assert (matrix != 0, ExcNotInitialized());
Assert(src.size() == 1, ExcDimensionMismatch(src.size(), 1));
- dst.equ (src(0), *mtrx);
+ dst.equ (src(0), *matrix);
}
Vector<number> &dst,
const Vector<number> &src) const
{
- Assert (mtrx != 0, ExcNotInitialized());
+ Assert (matrix != 0, ExcNotInitialized());
Assert (dst.size() == 1, ExcDimensionMismatch(dst.size(), 1));
- dst(0) += *mtrx * src;
+ dst(0) += *matrix * src;
}
Vector<number> &dst,
const Vector<number> &src) const
{
- Assert (mtrx != 0, ExcNotInitialized());
+ Assert (matrix != 0, ExcNotInitialized());
Assert(src.size() == 1, ExcDimensionMismatch(src.size(), 1));
- dst.add (src(0), *mtrx);
+ dst.add (src(0), *matrix);
}
inline typename PointerMatrixVector<number>::size_type
PointerMatrixVector<number>::m () const
{
- Assert (mtrx != 0, ExcNotInitialized());
- return mtrx->m();
+ Assert (matrix != 0, ExcNotInitialized());
+ return matrix->m();
}
inline typename PointerMatrixVector<number>::size_type
PointerMatrixVector<number>::n () const
{
- Assert (mtrx != 0, ExcNotInitialized());
- return mtrx->n();
+ Assert (matrix != 0, ExcNotInitialized());
+ return matrix->n();
}