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< typename Eigen::CwiseNullaryOp< Eigen::internal::scalar_constant_op< Scalar >, Derived > > Struct Template Reference

Storage for a constant matrix. More...

#include <alt_matrix.hpp>

Public Types

typedef Eigen::CwiseNullaryOp
< Eigen::internal::scalar_constant_op
< Scalar >, Derived > 
ReturnType
 
typedef const ReturnType ConstReturnType
 
typedef Eigen::NumTraits
< Scalar >::Real 
Real
 

Public Member Functions

 storage (const Eigen::CwiseNullaryOp< Eigen::internal::scalar_constant_op< Scalar >, Derived > &value)
 
ReturnType get () const
 
void swap (storage &other)
 
void swap (ReturnType &)
 
Index rows () const
 
Index cols () const
 
void resize (Index rows, Index cols)
 
void conservativeResize (Index rows, Index cols)
 
Scalar operator() (Index, Index) const
 
template<typename CwiseUnaryOp >
void unaryExprInPlace (const CwiseUnaryOp &op)
 
Real squaredNorm () const
 
Scalar sum () const
 
const std::type_info & getTypeId () const
 
ReturnType block (Index, Index, Index blockRows, Index blockCols) const
 

Data Fields

Scalar m_value
 
Index m_rows
 
Index m_cols
 

Detailed Description

template<typename Scalar, typename Derived>
struct kqp::storage< typename Eigen::CwiseNullaryOp< Eigen::internal::scalar_constant_op< Scalar >, Derived > >

Storage for a constant matrix.


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