- Abstract
Multiply the transpose of a 3-dimensional column vector,
a 3x3 matrix, and a 3-dimensional column vector.
- Required_Reading
None.
- Brief_I/O
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 ).
- Detailed_Input
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.
- Detailed_Output
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.
- Parameters
None.
- Particulars
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.
- Examples
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.
- Restrictions
None.
- Exceptions
Error free.
- Files
None.
- Author_and_Institution
W.M. Owen (JPL)
E.D. Wright (JPL)
- Literature_References
None.
- Version
-CSPICE Version 1.0.0, 1-JUL-1999
- Index_Entries
3-dimensional vector_transpose times matrix times vector
- Link to routine source