Skip to content

Commit

Permalink
added a note to SuRF's constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Huanchen Zhang authored and Huanchen Zhang committed Nov 13, 2018
1 parent 4cf4879 commit cbf2358
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -29,6 +29,7 @@ A simple example can be found [here](https://github.com/efficient/SuRF/blob/mast
g++ -mpopcnt -std=c++11 simple_example.cpp
./a.out
```
Note that the key list passed to the SuRF constructor must be SORTED.

## Run Unit Tests
make test
Expand Down
3 changes: 3 additions & 0 deletions include/surf.hpp
Expand Up @@ -53,6 +53,9 @@ class SuRF {
public:
SuRF() {};

//------------------------------------------------------------------
// Input keys must be SORTED
//------------------------------------------------------------------
SuRF(const std::vector<std::string>& keys) {
create(keys, kIncludeDense, kSparseDenseRatio, kNone, 0, 0);
}
Expand Down

0 comments on commit cbf2358

Please sign in to comment.