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

Abstract
I/O
Examples
Particulars
Required Reading
Version
Index_Entries

Abstract


   CSPICE_MXV calculates the product of a 3x3 double precision
   matrix and a  3-vector (a classic 3x1 matrix) using the
   classic definition of the matrix multiplication. An error 
   signals for any input non 3x3 matrix and any non 3-vector.

   For important details concerning this module's function, please refer to
   the CSPICE routine mxv_c.

I/O

   
   Given an arbitrary double precision 3x3 matrix, 'mat', 
   and a double precision 3-vector, 'vec':
   
      cspice_mxv, mat, vec, vecout
   
   returns to the variable 'vecout' the result of the matrix multiplication
   of matrix 'mat' to vector 'vec'. 'vecout' has the form of an IDL row 
   vector,  i.e.:
   
      vecout = [ vecout1, vecout2, vecout3 ]

Examples


   Native IDL code to calculate the same result:
   
      vecout = mat ## vec
   
   returns a column 3 vector, an IDL 1x3 matrix.
   
   Another operation:
      
      vecout = transpose(mat) # vec
   
   returns an IDL row 3 vector.

Particulars


   None.

Required Reading


   ICY.REQ

Version


   -Icy Version 1.0.1, 09-DEC-2005, EDW (JPL)

      Added Examples section.

   -Icy Version 1.0.0, 16-JUN-2003, EDW (JPL)

Index_Entries


   matrix times 3-dimensional vector




Wed Apr  5 17:58:02 2017