VecR64.java 430 B

1234567891011121314151617181920212223242526
  1. /** This is the runtime support for generic vectors.
  2. *
  3. * Written August 2004, John Gough.
  4. *
  5. *
  6. *
  7. */
  8. package CP.CPJvec;
  9. public class VecR64 extends VecBase
  10. {
  11. public double[] elms;
  12. public void expand() {
  13. double[] tmp = new double[this.elms.length * 2];
  14. for (int i = 0; i < this.tide; i++) {
  15. tmp[i] = this.elms[i];
  16. }
  17. this.elms = tmp;
  18. }
  19. }