PetaVision  Alpha
InitIdentWeights.cpp
1 /*
2  * InitIdentWeights.cpp
3  *
4  * Created on: Aug 14, 2011
5  * Author: kpeterson
6  */
7 
8 #include "InitIdentWeights.hpp"
9 
10 namespace PV {
11 
12 InitIdentWeights::InitIdentWeights(char const *name, HyPerCol *hc) { initialize(name, hc); }
13 
14 InitIdentWeights::InitIdentWeights() {}
15 
16 InitIdentWeights::~InitIdentWeights() {}
17 
18 int InitIdentWeights::initialize(char const *name, HyPerCol *hc) {
19  int status = InitOneToOneWeights::initialize(name, hc);
20  return status;
21 }
22 
23 void InitIdentWeights::ioParam_weightInit(enum ParamsIOFlag ioFlag) {
24  mWeightInit = 1.0f;
25  parent->parameters()->handleUnnecessaryParameter(name, "weightInit", 1.0f);
26 }
27 
28 } /* namespace PV */