// @author Yurii Shyrma (iuriish@yahoo.com), created on 12.12.2017
//
#include<op_boilerplate.h>
#if NOT_EXCLUDED(OP_betainc)
#include<ops/declarable/CustomOperations.h>
#include<ops/declarable/helpers/betaInc.h>
namespacend4j{
namespaceops{
DECLARE_TYPES(betainc){
getOpDescriptor()
->setAllowedInputTypes({ALL_FLOATS})
->setSameMode(true);
}
CONFIGURABLE_OP_IMPL(betainc,3,1,false,0,0){
autoa=INPUT_VARIABLE(0);
autob=INPUT_VARIABLE(1);
autox=INPUT_VARIABLE(2);
autooutput=OUTPUT_VARIABLE(0);
REQUIRE_TRUE(a->isSameShape(b)&&a->isSameShape(x),0,"CONFIGURABLE_OP betainc: all three input arrays must have the same shapes, bit got a=%s, b=%s and x=%s instead !",ShapeUtils::shapeAsString(a).c_str(),ShapeUtils::shapeAsString(b).c_str(),ShapeUtils::shapeAsString(x).c_str());