Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <numeric>
- #include <vector>
- #include <iostream>
- float inputs1 [] = {};
- float inputs2 [] = {};
- float inputs3 [] = {};
- float weights1 [] = {};
- float weights2 [] = {};
- float weights3 [] = {};
- float bias1 = 3;
- float bias2 = 1;
- float bias3 = 2;
- float output []= {inputs1[0] * weights1[0] + inputs1[n] * weights1[n] + bias1} , {inputs2[0] * weights2[0] + inputs2[n] * weights2[n] + bias2} , {};
- vector<int> v1 = {2, 3, 1};
- vector<int> v2 = {4, 2, 5};
- int dotProduct = inner_product(v1.begin(), v1.end(), v2.begin(), 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement