ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
dmat14.cpp File Reference

(Last Changed on June 21, 2017 for git-revision cdfc63958931c6a1e2f9886d558f4c5fc9532323.)

#include "fvar.hpp"

Go to the source code of this file.

Functions

double trace (const dmatrix &mat)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 

Function Documentation

double trace ( const dmatrix mat)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Return the sum of the diagonal of a square matrix mat.

Parameters
matis a square scalar matrix

Definition at line 12 of file dmat14.cpp.