8 #include "ANNSquaredLayer.hpp" 10 void ANNSquaredLayer_update_state(
27 ANNSquaredLayer::ANNSquaredLayer() { initialize_base(); }
29 ANNSquaredLayer::ANNSquaredLayer(
const char *name, HyPerCol *hc) {
34 ANNSquaredLayer::~ANNSquaredLayer() {}
36 int ANNSquaredLayer::initialize_base() {
41 int ANNSquaredLayer::initialize(
const char *name, HyPerCol *hc) {
42 int status = ANNLayer::initialize(name, hc);
43 assert(numChannels == 1);
47 Response::Status ANNSquaredLayer::updateState(
double time,
double dt) {
48 const int nx = clayer->loc.nx;
49 const int ny = clayer->loc.ny;
50 const int nf = clayer->loc.nf;
51 const int nbatch = clayer->loc.nbatch;
53 float *GSynHead = GSyn[0];
55 float *activity = clayer->activity->data;
57 ANNSquaredLayer_update_state(
70 return Response::SUCCESS;
79 void ANNSquaredLayer_update_state(
94 updateV_ANNSquaredLayer(nbatch, numNeurons, V, GSynHead);
95 setActivity_HyPerLayer(nbatch, numNeurons, activity, V, nx, ny, nf, lt, rt, dn, up);