title: How do I make a class generic for all Numeric Types?
body: <p>I am trying to create a Vector class that is generic for all numeric types.
  my original attempt was to write a class for all Types like this:</p>
  
  <pre><code>class Vector3f(val x:Float, val y:Float, val z:Float)
  </code></pre>
  
  <p>since scala supports the specialised annotation I could use this to generate me these classes for all numeric types</p>
  
  <pre><code>class Vector3[A &lt;: What?](val x:A,val y:A, val z:A)
  </code></pre>
  
  <p>but everything I found as a super type for numbers was AnyVal, but AnyVal does not support + - * /. So what is the right way to do this, but without sacrificing the performance of unboxed number types?</p>