Download annotations/annotation_31/RSR/native/naive.cpp from mcy98/RECODE-H: direct link, hf CLI and curl.
- Browser
- Download file 453 Bytes
-
https://huggingface.co/datasets/mcy98/RECODE-H/resolve/main/annotations/annotation_31/RSR/native/naive.cpp
- Command line
-
hf download hf://datasets/mcy98/RECODE-H/annotations/annotation_31/RSR/native/naive.cpp
-
curl -L -o naive.cpp https://huggingface.co/datasets/mcy98/RECODE-H/resolve/main/annotations/annotation_31/RSR/native/naive.cpp
453 Bytes
| using namespace std; | |
| vector<int> vectorMatrixMultiply(const vector<int>& vec, const vector<vector<int>>& mat) { | |
| int n = vec.size(); | |
| // Initialize the result vector with zeros | |
| vector<int> result(n, 0); | |
| // Perform vector-matrix multiplication | |
| for (int i = 0; i < n; i++) { | |
| for (int j = 0; j < n; j++) { | |
| result[i] += vec[j] * mat[j][i]; | |
| } | |
| } | |
| return result; | |
| } | |