Browse thread
Multiplication of matrix in C and OCaml
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Jon Harrop <jon@f...> |
| Subject: | Re: [Caml-list] Multiplication of matrix in C and OCaml |
On Saturday 10 February 2007 01:41, ls-ocaml-developer-2006@m-e-leypold.de wrote: > Sorry, I wanted to say "optimize (a * b) *c == a * (b * c) to true", > i.e. 1. Would the compiler be wrong/incorrect in doing so? Yes. > I don't think so. Provided you only specify -O* optimisation flags, I believe that reducing that expression to "true" in the general case would be a compiler bug. If you specify flags like -ffast-math then anything can happen, but it will happen very quickly! ;-) -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. OCaml for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists