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

(Last Changed on June 29, 2022 for git-revision 90ff3225c384e19fdeaf789b3d0cd5d2ced40eb0.)

#include <fvar.hpp>

Go to the source code of this file.

Functions

dvector colsum (const dmatrix &matrix)
 Returns dvector where each element contains the sum total of each column in matrix. More...
 
dvector rowsum (const dmatrix &matrix)
 Returns dvector where each element contains the sum total of each row in matrix. More...
 
double sum (const dvector &values)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
double sum (const dmatrix &matrix)
 Return total sum of all elements in matrix. More...
 

Function Documentation

dvector colsum ( const dmatrix matrix)

Returns dvector where each element contains the sum total of each column in matrix.

Parameters
matrixdmatrix

Definition at line 32 of file dvect12.cpp.

dvector rowsum ( const dmatrix matrix)

Returns dvector where each element contains the sum total of each row in matrix.

Parameters
matrixdmatrix

Definition at line 61 of file dvect12.cpp.

Referenced by expm().

double sum ( const dvector values)

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

Return the total sum of the elements in values.

Parameters
valuesdvector

Definition at line 12 of file dvect12.cpp.

double sum ( const dmatrix matrix)

Return total sum of all elements in matrix.

Parameters
matrixdmatrix

Definition at line 83 of file dvect12.cpp.