FreeTensor
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
linear.h File Reference
#include <algorithm>
#include <iostream>
#include <analyze/all_uses.h>
#include <hash.h>
Include dependency graph for linear.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  freetensor::Scale< T >
 
struct  freetensor::LinearExpr< T >
 

Namespaces

namespace  freetensor
 

Functions

template<class T >
LinearExpr< T > freetensor::add (const LinearExpr< T > &lhs, const LinearExpr< T > &rhs)
 
template<class T >
LinearExpr< T > freetensor::sub (const LinearExpr< T > &lhs, const LinearExpr< T > &rhs)
 
template<class T >
LinearExpr< T > freetensor::mul (const LinearExpr< T > &lin, const T &k)
 
template<class T >
bool freetensor::hasIdenticalCoeff (const LinearExpr< T > &lhs, const LinearExpr< T > &rhs)
 
template<class T >
requires std::integral<T> || std::floating_point<T>
Expr freetensor::lin2expr (const LinearExpr< T > &lin)
 
template<class T >
bool freetensor::operator== (const LinearExpr< T > &lhs, const LinearExpr< T > &rhs)
 
template<class T >
std::ostream & freetensor::operator<< (std::ostream &os, const LinearExpr< T > &lin)