+++ /dev/null
-/*
- * fx32_vector.c
- *
- * Created on: 2013/05/02
- * Author: takemasa
- */
-
-#include "fx32_vector.h"
-
-
-
-
-
-
- /*
- * \brief complex vector multiplying A*B => C : where A is real.
- * \param ar input vector re(A)
- * \param ai input vector im(A)
- * \param br input vector re(B)
- * \param cr input vector re(C)
- * \param ci input vector im(C)
- * \count length of vector
- * \details
- * Mulitiply the real vector A by the complex fxied point vector B. Then, store the result to vector C
- */
-void fr32_vector_mult_crc(
- const fract32 ar[],
- const fract32 ai[],
- const fract32 br[],
- fract32 cr[],
- fract32 ci[],
- int count
- )
-{
- int i;
-
- for ( i=0; i<count; i++)
- {
- cr[i] =
- mult_fr1x32x32(ar[i], br[i] );
- ci[i] =
- mult_fr1x32x32(ai[i], br[i] );
-
- }
-
-}
- /*
- * \brief complex vector multiplying A*B => C : where C is real
- * \param ar input vector re(A)
- * \param ai input vector im(A)
- * \param br input vector re(B)
- * \param bi input vector im(B)
- * \param cr input vector re(C)
- * \count length of vector
- * \details
- * Mulitiply the complex fxied point vector A by B. Then, store the real part of result to vector C
- */
-void fr32_vector_mult_ccr(
- const fract32 ar[],
- const fract32 ai[],
- const fract32 br[],
- const fract32 bi[],
- fract32 cr[],
- int count
- )
-{
- int i;
-
- for ( i=0; i<count; i++)
- cr[i] =
- sub_fr1x32(
- mult_fr1x32x32(ar[i], br[i] ),
- mult_fr1x32x32(ai[i], bi[i])
- );
-
-}