ADMB Documentation
-a65f1c97
Main Page
Function Reference
Classes
Source Code
Related Pages
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
linad99
factors.h
Go to the documentation of this file.
1
/*
2
* $Id$
3
*
4
* Author: Anders Nielsen <anders@nielsensweb.org>
5
* Copyright (c) 2010-2012 ADMB Foundation
6
*/
11
#ifndef __FACTORS_H__
12
#define __FACTORS_H__
13
class
factor
14
{
15
int
nlevels
;
16
ivector
idx
;
17
dvar_vector
levels
;
18
public
:
19
factor
(){
nlevels
=0;}
20
void
allocate
(
const
ivector
& v,
dvar_vector
& par);
21
dvariable
operator ()
(
int
i);
22
};
23
#endif
factor::idx
ivector idx
Definition:
factors.h:16
factor::allocate
void allocate(const ivector &v, dvar_vector &par)
Definition:
factors.cpp:85
dvar_vector
ADMB variable vector.
Definition:
fvar.hpp:2172
factor::levels
dvar_vector levels
Definition:
factors.h:17
factor
Definition:
factors.h:13
ivector
Array of integers(int) with indexes from index_min to indexmax.
Definition:
ivector.h:50
factor::factor
factor()
Definition:
factors.h:19
factor::operator()
dvariable operator()(int i)
Definition:
factors.cpp:123
factor::nlevels
int nlevels
Definition:
factors.h:15
dvariable
Fundamental data type for reverse mode automatic differentiation.
Definition:
fvar.hpp:1518
Generated on Wed Sep 7 2022 00:01:28 for ADMB Documentation by
1.8.5