-
Notifications
You must be signed in to change notification settings - Fork 12
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
SWIG priorities #139
Comments
@aprokop To get the 2D array views, can you give me C++ code that gives
|
@sethrj If you have a Tpetra::MultiVector<...> X;
// The following returns multi-dimensional Kokkos::View
// Right now, all the data is going to be on the host
auto Xview = X->getLocalView();
double* ptr = Xview.data();
size_t dim_0 = Xview.extent(0);
size_t dim_1 = Xview.extent(1); This gives you the full 2D array data (not tested, though). The allocation should be contiguous (I don't think there is any padding). I'm not sure what you mean by the ranges of slices. We only need the full 2D array. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ordered from high to low:
Needed for generating Doxygen documentation for ForTrilinos.Block [WIP] doxy2swig based ForTrilinos documentation generation for Tpetra and Teuchos #126.
Needed for
MultiVector::get2dCopy
and such.For examples, functions like
Teuchos::ArrayRCP<double> f();
ierr
See ierr and serr module of origin #119
Why
Map<LO,GO,NO>
inTpetra_Map.i
not work?Why
%typemap(in) LO a %{ ... %}
not work while%typemap(in) int a %{ ... %}
does? SeeTpetra_Map.i
for example.For
std::string description()
The text was updated successfully, but these errors were encountered: