Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so dont bother with any of their useless mail servers here and just use oauth login instead. Thank the nice Russians for causing that. :)

Paste

Pasted as Haskell by joaopizani ( 16 years ago )
module Main where

import System.Random (newStdGen)
import Data.Array.Parallel.PArray (PArray, randomRs)
import Data.Array.Parallel.Prelude
import DPHVecMul (dotp)


main = do gen1 <- newStdGen
   gen2 <- newStdGen

   let n = 10000
       r = (-100, 100)

   let v = randomRs n r gen1 :: PArray Double
       w = randomRs n r gen2 :: PArray Double

   print $ fromPArrayP v
   print "\n\n\n"
   print $ fromPArrayP w

 

Revise this Paste

Your Name: Code Language: