Example codes
and tutorials
The (Not-so) Quick Guide
List of tutorials/demo codes
Single-Physics Problems
Poisson
Adaptivity illustrated for Poisson
Advection-Diffusion
Unsteady heat equation
Linear wave equation
The Young-Laplace equation
Navier-Stokes
Free-surface Navier-Stokes
Axisymmetric Navier-Stokes
Solid mechanics
Beam structures
Shell structures
Multi-physics Problems
Fluid-structure interaction
Boussinesq convection
Steady thermoelasticity
Methods-based example codes and tutorials
Mesh generation
Linear solvers and preconditioners
Visualisation of the results
Parallel processing
How to write a new element
How to write a new refineable element
Default nonlinear solvers -- the sequence of action functions
...
Documentation
FE theory and top-down discussion of the data structure
The (Not-so) Quick Guide
Comprehensive bottom-up discussion of the data structure
List of available structured and unstructured meshes
Linear solvers and preconditioners
Visualisation of the results
Parallel processing
Coding conventions and C++ style
Creating documentation
Optimisation - robustness vs. "raw speed"
Linear vs. nonlinear problems
Storing shape functions
Changing the default "full" integration scheme
Disabling the ALE formulation of unsteady equations
C vs. C++ output
Different sparse assembly techniques and the STL memory pool
Publications
Publications
Talks
Journal publications
Theses
Picture show
Download
Copyright
Download/installation instructions
Download page
FAQ & Contact
FAQ
Change log
Bugs and other known problems
Completeness of the library & our "To-Do List"
Contact the developers
Get involved

 


Beta release!

Please note that the library has not been "officially" released. While we continue to work on the documentation, these web pages are likely to contain broken links and documents in draft form. Please send an email to

oomph-lib AT maths DOT man DOT ac DOT uk

if you wish to be informed of the library's "official" release.

oomph::Vector< _Tp > Class Template Reference

#include <Vector.h>

List of all members.


Detailed Description

template<class _Tp>
class oomph::Vector< _Tp >

A slight extension to the standard template vector class so that we can include "graceful" array range checks if the RANGE_CHECKING flag is set. The generalisation to general allocators is NOT handled here, mainly because we never use it, but also because the intel and gnu compilers have different names for the internal classes, which makes writing code that works for both a pain!

Definition at line 59 of file Vector.h.


Public Types

typedef _Tp value_type
 Typedef to make the constructors look a bit cleaner.
typedef value_typereference
 Typedef to make the constructors look a bit cleaner.
typedef const value_typeconst_reference
 Typedef to make the constructors look a bit cleaner.
typedef size_t size_type
 Typedef to make the constructors look a bit cleaner.

Public Member Functions

 Vector ()
 Construct an empty vector.
 Vector (size_type __n)
 A constructor that creates a vector of size __n. Note the use of explicit for "strong" type checking.
 Vector (size_type __n, const _Tp &__value)
 A constructor that creates a vector of size __n and initialises every entry to __value.
 Vector (const Vector< _Tp > &__x)
 Copy constructor.
void initialise (const _Tp &__value)
 Iterate over all values and set to the desired value.

Member Typedef Documentation

template<class _Tp>
typedef const value_type& oomph::Vector< _Tp >::const_reference

Typedef to make the constructors look a bit cleaner.

Definition at line 71 of file Vector.h.

template<class _Tp>
typedef value_type& oomph::Vector< _Tp >::reference

Typedef to make the constructors look a bit cleaner.

Definition at line 68 of file Vector.h.

template<class _Tp>
typedef size_t oomph::Vector< _Tp >::size_type

Typedef to make the constructors look a bit cleaner.

Definition at line 74 of file Vector.h.

template<class _Tp>
typedef _Tp oomph::Vector< _Tp >::value_type

Typedef to make the constructors look a bit cleaner.

Definition at line 65 of file Vector.h.


Constructor & Destructor Documentation

template<class _Tp>
oomph::Vector< _Tp >::Vector (  )  [inline]

Construct an empty vector.

Definition at line 139 of file Vector.h.

template<class _Tp>
oomph::Vector< _Tp >::Vector ( size_type  __n  )  [inline, explicit]

A constructor that creates a vector of size __n. Note the use of explicit for "strong" type checking.

Definition at line 143 of file Vector.h.

template<class _Tp>
oomph::Vector< _Tp >::Vector ( size_type  __n,
const _Tp &  __value 
) [inline]

A constructor that creates a vector of size __n and initialises every entry to __value.

Definition at line 147 of file Vector.h.

template<class _Tp>
oomph::Vector< _Tp >::Vector ( const Vector< _Tp > &  __x  )  [inline]

Copy constructor.

Definition at line 150 of file Vector.h.


Member Function Documentation

template<class _Tp>
void oomph::Vector< _Tp >::initialise ( const _Tp &  __value  )  [inline]

Iterate over all values and set to the desired value.

Definition at line 157 of file Vector.h.

Referenced by oomph::BlockPreconditioner< MATRIX >::block_setup(), oomph::GeneralisedElement::get_jacobian(), oomph::GeneralisedElement::get_jacobian_and_mass_matrix(), oomph::GeneralisedElement::get_mass_matrix(), oomph::GeneralisedElement::get_residuals(), oomph::SolidFiniteElement::get_residuals_for_solid_ic(), oomph::PseudoBucklingRingElement::get_residuals_generic(), and oomph::BlockPreconditioner< oomph::CRDoubleMatrix >::set_nmesh().


The documentation for this class was generated from the following file:
Generated on Mon Aug 10 11:26:15 2009 by  doxygen 1.4.7