[b6556b]: src / modules / base / functions / Not.cc  Maximize  Restore  History

Download this file

30 lines (22 with data), 423 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <config.h>
#include "Not.h"
using std::vector;
using std::string;
namespace jags {
namespace base {
Not::Not () : ScalarFunction ("!", 1)
{
}
double Not::evaluate(vector<double const*> const &args) const
{
return *args[0] == 0;
}
bool Not::isDiscreteValued(vector<bool> const &mask) const
{
return true;
}
string Not::deparse(vector<string> const &par) const
{
return string("!") + par[0];
}
}}

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks