msoeken / kitty Goto Github PK
View Code? Open in Web Editor NEWC++ truth table library
License: MIT License
C++ truth table library
License: MIT License
I got this warning when calling cmake:
CMake Warning at test/googletest/googletest/CMakeLists.txt:47 (project):
VERSION keyword not followed by a value or was followed by a value that expanded to nothing.
It can still configure and compile successfully, so it's not a big problem I guess.
The code quality check is shown as failing. I tried to login to Codacy with my GitHub account but it still says "Something went wrong, we couldn't reach that repository. Could not find repository manual/msoeken/kitty". @msoeken, do you plan to do something with that (fix it or remove it)?
static_truth_table
and dynamic_truth_table
do not implement operator==
and operator!=
, so code like tt1 == tt2
does not work. It seems you still can compare truth tables with something like the following (untested) code:
bool eq = true;
for (auto it = tt1.begin(), it2 = tt2.begin(); ; ++it, ++it2) {
if (it == tt1.end()) {
eq &= it2 == tt2.end();
break;
} else if (it2 == tt2.end()) {
eq = false;
break;
}
eq &= *it == *it2;
}
Is it possible to implement operator==
and operator!=
on these classes to avoid having to do this? It should be possible to do some template-based specialization to optimize these too.
OTOH perhaps I've misunderstood something and equality comparison makes no sense on these classes. In which case, I would be interested to learn of this too.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.