Diff of /src/include/function/ArrayLogDensity.h [000000] .. [7feccc] Maximize Restore

  Switch to side-by-side view

--- a
+++ b/src/include/function/ArrayLogDensity.h
@@ -0,0 +1,33 @@
+#ifndef ARRAY_LOG_DENSITY_H_
+#define ARRAY_LOG_DENSITY_H_
+
+#include <function/ArrayFunction.h>
+
+namespace jags {
+    
+    class ArrayDist;
+
+    /**
+     * @short Log density function for an array-valued Distribution
+     */
+    class ArrayLogDensity : public ArrayFunction
+    {
+	ArrayDist const *_dist;
+    public:
+	ArrayLogDensity(ArrayDist const *dist);
+	std::vector<unsigned int> dim(
+	    std::vector<std::vector<unsigned int> > const &dims) const;
+	bool checkParameterDim(
+	    std::vector<std::vector<unsigned int> > const &dims) const;
+	bool checkParameterValue(
+	    std::vector<double const *> const &args,
+	    std::vector<std::vector<unsigned int> > const &dims) const;
+	void evaluate(
+	    double *value,
+	    std::vector <double const *> const &args,
+	    std::vector<std::vector<unsigned int> > const &dims) const;
+    };
+
+}
+
+#endif /* ARRAY_LOG_DENSITY_H_ */