1
votes

1
replies

I want to generate a four dimensional array with dimensions (dim,N,N,N). The first component ndim =3 and N corresponds to the grid length. How ca...

asked 4 months ago

0
votes

0
replies

I have inherited some C++ code and am trying to migrate it to the Netbeans 11 IDE for easier debugging. It compiles fine in the OSX terminal, but...

asked 4 months ago

0
votes

1
replies

Say I want to run a regression whereby the data input for the DV should be taken in a rolling manner. To ease this process, I therefore first wou...

asked 4 months ago

0
votes

2
replies

I have two 3D objects eventually they will be 3D models of different sizes and shapes but I am trying to get the underlying functionality correct...

asked 4 months ago

0
votes

1
replies

I'm wanting to take 4 values, each separated by a comma, and store them to a airport object. Each line would have those 4 values would be stored...

asked 4 months ago

4
votes

2
replies

I wrote a small program that creates a vector of two million maps with some sample data and then queries for some values.
I know I could use a d...

asked 4 months ago

1
votes

1
replies

I'm basically trying to use vector, but there is a problem with it. By the way, the problem that I'm trying to solve is USACO December 2014 Bronz...

asked 4 months ago

1
votes

2
replies

x = c(1,2,3,4)
y = c(6,7,8,9)
I want to create a list like this:
z = list(c(1,6),c(2,7),c(3,8),c(4,9))
What is the most efficient way to do...

asked 4 months ago

1
votes

0
replies

I have a few big datasets for which I would like to get the correlations with one specific variable of that same dataset.
For example, the corr...

asked 4 months ago

-3
votes

1
replies

When I ask why the vector deletes the objects I'm not referring to the mechanics of what a vector does when it's capacity is exceeded by adding e...

asked 4 months ago

0
votes

1
replies

I am new to STL and used find() and upper_bound() functions on vector to find the position of 6 . The code is given below
#include <bits/st...

asked 4 months ago

0
votes

0
replies

I am trying to get the correlation of each unique pairs these are the columns I have state 1 & 2 count, year and week of the year. I want to...

asked 4 months ago

1
votes

1
replies

What is the standard way in C++11 to access the pointer to element n in a std::vector ?
vec.data() + n
or
&vec[n]
comes to mind.
1...

asked 4 months ago

0
votes

2
replies

I need to copy array of vector passed as reference to constructor/function.
member variable gets the reference to the passed array of vector
wh...

asked 4 months ago

0
votes

2
replies

In pytorch. I want to multiply each vector of Matrix A by each vector of Matrix B:
A = M x N
B = L x N
result = (M x L) x N
0
2...

asked 4 months ago

-1
votes

0
replies

I make a IOCP c++ server.
I don't know where is the problem line, because it's not written to the call stack.
It's some code on my project.
I on...

asked 4 months ago

4
votes

1
replies

I'm new to C++ and trying to setup a matrix class. The matrix is created from an initializer_list containing vector<int> entries as the row...

asked 4 months ago

-1
votes

0
replies

I'm trying to use the five-point finite-difference method in Matlab to solve the boundary value problem:
I've spotted a solution:
Using the...

asked 4 months ago

-2
votes

0
replies

I am in need of help with the v_push_back, v_pop_back, v_at, v_insert_n and v_erase_range functions implementation of vectors in C.
I have alrea...

asked 4 months ago

0
votes

1
replies

I'm trying to initialize a vector in a header with the following code, but getting the error
C2552: 'LABELS' : non-aggregates cannot be init...

asked 4 months ago

1
votes

1
replies

I include some context. My problem is in the for. When I run it, only the vector intL is filled, but that doesn't happen with the intU. On the ot...

asked 4 months ago

0
votes

0
replies

Depending on the launcher it is possible for the user to choose the shape of its icons (to use round icons, squircles, etc.). Since android 8 (I...

asked 4 months ago

0
votes

1
replies

I'm expecting to cipher a string, from a client side (using aes-256-cbc and a Secret-Password already known by both server & client).
And the...

asked 4 months ago

0
votes

1
replies

Having problem using the vector in C++.
The following code is having this Runtime Error :
* Error in `./a.out': double free or corruption (out):...

asked 4 months ago

0
votes

1
replies

so I want to include a 2D figure in a 3D plot and rotate the figure (with view([alpha beta])). As you can imagine, this would distord the surface...

asked 4 months ago