psi::MatrixFactory Class Reference
[libmints: Integral library]

A class for creating Matrix, SimpleMatrix, Vector, and SimpleVector objects. More...

#include <factory.h>

List of all members.

Public Member Functions

 MatrixFactory ()
 Default constructor, does nothing.
 MatrixFactory (const MatrixFactory &copy)
 Copy constructor.
bool init_with_chkpt (shared_ptr< psi::PSIO > psio)
 Initializes the matrix factory by creating a chkpt object with a psio reference.
bool init_with_chkpt (shared_ptr< psi::Chkpt > chkpt)
 Initializes the matrix factory using the given chkpt object.
bool init_with (int nirreps, int *rowspi, int *colspi)
 Manually initialize the matrix factory.
int nirreps () const
 Returns number of irreps.
int * rowspi () const
 Returns the rows per irrep array.
int nrows (int h) const
 Returns the number of rows in irrep h.
int * colspi () const
 Returns the columns per irrep array.
int ncols (int h) const
 Returns the number of columns in irrep h.
int nso () const
 Returns the number of orbitals.
Matrixcreate_matrix ()
 Returns a new Matrix object with default dimensions.
void create_matrix (Matrix &mat)
Matrixcreate_matrix (std::string name)
 Returns a new Matrix object named name with default dimensions.
void create_matrix (Matrix &mat, std::string name)
Vectorcreate_vector ()
 Returns a new Vector object with default dimensions.
void create_vector (Vector &vec)
SimpleMatrixcreate_simple_matrix ()
 Returns a new SimpleMatrix object with default dimensions.
void create_simple_matrix (SimpleMatrix &mat)
SimpleMatrixcreate_simple_matrix (std::string name)
 Returns a new SimpleMatrix object named name with default dimensions.
void create_simple_matrix (SimpleMatrix &mat, std::string name)
SimpleMatrixcreate_simple_matrix (std::string name, int m, int n)
 Returns a new SimpleMatrix object named name of size m x n.
void create_simple_matrix (SimpleMatrix &mat, std::string name, int m, int n)
SimpleMatrixcreate_simple_matrix (int m, int n)
 Returns a new SimpleMatrix object with size m x n.
void create_simple_matrix (SimpleMatrix &mat, int m, int n)
SimpleVectorcreate_simple_vector ()
 Returns a new SimpleVector object with default dimension.
SimpleVectorcreate_simple_vector (int m)
 Returns a new SimpleVector object with size m.


Detailed Description

A class for creating Matrix, SimpleMatrix, Vector, and SimpleVector objects.

The objects this factory creates can automatically be sized based on information from checkpoint.


The documentation for this class was generated from the following files:

Generated on Mon Dec 21 14:14:47 2009 for PSI by  doxygen 1.5.6