Machine-Learning Machine Learning Library
Vec.java Vector Library: -void print(double[] vec) -void println(double[] vec) -void setAll(double[] vec, double val) -double squaredMagnitude(double[] vec) -void normalize(double[] vec) -void copy(double[] dest, double[] src) -double[] copy(double[] src) -void add(double[] dest, double[] src) -void scale(double[] dest, double scalar) -double dotProduct(double[] a, double[] b) -double squaredDistance(double[] a, double[] b) -void clip(double[] vec, double min, double max) -double[] concatenate(double[] a, double[] b) -Matrix outer_product(double[] a, double[] b) -void swap(int[] a, int b[], int index1, int index2) -void swap(double[] a, double b[], int index1, int index2) -void copyBlockVec(double[] source, double[] dest, int start, int end) -void addByLearningRate(double[] dest, double[] src, double learning_rate) -void saveArray(double[] src, String filename) -double[] loadArray(double[] dst, String filename)
Matrix.java Matrix Library: