Borland is giving me a warning for some reason. Not sure why??
Has anyone come across this warning before please?
"Functions containing for are not expanded inline"
Here is part of my code with one of the for loops it seems to be complaining about:
Thank you!Code:class Neuron { public: Neuron(unsigned int numI) { neuronNumInputs = numI; for(unsigned int i=0; i<neuronNumInputs; i++) { vecWeights.push_back(randWeight()); } } double produceOutput(const vector<double>& inputs) { assert(neuronNumInputs == inputs.size()); double activation = 0; for(unsigned int i=0; i<inputs.size(); i++) { activation += vecWeights[i]*inputs[i]; } double neuronOutput = 1/(1 + exp(-activation)); return neuronOutput; } private: // Encapsulate variables unsigned int neuronNumInputs; vector<double> vecWeights; };



LinkBack URL
About LinkBacks



