Thanks for the replies. - Looks like there's not a straight forward way and
I'm not yet on a level
and don't have the time to make fancy wrappers or instances.
Repa is indeed very Interesting, but I have changing vector length in the
second dimension and later on only want to generate Data on dem
Hello,
quick question about unboxed Vectors :
Is it possible to create an unboxed vector of unboxed vector ? :
> import qualified Data.Vector.Unboxed as V
> type UnboxedNestedVextor = V.Vector (V.Vector Int)
Alternatively I would have to use:
> import qualified Data.Vector.Unboxed as V
>
ching buffers works really fast.
Cheers
Ian Ross wrote:
>
> From: Ian Ross
> To: kaffeepause73
> Subject: Re: [Haskell-cafe] howto best use emacs + tiling WM (Xmonad,DWM)
> Date: Fri, 4 Nov 2011 17:12:57 +0100
> Sender: ian.skybluetra...@gmail.com
>
> I use XMonad and Ema
Hello,
I'm using dwm which I really love (ev. consider switching to xmonad).
However when I'm working with emacs (programming haskell) und dwm I feel,
I'm not as effecient as I eventually could be. -- I can have the shell in
one window (to execute the compiled program), but most work happens in
Hi Ivan,
I already played around a fair bit with options in both cases, but
there are quite a few so it gets quite worky with try and error.
Going to graphviz directly doesn't seem a bad idea.
Thanks Phil
--
View this message in context:
http://haskell.1045720.n5.nabble.com/Three-questions-t
Hi Dave,
Thanks for the quick reply - it works now. - I wasted quite a bit time on
this.
I guess the "internal" bit in the compiler message confused me.
Cheers Phil
--
View this message in context:
http://haskell.1045720.n5.nabble.com/Three-questions-to-graphviz-tp418p4888946.html
Sent from
First of all - thanks a lot for this package, graphviz is an awesome tool and
having this interface library is really convenient. There a three point
where I could use some help:
1. when I try to create a label with e.g.: textLabelValue "Hallo" -
the compiler complains he can't match string
Hi Evan,
that looks very interesting indeed - as still newby I try to understand:
- u create a class "Y" to tackle the "zero" problem for different kinds of y
vectors in a common way
- u create a "Signal" class for the Y- signal inheriting interfaces from y
and Storable.Storable
Then u nest X
Dear all,
I'm created a timeSignal datatype as container around a "Vector Double" data
type (see simple code below) and subsequently started to instanciate Num &
Eq to be able to perform operations on it. Additionally I want store ifno
like an index, time information and eventually an inheritence
Hi Johan,
actually quite obvious. Code works now, many thanks. :-)
import Data.Packed.Vector
data PowerSig = PowerSig Int Double (Vector Double) -- signal Index timeStep
data
instance Show PowerSig where
show (PowerSig idx dt vector) = "PowerSignal Nr: " ++ show idx ++ " dt: "
++ show d
I try to create an own data type containing "Vector Double" from the H-Matrix
package. The code:
##
data PowerSig = PowerSig Int Double Vector Double
main = do
let p5 = PowerSig 1 0.1 (fromList [1,2,3])
##
When compiling with ghci, I get however the following message:
`Vector' is not ap
Its also worth looking at Arch Linux - they have a rolling release and are
therefore
very up to date and have from first glance a very good haskell integration.
The community
is excellent as well.
I switched back to debian squeeze however, because of its stability - update
seldomly cause trouble
Hey guys,
thanks for the very quick help. The code works and looks like:
(any tips regards speed and memory usage ?)
import System.IO
import Data.Array
import Data.Packed.Matrix
parse :: String -> [[Double]] -- expects plainer syntax
parse = map (map read . words) . lines
main = do
--
w
let a = fromLists m
putStrLn (show a)
-- cuts out first row to get signal
let t = takerows 1 m
putStrLn (show t)
putStrLn "Finish"
kaffeepause73 wrote:
>
> Dear all,
>
> I want to read numeric data in vector / matrix format generated by
Dear all,
I want to read numeric data in vector / matrix format generated by octave.
As I haven't seen any octave specific libraries yet (only matlab), I'm
tyrying the way via ascii - file.
The folloing file log.txt contains three signal traces in the three columns
(time, signal 1, signal 2)
0
15 matches
Mail list logo