About 2,980,000 results
Open links in new tab
  1. Use of 1D vs. 2D vectors in C++ implementation [closed]

    Sep 13, 2025 · What is in principle better to use in the program? 2D vectors are more powerful, yet slower. Also, what bothers me, and may make my code chaotic is the decision whether to …

  2. Two dimensional vectors in Rust - Stack Overflow

    Two dimensional vectors in Rust Asked 12 years, 11 months ago Modified 1 year, 11 months ago Viewed 49k times

  3. How do I declare and initialize a 2d int vector in C++?

    How do I declare and initialize a 2d int vector in C++? Asked 15 years, 5 months ago Modified 8 years, 2 months ago Viewed 21k times

  4. c++ - Initializing a two-dimensional std::vector - Stack Overflow

    I would recommend a 1d vector implementation for a 2d vector if you don't require more space than std::vector<int>::max_size(). Here

  5. java - Finding Signed Angle Between Vectors - Stack Overflow

    Jan 28, 2010 · Finding Signed Angle Between Vectors Asked 15 years, 9 months ago Modified 15 years, 9 months ago Viewed 43k times

  6. How to access to the index of a 2D vector by at () function?

    I am going to initialize a 2D vector in a member function, where the input arguments are planned to be fed into determined indexes within the function argument. Furthermore, I'm not gonna …

  7. How to plot vectors in python using matplotlib - Stack Overflow

    I am taking a course on linear algebra and I want to visualize the vectors in action, such as vector addition, normal vector, so on. For instance: V = np.array([[1,1],[-2,2],[4,-7]]) In this ca...

  8. How to draw vectors (physical 2D/3D vectors) in MATLAB?

    How to draw vectors (physical 2D/3D vectors) in MATLAB? Asked 15 years, 10 months ago Modified 9 years, 8 months ago Viewed 160k times

  9. Using atan2 to find angle between two vectors - Stack Overflow

    Jan 31, 2014 · This Stack Overflow post explains how to use atan2 to calculate the angle between two vectors in programming.

  10. c++ - Multi-dimensional vector - Stack Overflow

    May 27, 2017 · Else you will need to put extra care to keep the second dimension stable across all the vectors. If you are planing on a fixed size matrix, then you should consider …