Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Float, Double support. #38

Merged
merged 5 commits into from
Feb 6, 2013
Merged

Feature: Float, Double support. #38

merged 5 commits into from
Feb 6, 2013

Conversation

bmunkholm
Copy link
Contributor

float and double datatypes now supported.
Note: this also includes new Query optimizations from Lasse.
Also with mixed support now.

Still missing:

  • sort()
  • to_str()
  • to_json()
  • Documentation
  • some testcases

/cc @kspangsege @astigsen

@ghost ghost assigned astigsen Jan 24, 2013
@bmunkholm
Copy link
Contributor Author

Added support for Mixed. Also fixed int support for negative values and full 64-bit values.

void find_all(Array& result, T value, size_t add_offset = 0, size_t start = 0, size_t end = -1);

size_t count(T value, size_t start=0, size_t end=-1) const;
double sum(size_t start=0, size_t end=-1) const;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Returns double even though this is an abstract array. Consider add in a template type parameter that specifies the return type. This type should then also be used for the accumulator.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sum() is now disabled, since it's unused by other classes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants