|
Thrill
0.1
|
#include <thrill/api/all_gather.hpp>#include <thrill/api/cache.hpp>#include <thrill/api/generate.hpp>#include <thrill/api/print.hpp>#include <thrill/api/read_lines.hpp>#include <thrill/api/reduce_by_key.hpp>#include <thrill/api/sample.hpp>#include <thrill/api/write_lines.hpp>#include <ostream>#include <random>#include <sstream>#include <string>#include <vector>
Include dependency graph for k-means_step5.cpp:Go to the source code of this file.
Functions | |
| thrill::DIA< Point > | GeneratePoints (thrill::Context &ctx) |
| [step5 GeneratePoints] More... | |
| thrill::DIA< Point > | LoadPoints (thrill::Context &ctx, const char *path) |
| [step5 GeneratePoints] More... | |
| int | main (int argc, char *argv[]) |
| [step5 LoadPoints] More... | |
| std::ostream & | operator<< (std::ostream &os, const Point &p) |
| make ostream-able for Print() More... | |
| std::ostream & | operator<< (std::ostream &os, const ClosestCenter &cc) |
| make ostream-able for Print() More... | |
| void | Process (const thrill::DIA< Point > &points, const char *output) |
| thrill::DIA<Point> GeneratePoints | ( | thrill::Context & | ctx | ) |
[step5 GeneratePoints]
Definition at line 130 of file k-means_step5.cpp.
References thrill::api::Generate().
Referenced by main().
| thrill::DIA<Point> LoadPoints | ( | thrill::Context & | ctx, |
| const char * | path | ||
| ) |
[step5 GeneratePoints]
[step5 LoadPoints]
Definition at line 147 of file k-means_step5.cpp.
References die, and thrill::api::ReadLines().
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
[step5 LoadPoints]
[step5 Run launcher]
Definition at line 166 of file k-means_step5.cpp.
References GeneratePoints(), LoadPoints(), Process(), and thrill::api::Run().
| std::ostream& operator<< | ( | std::ostream & | os, |
| const Point & | p | ||
| ) |
make ostream-able for Print()
Definition at line 47 of file k-means_step5.cpp.
| std::ostream& operator<< | ( | std::ostream & | os, |
| const ClosestCenter & | cc | ||
| ) |
make ostream-able for Print()
Definition at line 58 of file k-means_step5.cpp.
| void Process | ( | const thrill::DIA< Point > & | points, |
| const char * | output | ||
| ) |
[step5 new Process signature] our main processing method
[step5 new Process signature]
[step5 WriteLines output]
[step5 WriteLines output]
Definition at line 65 of file k-means_step5.cpp.
References DIA< ValueType_, Stack_ >::AllGather(), DIA< ValueType_, Stack_ >::Collapse(), DIA< ValueType_, Stack_ >::Map(), DIA< ValueType_, Stack_ >::Print(), DIA< ValueType_, Stack_ >::Sample(), and thrill::mem::to_string().
Referenced by main().