Bra, the bra class definition. More...
#include <Bra.h>
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. | |
Bra, the bra class definition.
This class provides all the necessaries proprieties to work with bra and operators.
| 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 Bra & | v | ) | [inline] |
Constructor by copy.
| void Bra::print | ( | ) | const |
Print the vector in a row.
Output the vector as a row vector, i.e.: v.print();
Reimplemented from Ket.
Scalar double - bra multiplication.
Reimplemented from Ket.
Scalar complex - bra multiplication.
Reimplemented from Ket.
1.6.1