CQEDSimulator.cpp File Reference

Contains all fonctions for matlab or win32 program. More...

#include "CQEDSimulator.h"
#include "QO.h"
#include "includes.h"

Defines

#define _USE_MATH_DEFINES

Functions

void SendMatrixToMatlab (SMatrix A, const char *name)
 Send a matrix to Matlab workspace.
void SendVariableToMatlab (complex< double > A, const char *name)
 Send a complex variable to Matlab workspace.
void SendVariableToMatlab (double A, const char *name)
 Send a double to Matlab workspace.
SMatrix GetMatrixFromMatlab (const char *variable)
 Get a matrix to Matlab workspace.
EXPORTED_FUNCTION void WignerFunctionFock (int dim, int non0row, int non0col)
 Calculate the Wigner Function for fock states.
EXPORTED_FUNCTION void TestMatrix (void)
 Test all matrix functions.
EXPORTED_FUNCTION void Test2Matrix (void)
 Test matrix operations.
EXPORTED_FUNCTION void TestMatrixFunctions (const char *variable)
 Get a matlab matrix and calculate all matrix operations.
EXPORTED_FUNCTION void TestKet (void)
 Test Ket operations.
EXPORTED_FUNCTION void TestBra (void)
 Test Bra operations.
EXPORTED_FUNCTION void TestBraKetOperator (void)
 Test Bra Ket operations.
EXPORTED_FUNCTION void TestQO (void)
 Test the Quantum Operators operations.

Detailed Description

Contains all fonctions for matlab or win32 program.


Define Documentation

#define _USE_MATH_DEFINES

Function Documentation

SMatrix GetMatrixFromMatlab ( const char *  variable  ) 

Get a matrix to Matlab workspace.

Parameters:
variable Get the name of the Matlab variable.
Returns:
Returns a SMatrix with the Matlab variable.
void SendMatrixToMatlab ( SMatrix  A,
const char *  name 
)

Send a matrix to Matlab workspace.

Parameters:
A The CQEDSimulator matrix.
name The name of variable to be allocated in Matlab.
void SendVariableToMatlab ( double  A,
const char *  name 
)

Send a double to Matlab workspace.

Parameters:
A The CQEDSimulator double.
name The name of variable to be allocated in Matlab.
void SendVariableToMatlab ( complex< double >  A,
const char *  name 
)

Send a complex variable to Matlab workspace.

Parameters:
A The CQEDSimulator complex.
name The name of variable to be allocated in Matlab.
EXPORTED_FUNCTION void Test2Matrix ( void   ) 

Test matrix operations.

EXPORTED_FUNCTION void TestBra ( void   ) 

Test Bra operations.

EXPORTED_FUNCTION void TestBraKetOperator ( void   ) 

Test Bra Ket operations.

EXPORTED_FUNCTION void TestKet ( void   ) 

Test Ket operations.

EXPORTED_FUNCTION void TestMatrix ( void   ) 

Test all matrix functions.

EXPORTED_FUNCTION void TestMatrixFunctions ( const char *  variable  ) 

Get a matlab matrix and calculate all matrix operations.

EXPORTED_FUNCTION void TestQO ( void   ) 

Test the Quantum Operators operations.

EXPORTED_FUNCTION void WignerFunctionFock ( int  dim,
int  non0row,
int  non0col 
)

Calculate the Wigner Function for fock states.

Calculates the Wigner function for fock states.

Parameters:
dim The Hilbert space dimention.
non0row The non zero row for density matrix.
non0col The non zero column for density matrix.
Returns:
Creates 3 files with x,y,z points.

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