fennec
Loading...
Searching...
No Matches
relational.h File Reference

Relational More...

Go to the source code of this file.

Detailed Description

Author
Medusa Slockbower

Functions

template<typename genType , typename genBType = bool_t, size_t... i>
constexpr vector< genBType, i... > fennec::lessThan (const vector< genType, i... > &x, const vector< genType, i... > &y)
 Returns the component-wise compare of x < y.
 
template<typename genType , typename genBType = bool_t, size_t... i>
constexpr vector< genBType, i... > fennec::lessThanEqual (const vector< genType, i... > &x, const vector< genType, i... > &y)
 Returns the component-wise compare of x <= y.
 
template<typename genType , typename genBType = bool_t, size_t... i>
constexpr vector< genBType, i... > fennec::greaterThan (const vector< genType, i... > &x, const vector< genType, i... > &y)
 Returns the component-wise compare of x > y.
 
template<typename genType , typename genBType = bool_t, size_t... i>
constexpr vector< genBType, i... > fennec::greaterThanEqual (const vector< genType, i... > &x, const vector< genType, i... > &y)
 Returns the component-wise compare of x >= y.
 
template<typename genType , typename genBType = bool_t, size_t... i>
constexpr vector< genBType, i... > fennec::equal (const vector< genType, i... > &x, const vector< genType, i... > &y)
 Returns the component-wise compare of x == y.
 
template<typename genType , typename genBType = bool_t, size_t... i>
constexpr vector< genBType, i... > fennec::notEqual (const vector< genType, i... > &x, const vector< genType, i... > &y)
 Returns the component-wise compare of x != y.
 
template<typename genBType = bool_t, size_t... i>
constexpr genBType fennec::any (const vector< genBType, i... > &x)
 Returns \(true\) if any component of \(x\) is \(true\).
 
template<typename genBType = bool_t, size_t... i>
constexpr genBType fennec::all (const vector< genBType, i... > &x)
 Returns \(true\) if all components of \(x\) are \(true\).
 
template<typename genBType = bool_t, size_t... i>
constexpr vector< genBType, i... > fennec::operator not (const vector< genBType, i... > &x)
 Returns the component-wise logical complement of \(x\).
 

Function Documentation

◆ lessThan()

template<typename genType , typename genBType = bool_t, size_t... i>
constexpr vector< genBType, i... > fennec::lessThan ( const vector< genType, i... > &  x,
const vector< genType, i... > &  y 
)
constexpr
Returns
the component-wise compare of x < y.
Parameters
xlhs of the expression
yrhs of the expression

◆ lessThanEqual()

template<typename genType , typename genBType = bool_t, size_t... i>
constexpr vector< genBType, i... > fennec::lessThanEqual ( const vector< genType, i... > &  x,
const vector< genType, i... > &  y 
)
constexpr
Returns
the component-wise compare of x <= y.
Parameters
xlhs of the expression
yrhs of the expression

◆ greaterThan()

template<typename genType , typename genBType = bool_t, size_t... i>
constexpr vector< genBType, i... > fennec::greaterThan ( const vector< genType, i... > &  x,
const vector< genType, i... > &  y 
)
constexpr
Returns
the component-wise compare of x > y.
Parameters
xlhs of the expression
yrhs of the expression

◆ greaterThanEqual()

template<typename genType , typename genBType = bool_t, size_t... i>
constexpr vector< genBType, i... > fennec::greaterThanEqual ( const vector< genType, i... > &  x,
const vector< genType, i... > &  y 
)
constexpr
Returns
the component-wise compare of x >= y.
Parameters
xlhs of the expression
yrhs of the expression

◆ equal()

template<typename genType , typename genBType = bool_t, size_t... i>
constexpr vector< genBType, i... > fennec::equal ( const vector< genType, i... > &  x,
const vector< genType, i... > &  y 
)
constexpr
Returns
the component-wise compare of x == y.
Parameters
xlhs of the expression
yrhs of the expression

◆ notEqual()

template<typename genType , typename genBType = bool_t, size_t... i>
constexpr vector< genBType, i... > fennec::notEqual ( const vector< genType, i... > &  x,
const vector< genType, i... > &  y 
)
constexpr
Returns
the component-wise compare of x != y.
Parameters
xlhs of the expression
yrhs of the expression

◆ any()

template<typename genBType = bool_t, size_t... i>
constexpr genBType fennec::any ( const vector< genBType, i... > &  x)
constexpr
Returns
\(true\) if any component of \(x\) is \(true\)
Parameters
xthe boolean vector to test

◆ all()

template<typename genBType = bool_t, size_t... i>
constexpr genBType fennec::all ( const vector< genBType, i... > &  x)
constexpr
Returns
\(true\) if all components of \(x\) are \(true\)
Parameters
xthe boolean vector to test

◆ operator not()

template<typename genBType = bool_t, size_t... i>
constexpr vector< genBType, i... > fennec::operator not ( const vector< genBType, i... > &  x)
constexpr

Returns
the component-wise logical complement of \(x\).
Parameters
xthe boolean vector to inverse