Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

VectorI Class Reference

A user level class for an integer column Vector. More...

#include <vectorI.h>

Inheritance diagram for VectorI:

MatrixC Matrix List of all members.

Public Methods

 VectorI ()
 standard default constructor.

 VectorI (const int nr, const int value=0)
 standard constructor.

 VectorI (const int* A, const int nr)
 constructor that takes an int array of length nr.

 VectorI (const VectorI& B)
 copy constructor.

 ~VectorI ()
 virtual destructor.

VectorI& operator= (const int value)
 assignment with a constant value.

void resize (const int nr, const int value=0)
 member function resize calls MdataC resize.

virtual Ref<int> operator() (const int i, const int)
 non constant, write access to elements.

virtual int operator() (const int i, const int) const
 constant, read only access to elements.

virtual void stream (ostream& s)
 output to stream.

int multiply (const VectorI& B) const
 dot product of this Vector with Vector B.


Protected Methods

virtual int* ref (const int i) const
 low level reference to data returns a pointer, use this with care.

virtual int read (const int i) const
 low level read.

virtual void write (const int i, const int v)
 low level write.

virtual void add (const int i, const int v)
 low level add to.

virtual void sub (const int i, const int v)
 low level sub from.

virtual void mul (const int i, const int v)
 low level mul with.

virtual void div (const int i, const int v)
 low level div by.


Detailed Description

A user level class for an integer column Vector.

Author(s):
rokrau
Date:
2000/11/09 18:41:32


Constructor & Destructor Documentation

VectorI::VectorI ( ) [explicit]
 

standard default constructor.

VectorI::VectorI ( const int nr,
const int value = 0 ) [explicit]
 

standard constructor.

VectorI::VectorI ( const int * A,
const int nr ) [explicit]
 

constructor that takes an int array of length nr.

VectorI::VectorI ( const VectorI & B )
 

copy constructor.

VectorI::~VectorI ( ) [inline]
 

virtual destructor.


Member Function Documentation

VectorI & VectorI::operator= ( const int value ) [inline]
 

assignment with a constant value.

void VectorI::resize ( const int nr,
const int value = 0 ) [inline]
 

member function resize calls MdataC resize.

Ref< int > VectorI::operator() ( const int i,
const int ) [inline, virtual]
 

non constant, write access to elements.

Reimplemented from MatrixC.

int VectorI::operator() ( const int i,
const int ) const [inline, virtual]
 

constant, read only access to elements.

Reimplemented from MatrixC.

int * VectorI::ref ( const int i ) const [inline, protected, virtual]
 

low level reference to data returns a pointer, use this with care.

int VectorI::read ( const int i ) const [inline, protected, virtual]
 

low level read.

void VectorI::write ( const int i,
const int v ) [inline, protected, virtual]
 

low level write.

void VectorI::add ( const int i,
const int v ) [inline, protected, virtual]
 

low level add to.

void VectorI::sub ( const int i,
const int v ) [inline, protected, virtual]
 

low level sub from.

void VectorI::mul ( const int i,
const int v ) [inline, protected, virtual]
 

low level mul with.

void VectorI::div ( const int i,
const int v ) [inline, protected, virtual]
 

low level div by.

void VectorI::stream ( ostream & s ) [virtual]
 

output to stream.

Reimplemented from MatrixC.

int VectorI::multiply ( const VectorI & B ) const
 

dot product of this Vector with Vector B.


The documentation for this class was generated from the following file:
Generated at Wed Nov 22 08:38:29 2000 for LinAl - a simple and efficient Matrix library - by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000