TVM  0.9.4
tvm::internal::KeepProperties< MatrixType, refOnProperties > Class Template Reference

#include <tvm/internal/MatrixWithProperties.h>

Public Member Functions

 KeepProperties (ObjectWithProperties< MatrixType, refOnProperties > &M, bool keep)
 
template<typename OtherDerived >
ObjectWithProperties< MatrixType, refOnProperties > & operator= (const Eigen::MatrixBase< OtherDerived > &other)
 
template<bool b>
ObjectWithProperties< MatrixType, refOnProperties > & operator= (const ObjectWithProperties< MatrixType, b > &)=delete
 

Detailed Description

template<typename MatrixType, bool refOnProperties = false>
class tvm::internal::KeepProperties< MatrixType, refOnProperties >

A lightweight proxy for indicating if the assignment of an Eigen expression to a MatrixWithProperties should reset the properties (which is the default behavior.

Constructor & Destructor Documentation

◆ KeepProperties()

template<typename MatrixType , bool refOnProperties = false>
tvm::internal::KeepProperties< MatrixType, refOnProperties >::KeepProperties ( ObjectWithProperties< MatrixType, refOnProperties > &  M,
bool  keep 
)
inline

Create the proxy.

Parameters
MThe MatrixWithProperties
keepSpecifies if the properties should be kept (true) or not (false)

Member Function Documentation

◆ operator=() [1/2]

template<typename MatrixType , bool refOnProperties>
template<typename OtherDerived >
ObjectWithProperties< MatrixType, refOnProperties > & tvm::internal::KeepProperties< MatrixType, refOnProperties >::operator= ( const Eigen::MatrixBase< OtherDerived > &  other)
inline

The assignment operator for Eigen's expression

◆ operator=() [2/2]

template<typename MatrixType , bool refOnProperties = false>
template<bool b>
ObjectWithProperties<MatrixType, refOnProperties>& tvm::internal::KeepProperties< MatrixType, refOnProperties >::operator= ( const ObjectWithProperties< MatrixType, b > &  )
delete

We delete this operator so that it cannot be used for the classical copy operator of MatrixWithProperties.


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