Functions
vnl_trace.h File Reference

Calculate trace of a matrix. More...

#include <vnl/vnl_matrix.h>
#include <vnl/vnl_matrix_fixed.h>
#include "vnl/vnl_export.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. More...
 
template<class T , unsigned int N1, unsigned int N2>
vnl_trace (vnl_matrix_fixed< T, N1, N2 > const &M)
 Calculate trace of a matrix. More...
 

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

◆ vnl_trace() [1/2]

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

Calculate trace of a matrix.

Definition at line 22 of file vnl_trace.h.

◆ vnl_trace() [2/2]

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 34 of file vnl_trace.h.