!include once #1035331 // EJML Include (Matrix library) static DMatrixRMaj ejmlVectorToMatrix(double... vector) { int n = vector.length; var matrix = new DMatrixRMaj(n, 1); for i to n: matrix.set(i, 0, vector[i]); ret matrix; }