Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Quantum library internals
[Quantum States and Operations library]

Collaboration diagram for Quantum library internals:

Stuff from under the hood of the quantum library; not really meant for independent use. More...

Functions

template<class T>
scavenge (T scalar, typename linalg_traits< T >::abs_type minabs)
 Returns scalar if its absolute value is not less than minabs, or 0 otherwise.
complex scavenge (complex scalar, double minabs)
 Overloads scavenge<T> to scavenge the real and imaginary parts of scalar independently.
template<class T>
DenseVector< T > & internal_tensor (const DenseVector< T > &v1, const DenseVector< T > &v2, DenseVector< T > &result, T scalar, bool overwrite)
 Internal method used to place scalar times the tensor product of v1 and v2 into result.
template<class T>
DenseVector< T > & internal_tensor (itype N, DenseVector< T > *v_arr[], DenseVector< T > &result, T scalar, bool overwrite)
 Internal method used to place scalar times the tensor product of the first N elements of v_arr into result.
template<class T>
DenseMatrix< T > & internal_tensor (const DenseMatrix< T > &m1, const DenseMatrix< T > &m2, DenseMatrix< T > &result, T scalar, bool overwrite)
 Internal method used to place scalar times the tensor product of m1 and m2 into result.
template<class T>
DenseMatrix< T > & internal_tensor (itype N, DenseMatrix< T > *m_arr[], DenseMatrix< T > &result, T scalar, bool overwrite)
 Internal method used to place scalar times the tensor product of the first N elements of v_arr into result.

Detailed Description

Stuff from under the hood of the quantum library; not really meant for independent use.


Function Documentation

complex scavenge complex  scalar,
double  minabs
[inline]
 

Overloads scavenge<T> to scavenge the real and imaginary parts of scalar independently.

This is used to eliminate tiny, tiny imaginary (or real) components of numbers that are generated by rounding error.


Generated on Wed Jun 14 22:25:41 2006 for linalg by  doxygen 1.4.4