home | help
sc::RefDiagSCMatrix(3)	    Library Functions Manual	  sc::RefDiagSCMatrix(3)

NAME
     sc::RefDiagSCMatrix  -  The  RefDiagSCMatrix class is a smart pointer to an
     DiagSCMatrix specialization.

SYNOPSIS
     #include <matrix.h>

     Inherits sc::Ref< DiagSCMatrix >.

   Public Member Functions
     RefDiagSCMatrix ()
	 Initializes the matrix pointer to 0.
     RefDiagSCMatrix (const RefDiagSCMatrix &m)
	 Make this and m refer to the same SCMatrix.
     RefDiagSCMatrix (DiagSCMatrix *m)
	 Make this refer to m.
     RefDiagSCMatrix & operator= (DiagSCMatrix *m)
	 Make this refer to m.
     RefDiagSCMatrix & operator= (const RefDiagSCMatrix &m)
	 Make this and m refer to the same matrix.
     RefDiagSCMatrix (const RefSCDimension &, const Ref< SCMatrixKit > &)
	 Create a diagonal matrix with dimension d by d.
     RefSCMatrix operator* (const RefSCMatrix &) const
	 Multiply this by a matrix and return a matrix.
     RefDiagSCMatrix operator* (double) const
     RefDiagSCMatrix operator+ (const RefDiagSCMatrix &) const
	 Matrix addition and subtraction.
     RefDiagSCMatrix operator- (const RefDiagSCMatrix &) const
     RefDiagSCMatrix i () const
	 Return the inverse of this.
     RefDiagSCMatrix gi () const
	 Return the generalized inverse of this.
     RefDiagSCMatrix clone () const
	 These call the SCMatrix members of the same  name  after  checking  for
	 references to 0.
     RefDiagSCMatrix copy () const
     void set_element (int, double) const
     void accumulate_element (int, double) const
     double get_element (int) const
     void randomize () const
     void assign (const RefDiagSCMatrix &) const
     void scale (double) const
     void assign (double) const
     void assign (const double *) const
     void convert (double *) const
     void accumulate (const RefDiagSCMatrix &) const
     void element_op (const Ref< SCElementOp > &) const
     void  element_op  (const  Ref<  SCElementOp2  > &, const RefDiagSCMatrix &)
	 const
     void element_op (const Ref< SCElementOp3  >  &,  const  RefDiagSCMatrix  &,
	 const RefDiagSCMatrix &) const
     int n () const
     RefSCDimension dim () const
     Ref< SCMatrixKit > kit () const
     double trace () const
     void print (std::ostream &) const
     void  print  (const char *title=0, std::ostream &out=ExEnv::out0(), int=10)
	 const
     void save (StateOut &)
     void restore (StateIn &)
	 Restores the matrix from StateIn object. The matrix must have been ini-
	 tialized already.
     double determ () const
	 Returns the determinant of the referenced matrix.
     DiagSCMatrixdouble operator() (int i) const
	 Assign and examine matrix elements.
     int nblock () const
	 If this matrix is blocked return the number of blocks.
     RefDiagSCMatrix block (int i) const
	 If this matrix is blocked return block i.

     Public Member Functions inherited from sc::Ref< DiagSCMatrix >
     Ref ()
	 Create a reference to a null object.
     ~Ref ()
	 Delete this reference to the object.
     DiagSCMatrix * operator-> () const
	 Returns the reference counted object.
     DiagSCMatrix * pointer () const
	 Returns a pointer the reference counted object.
     RefCount * parentpointer () const
	 Implements the parentpointer pure virtual in the base class.
     operator DiagSCMatrix * () const
     DiagSCMatrix & operator* () const
	 Returns a C++ reference to the reference counted object.
     int null () const
	 Return 1 if this is a reference to a null object.
     int nonnull () const
	 Return !null().
     int operator== (const Ref< A > &a) const
	 A variety of ordering and equivalence operators are provided using  the
	 Identity class.
     int operator>= (const Ref< A > &a) const
     int operator<= (const Ref< A > &a) const
     int operator> (const Ref< A > &a) const
     int operator< (const Ref< A > &a) const
     int operator!= (const Ref< A > &a) const
     int compare (const Ref< DiagSCMatrix > &a) const
	 Compare two objects returning -1, 0, or 1.
     void clear ()
	 Refer to the null object.
     Ref< DiagSCMatrix > & operator= (const Ref< DiagSCMatrix > &c)
	 Assignment to c.
     Ref< DiagSCMatrix > & operator<< (const RefBase &a)
	 Assignment to the object that a references using dynamic_cast.
     void assign_pointer (DiagSCMatrix *cr)
	 Assignment to cr.
     void check_pointer () const
	 Check the validity of the pointer.
     void ref_info (std::ostream &os) const
	 Print information about the reference to os.
     void warn (const char *s) const
	 Print a warning concerning the reference.

     Public Member Functions inherited from sc::RefBase
     void require_nonnull () const
	 Requires that a nonnull reference is held.

   Additional Inherited Members
     Protected Member Functions inherited from sc::RefBase
     void warn (const char *msg) const
	 Print a warning message.
     void warn_ref_to_stack () const
	 Called when stack data is referenced.
     void warn_skip_stack_delete () const
	 Called when the deletion of stack data is skipped.
     void warn_bad_ref_count () const
	 Called when the reference count is corrupted.
     void ref_info (RefCount *p, std::ostream &os) const
	 Print information about the reference.
     void ref_info (std::ostream &os) const
     void check_pointer () const
     void reference (RefCount *)
     int dereference (RefCount *)

