// @author Yurii Shyrma (iuriish@yahoo.com), created on 13.12.2017
//
#include<op_boilerplate.h>
#if NOT_EXCLUDED(OP_polygamma)
#include<ops/declarable/CustomOperations.h>
#include<ops/declarable/helpers/polyGamma.h>
namespacend4j{
namespaceops{
CONFIGURABLE_OP_IMPL(polygamma,2,1,false,0,0){
auton=INPUT_VARIABLE(0);
autox=INPUT_VARIABLE(1);
autooutput=OUTPUT_VARIABLE(0);
REQUIRE_TRUE(n->isSameShape(x),0,"POLYGAMMA op: two input arrays n and x must have the same shapes, but got n=%s and x=%s instead !",ShapeUtils::shapeAsString(n).c_str(),ShapeUtils::shapeAsString(x).c_str());