SpiceDouble vtmv_c ( ConstSpiceDouble v1 [3],
ConstSpiceDouble matrix [3][3],
ConstSpiceDouble v2 [3] )
Multiply the transpose of a 3-dimensional column vector,
a 3x3 matrix, and a 3-dimensional column vector.
None.
MATRIX, VECTOR
VARIABLE I/O DESCRIPTION
-------- --- --------------------------------------------------
v1 I 3 dimensional double precision column vector.
matrix I 3x3 double precision matrix.
v2 I 3 dimensional double precision column vector.
The function returns the result of (v1**t * matrix * v2 ).
v1 This may be any 3-dimensional, double precision
column vector.
matrix This may be any 3x3, double precision matrix.
v2 This may be any 3-dimensional, double precision
column vector.
the function returns the double precision value of the equation
(v1**t * matrix * v2 ).
Notice that vtmv_c is actually the dot product of the vector
resulting from multiplying the transpose of v1 and matrix and the
vector v2.
None.
Error free.
None.
This routine implements the following vector/matrix/vector
multiplication:
T
vtmv_c = | v1 | | | | |
| matrix | |v2|
| | | |
v1 is a column vector which becomes a row vector when transposed.
v2 is a column vector.
No checking is performed to determine whether floating point
overflow has occurred.
if v1 = | 2.0 | matrix = | 0.0 1.0 0.0 |
| | | |
| 4.0 | | -1.0 0.0 0.0 |
| | | |
| 6.0 | | 0.0 0.0 1.0 |
v2 = | 1.0 |
| |
| 1.0 |
| |
| 1.0 |
then function value is equal to 4.0.
None.
None.
W.M. Owen (JPL)
E.D. Wright (JPL)
-CSPICE Version 1.0.0, 1-JUL-1999
3-dimensional vector_transpose times matrix times vector
Link to routine vtmv_c source file vtmv_c.c
|