_Dot4dV
9/7/2007
Computes the inner product of a pair of four-dimensional vectors.
Syntax
float _Dot4dV(
float* vector1,
float* vector2
);
Parameters
- vector1
[in] Pointer to a four-dimensional source vector.
- vector2
[in] Pointer to a four-dimensional destination vector.
Return Values
The scalar resulting from the inner product.
Remarks
The following code example shows how to compute the inner product of four-dimensional vectors.
/***********************************************************/
#include <stdio.h>
#include <shintr.h>
void main()
{
float retval;
float v1[4] = {1.0, 2.0, 3.0, 4.0};
float v2[4] = {2.0, 3.0, 4.0, 5.0};
retval = _Dot4dV(v1, v2);
printf("retval=%f\n", retval);
}
This example results in the following output.
retval=40.000000
Requirements
Routine | Required header | Architecture |
---|---|---|
_Dot4dV |
<shintr.h> |
SH-4 |
See Also
Reference
Intrinsic Functions for Renesas Microprocessors
_Dot3dVW0
_Dot3dVW1