TVM  0.9.4
tvm::diagnostic Namespace Reference

Namespaces

 internal
 

Classes

class  GraphProbe
 

Functions

template<typename MatrixOrMapType >
bool isInMatrix (typename MatrixOrMapType::Scalar const *ptr, MatrixOrMapType &M)
 
template<typename MatrixT , typename MatrixOrMapType >
bool isInMatrix (const MatrixT &A, Eigen::Index i, Eigen::Index j, MatrixOrMapType &M)
 
template<typename Derived >
bool hasElemAbsInRange (const Eigen::MatrixBase< Derived > &A, typename Derived::Scalar emin, typename Derived::Scalar emax)
 

Detailed Description

Copyright 2017-2021 CNRS-AIST JRL and CNRS-UM LIRMM

Function Documentation

◆ hasElemAbsInRange()

template<typename Derived >
bool tvm::diagnostic::hasElemAbsInRange ( const Eigen::MatrixBase< Derived > &  A,
typename Derived::Scalar  emin,
typename Derived::Scalar  emax 
)
inline

Check if any element e of A is such that emin<=abs(e)<=emax.

◆ isInMatrix() [1/2]

template<typename MatrixT , typename MatrixOrMapType >
bool tvm::diagnostic::isInMatrix ( const MatrixT &  A,
Eigen::Index  i,
Eigen::Index  j,
MatrixOrMapType &  M 
)
inline

Check if a A(i,j) is an element of M

Template Parameters
MatrixOrMapTypeAn Eigen type with a data method

◆ isInMatrix() [2/2]

template<typename MatrixOrMapType >
bool tvm::diagnostic::isInMatrix ( typename MatrixOrMapType::Scalar const *  ptr,
MatrixOrMapType &  M 
)
inline

Check if a given address belongs to the data of a matrix

Parameters
ptrThe address to test.
Mthe matrix.
Template Parameters
MatrixOrMapTypeAn Eigen type with a data method