/*
 * $Id: factors.h 1112 2013-07-12 21:41:41Z johnoel $
 *
 * Author: Anders Nielsen <anders@nielsensweb.org>
 * Copyright (c) 2010-2012 ADMB Foundation
 */
/**
 * \file
 * Support functions for factor.
 */
#ifndef __FACTORS_H__
#define __FACTORS_H__
class factor
{
  int nlevels;
  ivector idx;
  dvar_vector levels;
public:
  factor(){nlevels=0;}
  void allocate(const ivector& v, dvar_vector & par);
  dvariable operator () (int i);
};
#endif
