}
@Test
public void rowMatrixToArray() {
double []myinitMatrix = {1, 2, 3};
Matrix myMatrix = Matrix.createRowMatrix(myinitMatrix);
double []myArrayFromMatrix = myMatrix.toPackedArray();
assertEquals(3, myArrayFromMatrix.length);
assertEquals(myinitMatrix[0], myArrayFromMatrix[0], EPSILON);
assertEquals(myinitMatrix[1], myArrayFromMatrix[1], EPSILON);
assertEquals(myinitMatrix[2], myArrayFromMatrix[2], EPSILON);
}