14 #include "PtwiseQuotientLayer.hpp" 18 PtwiseQuotientLayer::PtwiseQuotientLayer() { initialize_base(); }
20 PtwiseQuotientLayer::PtwiseQuotientLayer(
const char *name, HyPerCol *hc) {
25 PtwiseQuotientLayer::~PtwiseQuotientLayer() {}
27 int PtwiseQuotientLayer::initialize_base() {
32 int PtwiseQuotientLayer::initialize(
const char *name, HyPerCol *hc) {
33 return ANNLayer::initialize(name, hc);
36 Response::Status PtwiseQuotientLayer::allocateDataStructures() {
37 auto status = ANNLayer::allocateDataStructures();
38 pvAssert(numChannels >= 2);
42 Response::Status PtwiseQuotientLayer::updateState(
double timef,
double dt) {
44 timef, dt, getLayerLoc(), getCLayer()->activity->data, getV(), getNumChannels(), GSyn[0]);
45 return Response::SUCCESS;
48 void PtwiseQuotientLayer::doUpdateState(
59 int num_neurons = nx * ny * nf;
60 int nbatch = loc->nbatch;
61 updateV_PtwiseQuotientLayer(nbatch, num_neurons, V, gSynHead);
62 setActivity_HyPerLayer(