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

predicate-based finding #21

Closed
lindahua opened this issue Jul 2, 2012 · 0 comments
Closed

predicate-based finding #21

lindahua opened this issue Jul 2, 2012 · 0 comments
Assignees
Labels
Milestone

Comments

@lindahua
Copy link
Owner

lindahua commented Jul 2, 2012

Supports the following syntax

find_to(X > 0, it);  // it is an output iterator
find_to(X > 0, v);  // v is an instance of std::vector<index_t>
find_to(X > 0, I, J);  // I and J are both instances of index_seq

idx = find( x > 0 );  // returns an instance of class dense_col<index_t>

Y = select( A, idx );  // idx is any random access container
Y = select( A,  find(x > 0), colon(2, 3) );
  • The find function should accept matrices with bool or mask type.
  • The return type should be index_seq
  • find function should be a simple wrapper of find_to.
@ghost ghost assigned lindahua Jul 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant