/** * */ /** * @author nieminen * */ public class NeuralMath { /** * Computes A (1 x^T)^T * * @param res will be re-assigned to the outcome */ public static void vecMatWithBias(double[] x, double[][] mat, double[] res) { int m = mat.length; int n = mat[0].length; for (int i=0; i