Quantum++  v0.8.7-devel
C++11 quantum computing library
qpp::experimental::MatrixViewBase< Derived > Class Template Referenceabstract

Matrix view base class for all other views. More...

#include <experimental/experimental.h>

Inheritance diagram for qpp::experimental::MatrixViewBase< Derived >:

Public Member Functions

 MatrixViewBase (const Eigen::MatrixBase< Derived > &A)
 
 MatrixViewBase (const Eigen::MatrixBase< Derived > &&A)=delete
 
idx rows () const noexcept
 
idx cols () const noexcept
 
const Eigen::MatrixBase< Derived > & get_ref () const noexcept
 
Eigen::Matrix< typename Derived::Scalar, Eigen::Dynamic, Eigen::Dynamic > get_copy () const
 
 operator Eigen::Matrix< typename Derived::Scalar, Eigen::Dynamic, Eigen::Dynamic > () const
 
Derived::Scalar at (idx i, idx j=0) const
 
virtual Derived::Scalar operator() (idx i, idx j=0) const =0
 
virtual ~MatrixViewBase ()=default
 

Protected Attributes

const Eigen::MatrixBase< Derived > & _viewA
 

Private Attributes

idx _rows
 
idx _cols
 

Detailed Description

template<typename Derived>
class qpp::experimental::MatrixViewBase< Derived >

Matrix view base class for all other views.

Constructor & Destructor Documentation

template<typename Derived >
qpp::experimental::MatrixViewBase< Derived >::MatrixViewBase ( const Eigen::MatrixBase< Derived > &  A)
inline
template<typename Derived >
qpp::experimental::MatrixViewBase< Derived >::MatrixViewBase ( const Eigen::MatrixBase< Derived > &&  A)
delete
template<typename Derived >
virtual qpp::experimental::MatrixViewBase< Derived >::~MatrixViewBase ( )
virtualdefault

Member Function Documentation

template<typename Derived >
Derived::Scalar qpp::experimental::MatrixViewBase< Derived >::at ( idx  i,
idx  j = 0 
) const
inline
template<typename Derived >
idx qpp::experimental::MatrixViewBase< Derived >::cols ( ) const
inlinenoexcept
template<typename Derived >
Eigen::Matrix<typename Derived::Scalar, Eigen::Dynamic, Eigen::Dynamic> qpp::experimental::MatrixViewBase< Derived >::get_copy ( ) const
inline
template<typename Derived >
const Eigen::MatrixBase<Derived>& qpp::experimental::MatrixViewBase< Derived >::get_ref ( ) const
inlinenoexcept
template<typename Derived >
qpp::experimental::MatrixViewBase< Derived >::operator Eigen::Matrix< typename Derived::Scalar, Eigen::Dynamic, Eigen::Dynamic > ( ) const
inlineexplicit
template<typename Derived >
Derived::Scalar qpp::experimental::MatrixViewBase< Derived >::operator() ( idx  i,
idx  j = 0 
) const
pure virtual
template<typename Derived >
idx qpp::experimental::MatrixViewBase< Derived >::rows ( ) const
inlinenoexcept

Member Data Documentation

template<typename Derived >
idx qpp::experimental::MatrixViewBase< Derived >::_cols
private
template<typename Derived >
idx qpp::experimental::MatrixViewBase< Derived >::_rows
private
template<typename Derived >
const Eigen::MatrixBase<Derived>& qpp::experimental::MatrixViewBase< Derived >::_viewA
protected

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