Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You are right that integer and floating point arithmetic costs are different but not as much as one could assume. It highly depends on which processor unit is used for the computation. Particularly for Intel processors, you can find helpful information in the "Optimization Reference Manual" available at <a href="http://www.intel.com/products/processor/manuals/" rel="nofollow">http://www.intel.com/products/processor/manuals/</a>. Appendix C lists instruction latencies for all instructions.</p> <p>To your specific question, if computation time for matrix multiplication is depending on whether the entries of the two matrices contain identical or random values, the answer is "no". If you look at the amount and sequence of instructions as well as the memory access pattern at computation runtime, it is all the same in both cases. The compiler usually also can't take any advantage of the fact that the matrices are all made up of the same entries because matrix multiplication needs to cover all possible cases. (Ok, unless you pack everything - filling the matrix entries and the multiplication itself - in one function and rule out all side effects like aliasing, then a very very smart compiler could probably make something out of it, but we are not talking about that, right?)</p> <p>Also, the size in digits (I assume you are referring to decimal digits) does not matter. Every matrix entry is represented by <strong>all</strong> of its 32 bits in case of single precision floating point numbers (or 64 bits in case of double precision).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload