You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.0 KiB

  1. Value constructor
  2. Value constructor
  3. v1 = [1.000000, 2.000000]
  4. v2 = [3.000000, -1.000000]
  5. Value constructor
  6. Move constructor
  7. Destructor.
  8. Destructor.
  9. v1+v2 = [4.000000, 1.000000]
  10. Value constructor
  11. Move constructor
  12. Destructor.
  13. Destructor.
  14. v1-v2 = [-2.000000, 3.000000]
  15. Value constructor
  16. Move constructor
  17. Destructor.
  18. Destructor.
  19. v1-8 = [-7.000000, -6.000000]
  20. Value constructor
  21. Move constructor
  22. Destructor.
  23. Destructor.
  24. v1+8 = [9.000000, 10.000000]
  25. Value constructor
  26. Move constructor
  27. Destructor.
  28. Destructor.
  29. v1*8 = [8.000000, 16.000000]
  30. Value constructor
  31. Move constructor
  32. Destructor.
  33. Destructor.
  34. v1/8 = [0.125000, 0.250000]
  35. Value constructor
  36. Move constructor
  37. Destructor.
  38. Destructor.
  39. 8-v1 = [7.000000, 6.000000]
  40. Value constructor
  41. Move constructor
  42. Destructor.
  43. Destructor.
  44. 8+v1 = [9.000000, 10.000000]
  45. Value constructor
  46. Move constructor
  47. Destructor.
  48. Destructor.
  49. 8*v1 = [8.000000, 16.000000]
  50. Value constructor
  51. Move constructor
  52. Destructor.
  53. Destructor.
  54. 8/v1 = [8.000000, 4.000000]
  55. (v1+v2)*2 = [8.000000, 2.000000]
  56. Destructor.
  57. Destructor.