MCPcopy Create free account
hub / github.com/coin-or/CppAD / IsReal

Function IsReal

example/general/bool_fun.cpp:30–31  ·  view source on GitHub ↗

a unary bool function with Complex argument

Source from the content-addressed store, hash-verified

28namespace {
29 // a unary bool function with Complex argument
30 static bool IsReal(const Complex &x)
31 { return x.imag() == 0.; }
32
33 // a binary bool function with Complex arguments
34 static bool AbsGeq(const Complex &x, const Complex &y)

Callers 1

BoolFunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected