Skip to content

Commit

Permalink
CMSIS-DSP: Doxygen corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe0606 committed Feb 17, 2021
1 parent 152a92d commit bbc88b1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,17 @@
*/

/**
@addtogroup QuatProd
@ingroup QuatProd
*/

/**
@defgroup QuatProdVect Elementwise Quaternion Product
Compute the elementwise product of quaternions.
*/

/**
@addtogroup QuatProdVect
@{
*/

Expand Down Expand Up @@ -117,20 +127,20 @@ void arm_quaternion_product_f32(const float32_t *qa,

void arm_quaternion_product_f32(const float32_t *qa,
const float32_t *qb,
float32_t *r,
float32_t *qr,
uint32_t nbQuaternions)
{
for(uint32_t i=0; i < nbQuaternions; i++)
{
arm_quaternion_product_single_f32(qa, qb, r);
arm_quaternion_product_single_f32(qa, qb, qr);

qa += 4;
qb += 4;
r += 4;
qr += 4;
}
}
#endif /* defined(ARM_MATH_MVEF) && !defined(ARM_MATH_AUTOVECTORIZE) */

/**
@} end of QuatProd group
@} end of QuatProdVect group
*/
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@
#include "dsp/quaternion_math_functions.h"
#include <math.h>


/**
@ingroup groupQuaternionMath
@ingroup QuatProd
*/

/**
@defgroup QuatProd Quaternion Product
@defgroup QuatProdSingle Quaternion Product
Compute the product of quaternions.
Compute the product of two quaternions.
*/

/**
Expand Down Expand Up @@ -90,12 +91,12 @@ void arm_quaternion_product_single_f32(const float32_t *qa,
#else
void arm_quaternion_product_single_f32(const float32_t *qa,
const float32_t *qb,
float32_t *r)
float32_t *qr)
{
r[0] = qa[0] * qb[0] - qa[1] * qb[1] - qa[2] * qb[2] - qa[3] * qb[3];
r[1] = qa[0] * qb[1] + qa[1] * qb[0] + qa[2] * qb[3] - qa[3] * qb[2];
r[2] = qa[0] * qb[2] + qa[2] * qb[0] + qa[3] * qb[1] - qa[1] * qb[3];
r[3] = qa[0] * qb[3] + qa[3] * qb[0] + qa[1] * qb[2] - qa[2] * qb[1];
qr[0] = qa[0] * qb[0] - qa[1] * qb[1] - qa[2] * qb[2] - qa[3] * qb[3];
qr[1] = qa[0] * qb[1] + qa[1] * qb[0] + qa[2] * qb[3] - qa[3] * qb[2];
qr[2] = qa[0] * qb[2] + qa[2] * qb[0] + qa[3] * qb[1] - qa[1] * qb[3];
qr[3] = qa[0] * qb[3] + qa[3] * qb[0] + qa[1] * qb[2] - qa[2] * qb[1];
}
#endif /* defined(ARM_MATH_MVEF) && !defined(ARM_MATH_AUTOVECTORIZE) */

Expand Down

0 comments on commit bbc88b1

Please sign in to comment.