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

NumDimensions, alternative way to the template parameter #681

Open
Goon83 opened this issue Jan 27, 2020 · 0 comments
Open

NumDimensions, alternative way to the template parameter #681

Goon83 opened this issue Jan 27, 2020 · 0 comments

Comments

@Goon83
Copy link

Goon83 commented Jan 27, 2020

Hi,
Sorry for too many questions here. I am developing a DASH plugin to ArrayUDF and had a question about the NumDimensions. It is a template parameter to the Matrix class (as below). Do we have another way to bypass this it? Say, I declare a Matrix first and then pass the NumDimensions as a parameter. I am asking because using DASH to be as a storage layer needs to be generic pointer to a matrix with any dimension. But, this NumDimensions template parameter introduces lots of duplicated code.

template<typename ElementT, dim_t NumDimensions, typename IndexT = dash::default_index_t, class PatternT = TilePattern<NumDimensions, ROW_MAJOR, IndexT>, typename LocalMemSpaceT = HostSpace>
class dash::Matrix< ElementT, NumDimensions, IndexT, PatternT, LocalMemSpaceT >

From:
https://codedocs.xyz/dash-project/dash/a01398.html

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

No branches or pull requests

1 participant