Index Page vtmv_c

A B C D E F G H I J K L M N O P Q R S T U V W X

Procedure Abstract Required_Reading Keywords Brief_I/O Detailed_Input | Detailed_Output Parameters Exceptions Files Particulars Examples | Restrictions Literature_References Author_and_Institution Version Index_Entries

#### Procedure

       SpiceDouble vtmv_c ( ConstSpiceDouble v1     [3],
                            ConstSpiceDouble matrix [3][3],
                            ConstSpiceDouble v2     [3] )

#### Abstract

        Multiply the transpose of a 3-dimensional column vector,
        a 3x3 matrix, and a 3-dimensional column vector.

#### Required_Reading

        None.

#### Keywords

        MATRIX,  VECTOR

#### 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.

#### Exceptions

       Error free.

#### Files

        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.

#### Literature_References

        None.

#### Author_and_Institution

        W.M. Owen       (JPL)
        E.D. Wright     (JPL)

#### Version

       -CSPICE Version 1.0.0, 1-JUL-1999

#### Index_Entries

       3-dimensional vector_transpose times matrix times vector

#### Link to routine vtmv_c source file vtmv_c.c

    Wed Apr  5 17:54:47 2017