Bra Class Reference

Bra, the bra class definition. More...

#include <Bra.h>

Inheritance diagram for Bra:
Ket TensorBra

List of all members.

Public Member Functions

 Bra (int dim_i=1)
 Default bra constructor.
 Bra (int dim_i, complex< double > *Vtab_i)
 Creates a Bra with dimension dim_i, and data Vtab_i.
 Bra (const Ket &v)
 Constructor by copy from a Ket.
 Bra (const Bra &v)
 Constructor by copy.
void print () const
 Print the vector in a row.
Ket getket () const
 Send the respective Ket.

Friends

EXPORTED_FUNCTION Bra operator* (complex< double > a, const Bra &v)
 Scalar complex - bra multiplication.
EXPORTED_FUNCTION Bra operator* (double a, const Bra &v)
 Scalar double - bra multiplication.

Detailed Description

Bra, the bra class definition.

This class provides all the necessaries proprieties to work with bra and operators.


Constructor & Destructor Documentation

Bra::Bra ( int  dim_i = 1  )  [inline]

Default bra constructor.

Bra::Bra ( int  dim_i,
complex< double > *  Vtab_i 
) [inline]

Creates a Bra with dimension dim_i, and data Vtab_i.

Bra::Bra ( const Ket v  )  [inline]

Constructor by copy from a Ket.

Bra::Bra ( const Bra v  )  [inline]

Constructor by copy.


Member Function Documentation

Ket Bra::getket (  )  const

Send the respective Ket.

Returns:
Returns the respective ket.
void Bra::print (  )  const

Print the vector in a row.

Output the vector as a row vector, i.e.: v.print();

Returns:
Returns the bra output.

Reimplemented from Ket.


Friends And Related Function Documentation

EXPORTED_FUNCTION Bra operator* ( double  a,
const Bra v 
) [friend]

Scalar double - bra multiplication.

Reimplemented from Ket.

EXPORTED_FUNCTION Bra operator* ( complex< double >  a,
const Bra v 
) [friend]

Scalar complex - bra multiplication.

Reimplemented from Ket.


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

Generated on Sun Sep 6 20:54:29 2009 for CQEDSimulator by  doxygen 1.6.1