Detailed Description
     The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specializa-
     tion.

Constructor & Destructor Documentation
   sc::RefDiagSCMatrix::RefDiagSCMatrix ()
     Initializes  the matrix pointer to 0. The reference must be initialized be-
     fore it is used.

     Referenced by block(), clone(), gi(), i(), operator*(), operator+(), opera-
     tor=(), operator=(), RefDiagSCMatrix(), and RefDiagSCMatrix().

   sc::RefDiagSCMatrix::RefDiagSCMatrix (const RefDiagSCMatrix & m)
     Make this and m refer to the same SCMatrix.

     References RefDiagSCMatrix().

   sc::RefDiagSCMatrix::RefDiagSCMatrix (DiagSCMatrix * m)
     Make this refer to m.

     References RefDiagSCMatrix().

   sc::RefDiagSCMatrix::RefDiagSCMatrix (const RefSCDimension & , const Ref< SC-
     MatrixKit > & )
     Create a diagonal matrix with dimension d by d. The data values  are  unde-
     fined.

     References sc::Ref< DiagSCMatrix >::Ref().

Member Function Documentation
   RefDiagSCMatrix sc::RefDiagSCMatrix::block (int i) const
     If this matrix is blocked return block i. Otherwise return this as block 0.

     References i(), and RefDiagSCMatrix().

   RefDiagSCMatrix sc::RefDiagSCMatrix::clone () const
     These  call the SCMatrix members of the same name after checking for refer-
     ences to 0.

     References sc::ExEnv::out0(), sc::Ref< DiagSCMatrix  >::Ref(),  and  RefDi-
     agSCMatrix().

   RefDiagSCMatrix sc::RefDiagSCMatrix::gi () const
     Return the generalized inverse of this.

     References RefDiagSCMatrix().

   RefDiagSCMatrix sc::RefDiagSCMatrix::i () const
     Return the inverse of this.

     References RefDiagSCMatrix().

     Referenced by block(), and operator()().

   int sc::RefDiagSCMatrix::nblock () const
     If this matrix is blocked return the number of blocks. Otherwise return 1.

   DiagSCMatrixdouble sc::RefDiagSCMatrix::operator() (int i) const
     Assign and examine matrix elements.

     References i().

   RefSCMatrix sc::RefDiagSCMatrix::operator* (const RefSCMatrix & ) const
     Multiply this by a matrix and return a matrix.

     References operator*(), and RefDiagSCMatrix().

     Referenced by operator*().

   RefDiagSCMatrix  sc::RefDiagSCMatrix::operator+  (const  RefDiagSCMatrix  & )
     const
     Matrix addition and subtraction.

     References RefDiagSCMatrix().

   RefDiagSCMatrix & sc::RefDiagSCMatrix::operator= (const RefDiagSCMatrix & m)
     Make this and m refer to the same matrix.

     References RefDiagSCMatrix().

   RefDiagSCMatrix & sc::RefDiagSCMatrix::operator= (DiagSCMatrix * m)
     Make this refer to m.

     References RefDiagSCMatrix().

Author
     Generated automatically by Doxygen for MPQC from the source code.

MPQC				  Version 2.3.1 	  sc::RefDiagSCMatrix(3)

home | help