Index Page
cspice_trace
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_TRACE returns a scalar double describing the trace
   of a 3x3 double precision matrix.

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

I/O


   Given:

      mat   a arbitrary double precision 3x3 matrix.

   the call:

      trace = cspice_trace( mat )

   returns:

      trace   the double precision scalar trace of 'mat'.

              For our use, trace means the sum of the elements on
              the primary diagonal of 'mat'.

Examples


   Native IDL code to calculate the same scalar result:

      trace_value = trace( mat )

   The IDL trace function accepts an arbitrary size NxN matrix.

Particulars


   None.

Required Reading


   ICY.REQ

Version


   -Icy Version 1.0.2, 13-JUN-2011, EDW (JPL)

      Edits to comply with NAIF standard for Icy headers.

   -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


   trace of a 3x3_matrix




Wed Apr  5 17:58:04 2017