MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / multMatrix

Function multMatrix

apps/point_cloud_editor/src/common.cpp:53–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void
54multMatrix(const float* left, const float* right, float* result)
55{
56 float r[MATRIX_SIZE];
57 for(unsigned int i = 0; i < MATRIX_SIZE_DIM; ++i)
58 {
59 for(unsigned int j = 0; j < MATRIX_SIZE_DIM; ++j)
60 {
61 float sum = 0.0;
62 for(unsigned int k = 0; k < MATRIX_SIZE_DIM; ++k)
63 sum += left[i * MATRIX_SIZE_DIM + k] * right[k * MATRIX_SIZE_DIM + j];
64 r[i * MATRIX_SIZE_DIM + j] = sum;
65 }
66 }
67 std::copy(r, r + MATRIX_SIZE, result);
68}
69
70
71// This code was found on:

Callers 2

updateMethod · 0.85
multMatrixMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected