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< Eigen::CwiseNullaryOp< Eigen::internal::scalar_identity_op< Scalar >, Eigen::Matrix< Scalar, Dynamic, Dynamic > > > Struct Template Reference

Storage for the identity (with cwise) More...

#include <alt_matrix.hpp>

Public Types

typedef Eigen::CwiseNullaryOp
< Eigen::internal::scalar_identity_op
< Scalar >, Eigen::Matrix
< Scalar, Dynamic, Dynamic > > 
Type
 
typedef Eigen::CwiseNullaryOp
< Eigen::internal::scalar_constant_op
< Scalar >, Eigen::Matrix
< Scalar, Dynamic, 1 > > 
VectorType
 
typedef Type ReturnType
 
typedef const Type ConstReturnType
 
typedef Eigen::NumTraits
< Scalar >::Real 
Real
 

Public Member Functions

 storage (const Type &value)
 
ReturnType get () const
 
void swap (storage &other)
 
void swap (Type &)
 
void resize (Index rows, Index cols)
 
void conservativeResize (Index rows, Index cols)
 
Index rows () const
 
Index cols () const
 
Scalar operator() (Index i, Index j) const
 
template<typename CwiseUnaryOp >
void unaryExprInPlace (const CwiseUnaryOp &)
 
Real squaredNorm () const
 
Scalar sum () const
 
const std::type_info & getTypeId () const
 
DiagonalBlockWrapper< VectorType > block (Index startCol, Index startRow, Index blockRows, Index blockCols) const
 

Data Fields

Index m_rows
 
Index m_cols
 

Detailed Description

template<typename Scalar>
struct kqp::storage< Eigen::CwiseNullaryOp< Eigen::internal::scalar_identity_op< Scalar >, Eigen::Matrix< Scalar, Dynamic, Dynamic > > >

Storage for the identity (with cwise)


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