/*
 * RandomConn.cpp
 *
 *  Created on: Apr 27, 2009
 *      Author: rasmussn
 */

#include "RandomConn.hpp"
#include <assert.h>
#include <string.h>

namespace PV {

RandomConn::RandomConn(const char * name,
      HyPerCol * hc, HyPerLayer * pre, HyPerLayer * post, int channel)
{
   this->connId = hc->numberOfConnections();
   this->name   = strdup(name);
   this->parent = hc;

   this->numBundles = 1;

   initialize(NULL, pre, post, channel);

   hc->addConnection(this);
}

int RandomConn::initializeWeights(const char * filename)
{
   assert(filename == NULL);
   return initializeRandomWeights(0);
}

}

/*
 * RandomConn.cpp
 *
 *  Created on: Apr 27, 2009
 *      Author: rasmussn
 */

#include "RandomConn.hpp"
#include <assert.h>
#include <string.h>

namespace PV {

RandomConn::RandomConn(const char * name,
      HyPerCol * hc, HyPerLayer * pre, HyPerLayer * post, int channel)
{
   this->connId = hc->numberOfConnections();
   this->name   = strdup(name);
   this->parent = hc;

   this->numAxonalArborLists = 1;

   initialize(NULL, pre, post, channel);

   hc->addConnection(this);
}

int RandomConn::initializeWeights(const char * filename)
{
   assert(filename == NULL);
   return initializeRandomWeights(0);
}

}

Convert to use of axonalArbor syntax.
Convert to use of axonalArbor syntax.

git-svn-id: 602a26e73ae9f2a14e2bb95676f2e137fcc39919@1533 7c0444ca-5550-0410-9008-faecdbe78eb5
