If you have 2 Vector and you want to add Vector b to end of Vector a, refer to below code. (very simple!)
vector< int > a;
a.push_back(1);
a.push_back(2);
a.push_back(3);
vector< int > b;
b.push_back(4);
b.push_back(5);
b.push_back(6);
a.insert(a.end(), b.begin(), b.end());
int count = 0;
for (auto it : a)
{
printf("a[%d] = %d \n", count++, it);
}
9/27/2017
Subscribe to:
Post Comments (Atom)
-
Logistic Classifier The logistic classifier is similar to equation of the plane. W is weight vector, X is input vector and y is output...
-
Image size of origin is 320*240. Processing time is 30.96 second took. The result of stitching The resul...
-
refer to code: .. import torch # create a tensor x = torch . randn ( 3 , 4 ) # set print options to display full tensor torch . set_print...
-
Google Coral USB Edge TPU Implementation Guide 1. Installation and Troubleshooting 1.1 Hardware Requirements Google Coral USB Accelerator ...
-
Very Nice Convoluiton Convolution (korean) https://gaussian37.github.io/dl-concept-covolution_operation/ ✌️
-
fig 1. Left: set 4 points (Left Top, Right Top, Right Bottom, Left Bottom), right:warped image to (0,0) (300,0), (300,300), (0,300) Fi...
-
The method to video capture using VideoCapture function and Mat class. Source code is.. ... void main () { VideoCapture stream1(1); ...
-
Complete Tutorial: LabelMe with Login System and Dataset Management This guide provides step-by-step instructions for setting up LabelMe wit...
-
Calculate overlap percent between two rectangle It is not difficult, we just use bit operator : &, | for more detail informati...
-
# Step 1: Define and train a simple PyTorch CNN model import torch import torch.nn as nn import torch.optim as optim import torchvisi...
No comments:
Post a Comment