/**
* Test constructor.
*/
public void testConstructor() {
MathVector v = new MathVector(0);
assertEquals(0, v.getColumns());
assertEquals(0, v.size());
assertEquals(1, v.getRows());
v = new MathVector(1);
assertEquals(1, v.getColumns());
assertEquals(1, v.size());
assertEquals(1, v.getRows());
assertEquals(0.0, v.getElement(0));
v = new MathVector(2);
assertEquals(2, v.getColumns());
assertEquals(2, v.size());
assertEquals(1, v.getRows());
assertEquals(0.0, v.getElement(0));
assertEquals(0.0, v.getElement(1));
v = new MathVector(3);
assertEquals(3, v.getColumns());
assertEquals(3, v.size());
assertEquals(1, v.getRows());
assertEquals(0.0, v.getElement(0));
assertEquals(0.0, v.getElement(1));
assertEquals(0.0, v.getElement(2));
}