Skip to content

Commit

Permalink
Defined totalElements
Browse files Browse the repository at this point in the history
  • Loading branch information
sflorescu committed Dec 13, 2024
1 parent 9fdee0e commit 573f35e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matlab/beamform_mex.cu
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) {
int32_t *outData = static_cast<int32_t *>(mxGetData(outArray));

// Copy the data
std::memcpy(outData, BF, totalElements * sizeof(int32_t));
std::memcpy(outData, BF, 2 * frames * samples * sizeof(int32_t));

// Assign output
plhs[0] = outArray;
Expand Down

0 comments on commit 573f35e

Please sign in to comment.