Functions
core/vnl/vnl_trace.h File Reference

Calculate trace of a matrix. More...

#include <vnl/vnl_matrix.h>
#include <vnl/vnl_matrix_fixed.h>

Go to the source code of this file.

Functions

template<class T >
vnl_trace (vnl_matrix< T > const &M)
 Calculate trace of a matrix.
template<class T , unsigned int N1, unsigned int N2>
vnl_trace (vnl_matrix_fixed< T, N1, N2 > const &M)
 Calculate trace of a matrix.

Detailed Description

Calculate trace of a matrix.

Author:
fsm
    Modifications
     LSB (Manchester) 19/3/01 Documentation tidied
     Peter Vanroose   27-Jun-2003  made inline and added trace(matrix_fixed)
   

Definition in file vnl_trace.h.


Function Documentation

template<class T >
T vnl_trace ( vnl_matrix< T > const &  M)

Calculate trace of a matrix.

Definition at line 24 of file vnl_trace.h.

template<class T , unsigned int N1, unsigned int N2>
T vnl_trace ( vnl_matrix_fixed< T, N1, N2 > const &  M)

Calculate trace of a matrix.

Definition at line 36 of file vnl_trace.h.