// получение вектора из производных функции type public Vector Derivative(ActivationType type) { Vector derivative = new Vector(length); Parallel.For(0, length, i => { derivative.values[i] = ActivationFunction.Derivative(type, values[i]); }); return(derivative); }