Skip to content

Is there a problem trying to create a concatenate that returns an Arrayview? #1338

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

Closed
SilmaliTech opened this issue Dec 5, 2023 · 2 comments

Comments

@SilmaliTech
Copy link

SilmaliTech commented Dec 5, 2023

  1. I created a concatenate function that returns an arrayview.
  2. There are ndarrays a, b with contiguous memory layout.
  3. If I concatenate a and b, will I create an arrayview with two contiguous memory layouts?
  4. Is this a bad use?

I used to think this because of my computer's memory issues, but I've learned that most of the time, my thoughts aren't good...Is this a bad idea..?

@nilgoyette
Copy link
Collaborator

Are you saying that you created that function and it worked fine? Because I don't think it's possible to create an ArrayView from the concatenation of other arrays. You can use the concatenate macro to create an owned array, but a view... I doubt it.

@SilmaliTech
Copy link
Author

Are you saying that you created that function and it worked fine? Because I don't think it's possible to create an ArrayView from the concatenation of other arrays. You can use the concatenate macro to create an owned array, but a view... I doubt it.

As expected, there was something strange.... This was a plan, and the meaning seems to have been strangely conveyed using a translator.

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

2 participants