Calculation of hybrid multi-layered perceptron neural network output using matrix multiplication