Top "Vector" questions

A vector is a single-dimensional array: it contains components that can be accessed using an integral index.

Arrays vs Vectors: Introductory Similarities and Differences

What are the differences between an array and a vector in C++? An example of the differences might be included …

c++ arrays vector
Split a vector into chunks

I have to split a vector into n chunks of equal size in R. I couldn't find any base function …

r vector
Rotating a Vector in 3D Space

I am making an android project in opengl es that uses accelerometer to calculate change in specific axes and my …

math vector 3d rotation linear-algebra
Example to use shared_ptr?

Hi I asked a question today about How to insert different types of objects in the same vector array and …

c++ boost vector shared-ptr smart-pointers
Convert a row of a data frame to vector

I want to create a vector out of a row of a data frame. But I don't want to have …

r vector dataframe
Subtracting 2 lists in Python

Right now I have vector3 values represented as lists. is there a way to subtract 2 of these like vector3 values, …

python list tuples vector
C++ trying to swap values in a vector

This is my swap function: template <typename t> void swap (t& x, t& y) { t temp = …

c++ vector swap
What is the simplest way to convert array to vector?

What is the simplest way to convert array to vector? void test(vector<int> _array) { ... } int x[3]={1, 2, 3}; test(…

c++ arrays vector
Octave/Matlab: Adding new elements to a vector

Having a vector x and I have to add an element (newElem) . Is there any difference between - x(end+1) = …

matlab vector octave element
Choice between vector::resize() and vector::reserve()

I am pre-allocating some memory to my a vector member variable. Below code is minimal part class A { vector<…

c++ vector