@Test
public void testSimpleOps() {
T v0 = vectorToTest(20);
Random gen = RandomUtils.getRandom();
Vector v1 = v0.assign(new Normal(0, 1, gen));
// verify that v0 and v1 share and are identical
assertEquals(v0.get(12), v1.get(12), 0);
v0.set(12, gen.nextDouble());
assertEquals(v0.get(12), v1.get(12), 0);
assertSame(v0, v1);
Vector v2 = vectorToTest(20).assign(new Normal(0, 1, gen));
Vector dv1 = new DenseVector(v1);
Vector dv2 = new DenseVector(v2);
Vector sv1 = new RandomAccessSparseVector(v1);
Vector sv2 = new RandomAccessSparseVector(v2);