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

RefSCVector Class Reference

The RefSCVector class is a smart pointer to an SCVector specialization. More...

#include <matrix.h>

Inheritance diagram for RefSCVector

Inheritance graph
[legend]
Collaboration diagram for RefSCVector:

Collaboration graph
[legend]
List of all members.

Public Methods

 RefSCVector ()
 Initializes the vector pointer to 0. More...

 RefSCVector (const RefSCVector &v)
 Make this and v refer to the same SCVector.

 RefSCVector (SCVector *v)
 Make this refer to v.

 ~RefSCVector ()
RefSCVector& operator= (SCVector *v)
 Make this refer to v.

RefSCVector& operator= (const RefSCVector &v)
 Make this and v refer to the same SCVector.

 RefSCVector (const RefSCDimension &dim, const Ref< SCMatrixKit > &)
 Create a vector with dimension dim. More...

SCVectordouble operator() (int) const
 Return an l-value that can be used to assign or retrieve an element.

SCVectordouble operator[] (int) const
 Return an l-value that can be used to assign or retrieve an element.

RefSCVector operator+ (const RefSCVector &a) const
 Add two vectors.

RefSCVector operator- (const RefSCVector &a) const
 Subtract two vectors.

RefSCVector operator * (double) const
 Scale a vector.

RefSCMatrix outer_product (const RefSCVector &v) const
 Return the outer product between this and v.

RefSymmSCMatrix symmetric_outer_product () const
 The outer product of this with itself is a symmetric matrix.

void set_element (int i, double val) const
void accumulate_element (int i, double val) const
double get_element (int) const
int n () const
RefSCDimension dim () const
Ref<SCMatrixKitkit () const
RefSCVector clone () const
RefSCVector copy () const
double maxabs () const
double scalar_product (const RefSCVector &) const
double dot (const RefSCVector &) const
void normalize () const
void randomize () const
void assign (const RefSCVector &v) const
void assign (double val) const
void assign (const double *v) const
void convert (double *) const
void scale (double val) const
void accumulate (const RefSCVector &v) const
void accumulate_product (const RefSymmSCMatrix &, const RefSCVector &)
void accumulate_product (const RefSCMatrix &, const RefSCVector &)
void element_op (const Ref< SCElementOp > &op) const
void element_op (const Ref< SCElementOp2 > &, const RefSCVector &) const
void element_op (const Ref< SCElementOp3 > &, const RefSCVector &, const RefSCVector &) const
void print (std::ostream &out) const
void print (const char *title=0, std::ostream &out=ExEnv::out(), int precision=10) const
void save (StateOut &)
void restore (StateIn &)

Detailed Description

The RefSCVector class is a smart pointer to an SCVector specialization.


Constructor & Destructor Documentation

RefSCVector::RefSCVector ( )
 

Initializes the vector pointer to 0.

The reference must be initialized before it is used.

RefSCVector::RefSCVector ( const RefSCDimension & dim,
const Ref< SCMatrixKit > & )
 

Create a vector with dimension dim.

The data values are undefined.


The documentation for this class was generated from the following file:
Generated at Thu Oct 4 18:09:41 2001 for MPQC 2.0.0 using the documentation package Doxygen 1.2.5.