@Test
public void testAll() {

  SequentialAccessSparseVector x = new SequentialAccessSparseVector(CARDINALITY);
  for (int i = 0; i < x.size(); ++i) {
    x.setQuick(i, i);
  }
  SequentialAccessSparseVector y = new SequentialAccessSparseVector(x);
  System.out.printf("function %s; operation %s\n", function, operation);
  operation.assign(x, y, function);
  for (int i = 0; i < x.size(); ++i) {
    assertEquals(x.getQuick(i), function.apply(i, i), 0.0);
  }
}