Hi David,
thanks for the links. I had a lok at the OO-paper some time ago already,
heard however that its quite unusual and rather tricky to do OO-style
programming in Haskell. So I'm looking for suggestions how to tackle this
problem in a functional way.
Cheers Phil
--
View this message in
Hi Alberto.
first of all thanks for an awesome library, it really makes life a lot
easier.
Then thanks as well for Your openness on the re-licensing issue.
I played with the thought of starting some numeric software with haskell -
haskell is a really exiting language in that respect, the
Hi,
I created some code from scratch - probably ugly beginners style - so I'm
keen to get
tips how to make it more pretty and faster
Cheers Phil
import Data.List
-- Input Data
xi :: [Double]
xi = [0 .. 10]
yi :: [Double]
yi = [2, 3, 5, 6, 7, 8, 9, 10 , 9, 8, 7]
x = 11 :: Double
--
Hi all,
I realised that haskell in the base libraries tries to consistently stick to
the permissive BSD license to also give the language traction in the
commercial world.
The H-Matrix and the prelude numeric packages however, which in my mind
cover really important ground work, are issued
Hi Henning,
thanks for the code review -- reason that I don't use the type declaration a
lot -- It causes trouble , because I don't yet fully understand it.
When I declare what I think is right is fails - see Message at bottom -- so
what's wrong ?
By the way I just used lists so far - no
Hi Ivan,
thanks for making me aware that this is a potentialy controverse topic. -- I
have highest respect of people writing open source and I totally respect
their decision.
--
View this message in context:
Dear Haskellers,
I'm looking for Vector and especially Matric interpolation ala:
z = interp2 (xMatrix, yMatrix, zMatrix, x, y)
- x and y can be single values or also vectors or matrices
- indeally with the options nearest, linear, quadratic, qubic..
Any hope that there is
Hi Henning,
thanks - I don't claim I understand that yet with my limited haskell
knowledge, but it looks rather advanced passing modules around.
If there isn't anything standard of the shelf (which is important
feedback), than its probably the best for me to pull it up from scratch and
go
Hi Claude,
thanks a lot. - Your code looks interesting.
I just don't fully get how it works:
- are t a b c d points or curve parameters ?
- how does lifting to matrix create a 1d spline to a 2d spline ? -- I don't
see how it works
Cheers Phil
--
View this message in context:
Hi Claude,
thanks a lot. - Your code looks interesting.
I just don't fully get how it works:
- are t a b c d points or curve parameters ?
- how does lifting to matrix create a 1d spline to a 2d spline ? -- I don't
see how it works
Cheers Phil
--
View this message in context:
Thanks to all of You,
I think I learnt really a lot just on this thread about Haskell and also OO
in general.
I fear I'm too busy in the near future to come up with a good example and
some more questions. Might happen later, because this topic is really
interesting. Till then -- Thanks
On Fri, 14 Jan 2011 12:36:22 -0800 (PST)
Wolfgang Jeltsch-2 [via Haskell]
ml-node+3341886-976283800-146...@n5.nabble.com wrote:
Is this really ideal for OO? I thought that in a cellular automaton,
all cells have to change synchronously. In addition, cells have to
access the old states of
Hi Nick,
thanks a lot -- timber-lang seems very interesting, but seems still too
young for productive useage. That language probably needs 2 more years to
stabilise, but its defintely good that its so haskell related.
The other links are very interesting (especially the coding examples), but
Hi,
thanks for all Your answers (and again I'm amazed how active and good this
forum is).
I expected OOHaskell to be on the somewhat extended side, but I didn't
expect it to be so uncommon.
This very strong and clear feedback is indeed very valuable.
I think I see the complexities of
Hi,
I wanted to check whether Haskell offers reasonably easy object oriented
programming -- I already had a look into Haskell's overlooked object
system und A Gentle Introduction to Haskell 98 [H98]
There are a few things where I could use advice with:
1. OOHaskell doesn't seem to be
Jep, finally got it - that code works now. The Problem I had at the end was
that I didn't distinguish between type declaration of a function and a
value. -- the commented line for matrix 3 below shows what I did wrong.
I think we can close that topic for now - Thanks a lot for Your help
Hi,
Thanks for the help on the typing issue, that helped my understanding a lot.
Regarding the lift2 Matrix:
this line works :
matrixfunction x y = liftMatrix2 (zipVectorWith(\a1 a2 - if a2=0 then a1
else 0)) x y
but when I use this line :
matrixfunction f x y = liftMatrix2
Hi Henning,
You definitly caught me on that little Germanism :-)
About Your comments - a lot to learn and take in, but it really helps. -
Thanks a lot.
I just manged to get the Matrix masking running code looks like (code A see
below). Two quick questions:
question 1. u see the two commented
Hi Henning, Hi Alberto,
thanks for the quick and comprehensive help. - I managed to implement
Hennings suggestion with mapVector and zipWithVector. -- However have a
type inference problem with zipVectorWith -- probably a stupid beginners
mistake. (have a look below). I want to look into the
Hi Henning,
Yes I just realised my mistake myself - I hand over the function instead of
the result. A really facinating concept by the way.
Thanks again for the Matrix notation - will give it a go right away now. And
the manoever critics on the code is really nice. - Helps me a lot to
embrace
Hi Henk-Jan,
thanks for the advice - using hmatrix already worked, but only with simple
matrices. I'll check the dependencies thanks.
Hi Jason,
thanks a lot for the response. Looks like I found a like minded soul. These
links indeed sound very relevent for me.
Thanks and see u around,
Hi all,
In Matlab the following line of code:
V3 = V1.*(V20)
(V20) gives a Bool-Vector with ones (trues) and zero's where elements
of V2 are 0; Then this Bool vector is used to multiply all elements in V1
to zero
where the condition V20 is not fulfilled.
How can I do that in Haskell ? (I
Hi,
I'm very new to Haskell and this Forum, just doing my first steps ... -- Try
to use the hmatrix package for vector and matrix calculations.
The haskell compilation works (no problem in GHCi mode), the gcc however
compilation fails with messages like:
EFA.o: In function `r1bo_info':
Hi Jason,
many,many thanks - it works. -- u saved the day
Haskell rather seems like a steeper slope to be honest,
but I find the whole language concept very fascinating.
What I can't imagine yet, how to address typical oo-problems especially
when its not allowed to update and change
24 matches
Mail list logo