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

[FEA] Add simple fractory methods to construct mdspan (and mdarray) objects from pointers and shape/stride information #450

Closed
cjnolet opened this issue Jan 19, 2022 · 1 comment
Assignees
Labels
feature request New feature or request

Comments

@cjnolet
Copy link
Member

cjnolet commented Jan 19, 2022

This is just a placeholder to do this so that users that have a shape information and potentially a pointer can easily construct mdspan and mdarray objects:

auto arr = raft::create_mdspan(pointer, shape, stride);
auto arr = raft::create_mdarray(shape, stride);

Also thinking about matrix and vector and creation APIs:

auto arr = raft::create_vector(pointer, n);
auto arr = raft::create_vector(n);

auto arr = raft::create_matrix(pointer, nrows, ncols, rowmajor);
auto arr = raft::create_matrix(nrows, ncols, rowmajor);

@cjnolet cjnolet added the feature request New feature or request label Jan 19, 2022
@cjnolet cjnolet changed the title [FEA] Add simple fractory methods to construct mdarray objects from pointers and shape/stride information [FEA] Add simple fractory methods to construct mdspan objects from pointers and shape/stride information Jan 24, 2022
@cjnolet cjnolet changed the title [FEA] Add simple fractory methods to construct mdspan objects from pointers and shape/stride information [FEA] Add simple fractory methods to construct mdspan (and mdarray) objects from pointers and shape/stride information Jan 24, 2022
@trivialfis trivialfis self-assigned this Jan 25, 2022
@cjnolet
Copy link
Member Author

cjnolet commented Jan 30, 2022

This is being accomplished by #437

@cjnolet cjnolet closed this as completed Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants