-
Hello guys
This throws error in compile time
How to create vector with millions (1_000_000) elements? |
Beta Was this translation helpful? Give feedback.
Answered by
Ralith
Oct 23, 2023
Replies: 1 comment
-
Use a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
EnvOut
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use a
DVector
instead.SVector
s store elements on the stack, which has limited space. Even if it fit, you wouldn't want to use a largeSVector
in most cases because it will be disproportionately expensive to move around.