Kernel Quantum Probability Library
The KQP library aims at providing tools for working with quantums probabilities
Public Types | Public Member Functions | Data Fields
kqp::storage< Derived > Struct Template Reference

Default storage type for AltMatrix nested types. More...

#include <alt_matrix.hpp>

Public Types

typedef Derived & ReturnType
 
typedef const Derived & ConstReturnType
 
typedef
Eigen::internal::traits
< Derived >::Scalar 
Scalar
 
typedef Eigen::NumTraits
< typename
Eigen::internal::traits
< Derived >::Scalar >::Real 
Real
 

Public Member Functions

 storage (const Derived &value)
 
ConstReturnType get () const
 
ReturnType get ()
 
void swap (storage &other)
 
void swap (Derived &value)
 
Index rows () const
 
Index cols () const
 
Scalar trace () const
 
void resize (Index rows, Index cols)
 
void conservativeResize (Index rows, Index cols)
 
Eigen::internal::traits
< Derived >::Scalar 
operator() (Index i, Index j) const
 
template<typename CwiseUnaryOp >
void unaryExprInPlace (const CwiseUnaryOp &op)
 
Real squaredNorm () const
 
Scalar sum () const
 
const std::type_info & getTypeId () const
 
auto block (Index startRow, Index startCol, Index blockRows, Index blockCols) -> decltype(m_value.block(0, 0, 0, 0))
 
auto block (Index startRow, Index startCol, Index blockRows, Index blockCols) const -> decltype(const_cast< ConstReturnType >(m_value).block(0, 0, 0, 0))
 

Data Fields

Derived m_value
 

Detailed Description

template<typename Derived>
struct kqp::storage< Derived >

Default storage type for AltMatrix nested types.


The documentation for this struct was generated from the following file: