ModErn Text Analysis
META Enumerates Textual Applications
Namespaces | Functions
parallel_test.h File Reference
#include <cmath>
#include <algorithm>
#include <numeric>
#include "test/unit_test.h"
#include "util/time.h"
#include "parallel/parallel_for.h"
#include "parallel/thread_pool.h"

Go to the source code of this file.

Namespaces

 meta
 The ModErn Text Analysis toolkit is a suite of natural language processing, classification, information retreival, data mining, and other applications of text processing.
 
 meta::testing
 Contains unit testing functions for the META toolkit.
 

Functions

template<class Type >
void meta::testing::hard_func (Type &x)
 
template<class Type >
void meta::testing::easy_func (Type &x)
 
int meta::testing::test_speed (std::vector< double > &v)
 Assumes multi-core machine: tests speed; serial should be slower than parallel. More...
 
int meta::testing::test_correctness (std::vector< double > &v)
 Checks that each thread touches each index exactly once. More...
 
int meta::testing::test_threadpool ()
 Tests the threadpool. More...
 
int meta::testing::parallel_tests ()
 Tests all the parallel functions. More...
 

Detailed Description

Author
Sean Massung

All files in META are dual-licensed under the MIT and NCSA licenses. For more details, consult the file LICENSE.mit and LICENSE.ncsa in the root of the project.