A vector is a single-dimensional array: it contains components that can be accessed using an integral index. In some languages the size of a vector can grow or shrink as needed to accommodate adding and removing items after the Vector has been created. Use 'vector-graphics' for graphic display.

learn more…| top users | synonyms (1)

0
votes
0answers
58 views

Going out of range with std::vector [on hold]

EDIT: The issue was that I had an extra empty line at the end of the file I was using to debug the application. The issue still stands, though: how can I modify my code to make it deal with unexpected ...
-4
votes
0answers
27 views

Solving 3d vector equations in python [on hold]

I need to solve the vector equation P + u*(v1)=k*(v2) - n , for the scalars k and u. How do I do the maths or is there a built in function in python that can do it for me? Eventually I will put it ...
0
votes
2answers
27 views

Get vector indices before-and-after given indices

What's the best Matlab/Octave idiom, given idx a vector of indices, to get the sorted vector of idx +/-1 ?I have an n x 7 data matrix, column 3 is an integer label, and I'm interested in viewing the ...
0
votes
1answer
36 views

printing intermediate multiplication using loop

I have data frame 'df' which has 8*8 rows and columns. here i am getting the answer directly the 5th multiplication, i want all the intermediate multiplications answers. And i also want the code ...
-8
votes
2answers
75 views

what does vector.size mean?

I wonder about this codevector<pair<int,int>> map;std::cout << "hello"<< std::endl;map.push_back(make_pair(1,2));map.push_back(make_pair(3,4));map.push_back(make_pair(5,...
3
votes
2answers
68 views

Adding function parameters to a vector

Coming from a Java background I am confused with how C++ allows passing objects by value. I have a conceptual doubt regarding when objects are passed by value: void add_to_vector(vector<SomeClass&...
0
votes
2answers
56 views

How is my for-loop messing up?

I am having a problem with my for loops in this code that I've written. Everything runs fine except it does not catch the value for the 4th row in my string array ("Jill", "Jason", "Jim".)I'm pretty ...
1
vote
1answer
24 views

Supremum distance in Scipy python

I am trying to find all types of Minkowski distances between 2 vectors. I am using scipy distances to get these distances. The scipy function for Minkowski distance is: distance.minkowski(a, b, p=?) ...
0
votes
3answers
56 views

Input numbers in a vector in C++ without any limit

Input numbers in a vector in C++ without any limit.When user press enter instead of a number it should print all the numbers inputted till now. vector <int> numbers;vector <int>::...
0
votes
0answers
5 views

How can I filter geometries on osmdroid

Is there a method included to filter the geometries based on the proximity radius?I have tried removing points that do not qualify from the kmlDocument before building the overlay, but I am using ...
1
vote
2answers
100 views

Convert vector A into matrix M at values from vector B

I have two vectors, both formatted as double. Vector "A" is mx2. The first column contains continuous timesteps and the second column data from a measurement series.Vector "B" is a nx2 (1<n<m)...
-2
votes
0answers
37 views

Is the “thrust” library a functional drop-in replacement for STL vectors for CUDA?

I have been attempting to eliminate vectors from an emberassingly parallel problem. My neuroevolution program needs to evaluate 15,120 records of a data set in parallel, and this can additionally be ...
-5
votes
0answers
41 views

how to store and show data in a vector in C++ [on hold]

I want to store user given(at runtime) data(like plain text ex: "user1", "user2") in a local directory. I want to use vector. The data("user1", "user2") should be shown in terminal along with that ...
-1
votes
2answers
83 views

How to return vector c++?

I need an idea which allows me to calculate/store and return the value of mathematical expressions for a given interval. In this case for example: x^2 - 7 from -5 to 5 :My .cpp file:#include <...
0
votes
0answers
22 views

Combine multiple vectors into same element of a new vector? [duplicate]

I wish to combine multiple vectors into one vector; however, I do not wish to simply concatenate them together. I want them to merge for the same elements as such:vector1 <- c(1, 2, 3)vector2 &...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,