Retourner au contenu associé (dépêche : OCaml 3.10.0 est sorti)
Posté par gasche le 23 mai 2007 à 18:35. En réponse à la dépêche OCaml 3.10.0 est sorti. Évalué à 6.
écrire un produit de matrice de façon fonctionnelle, c'est ridicule
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
[^] # Re: Dommage...
Posté par gasche . En réponse à la dépêche OCaml 3.10.0 est sorti. Évalué à 6.
open Array
let ( @@ ) f g x = f (g x)
let produit mata matb =
....let coeff li col =
........fold_left ( + ) 0
............(init (length matb) (fun k -> mata.(li).(k) * matb.(k).(col)))
....in
....init (length mata) (init (try length matb.(0) with _ -> 0) @@ coeff)
100% tableaux non mutables (non mutés, en tout cas).