* class.
*/
typedef PetscScalar value_type;
+ typedef PetscScalar real_type;
typedef size_t size_type;
typedef internal::VectorReference reference;
typedef const internal::VectorReference const_reference;
/**
* Return square of the $l_2$-norm.
*/
- PetscScalar norm_sqr () const;
+ real_type norm_sqr () const;
/**
* Mean value of the elements of
* $l_1$-norm of the vector.
* The sum of the absolute values.
*/
- PetscScalar l1_norm () const;
+ real_type l1_norm () const;
/**
* $l_2$-norm of the vector. The
* square root of the sum of the
* squares of the elements.
*/
- PetscScalar l2_norm () const;
+ real_type l2_norm () const;
/**
* $l_p$-norm of the vector. The
* powers of the absolute values
* of the elements.
*/
- PetscScalar lp_norm (const PetscScalar p) const;
+ real_type lp_norm (const PetscScalar p) const;
/**
* Maximum absolute value of the
* elements.
*/
- PetscScalar linfty_norm () const;
+ real_type linfty_norm () const;
/**
* Return whether the vector contains
// $Id$
// Version: $Name$
//
-// Copyright (C) 2004, 2005, 2006 by the deal.II authors
+// Copyright (C) 2004, 2005, 2006, 2007 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
- PetscScalar
+ VectorBase::real_type
VectorBase::norm_sqr () const
{
const PetscScalar d = l2_norm();
- PetscScalar
+ VectorBase::real_type
VectorBase::l1_norm () const
{
PetscScalar d;
- PetscScalar
+ VectorBase::real_type
VectorBase::l2_norm () const
{
PetscScalar d;
- PetscScalar
+ VectorBase::real_type
VectorBase::lp_norm (const PetscScalar p) const
{
// get a representation of the vector and
- PetscScalar
+ VectorBase::real_type
VectorBase::linfty_norm () const
{
PetscScalar d;