In line 145 yes. In 158 I'm refering to networks with neurons indexed in 1D by layer. I should had made this clearer, thanks.