src/Reservoir.cpp
EchoBay::Reservoir::Reservoir(const int nLayers, const int Nu, const int type)
{
    // Save layers
    _nLayers = nLayers;
    // Save input
    _Nu = Nu;
    // Save type
    _type = type;
    // Reserve vectors
    WinLayers.reserve(_nLayers);
    WrLayers.reserve(_nLayers);
    stateMat.reserve(_nLayers);
    _layerConfig.reserve(_nLayers);
}
/**
 * @brief Construct a Reservoir class with a given topology, number of layers and inputs
 * 
 * @param nLayers Number of layers in deep reservoirs (= 1 in shallow networks)
 * @param Nu Number of input channels
 * @param type Topology of the network see also EchoBay::esn_config(const Eigen::VectorXd &optParams, YAML::Node confParams, int Nu, const std::string folder)
 * for details
 */
@brief Construct a Reservoir class with a given topology, number of layers and inputs


@brief Construct a Reservoir class with a given topology number of layers and inputs
EchoBay::Reservoir::Reservoir(const int nLayers, const int Nu, const int type)
{
    _nLayers = nLayers;
    _Nu = Nu;
    _type = type;
    WinLayers.reserve(_nLayers);
    WrLayers.reserve(_nLayers);
    stateMat.reserve(_nLayers);
    _layerConfig.reserve(_nLayers);
}
EchoBay :: Reservoir :: Reservoir ( const int nLayers , const int Nu , const int type ) { _nLayers = nLayers ; _Nu = Nu ; _type = type ; WinLayers . reserve ( _nLayers ) ; WrLayers . reserve ( _nLayers ) ; stateMat . reserve ( _nLayers ) ; _layerConfig . reserve ( _nLayers ) ; }
@brief Construct a Reservoir class with a given topology, number of layers and inputs
@brief Construct a Reservoir class with a given topology number of layers and inputs
// Save layers // Save input // Save type // Reserve vectors