Re: Fwd: Vector operations on datatypes in Tensor library...

Balazs Komuves <[email protected]> Sun, 3 Mar 2013 17:13:33 +0100
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <CAHZd2pm6Kr=ZrRedmVZtm9kpb_J29w8aG+bXRqfwjYyEm5-abA@mail.gmail.com>
--===============6997027333276490303==
Content-Type: multipart/alternative; boundary=f46d0408d69ba2e29e04d70785bb

--f46d0408d69ba2e29e04d70785bb
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi,

the vect library: http://hackage.haskell.org/package/vect
and its OpenGLl companion: http://hackage.haskell.org/package/vect-opengl

were written specifically for doing computer graphics. It probably contains
all vector/matrix operations you need. If this is not the case, I'm happy
to hear suggestions.

I don't think there is a better alternative at the moment (definitely
nothing close in coverage of functionality).
(disclaimer: I'm the author of these)

Historical note: The Tensor package was born because the original author of
the OpenGL package felt that it makes sense to make it separate from the
big OpenGL package. He planned a serious refactoring/rewrite of the OpenGL
package. However, he seems to have disappeared since.

Balazs



On Sun, Mar 3, 2013 at 2:26 PM, Michal J Gajda <[email protected]> wrote:

> Dear All,
>
> I see that Tensor library is used in OpenGL, OpenVG and few other
> libraries.
> Is there any plan to make vector operations available? [E.g. dot and cros=
s
> product, vector projection and rejection.]
>
> Would you accept a patch, or would you recommend making another library?
> (Say Tensor-Operations:Data.Tensor.Operations.)
>
> For now they are included in AC-Vector package that uses a different type=
,
> which leads to impedance mismatch and unnecessary copying.
>
> I already contacted the maintainer of AC-Vector package, but got no answe=
r
> to this problem so far.
> --
>   Best regards
>     Michal
>
>
>
> --
>   Pozdrawiam
>     Micha=C5=82
> _______________________________________________
> HOpenGL mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/hopengl
>
>

--f46d0408d69ba2e29e04d70785bb
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<br>Hi,<br><br>the vect library: <a href=3D"http://hackage.haskell.org/pack=
age/vect">http://hackage.haskell.org/package/vect</a><br>and its OpenGLl co=
mpanion: <a href=3D"http://hackage.haskell.org/package/vect-opengl">http://=
hackage.haskell.org/package/vect-opengl</a><br>
<br>were written specifically for doing computer graphics. It probably cont=
ains all vector/matrix operations you need. If this is not the case, I&#39;=
m happy to hear suggestions.<br><br>I don&#39;t think there is a better alt=
ernative at the moment (definitely nothing close in coverage of functionali=
ty).<br>
(disclaimer: I&#39;m the author of these)<br><br>Historical note: The Tenso=
r package was born because the original author of the OpenGL package felt t=
hat it makes sense to make it separate from the big OpenGL package. He plan=
ned a serious refactoring/rewrite of the OpenGL package. However, he seems =
to have disappeared since.<br>
<br>Balazs<br><br><br><br><div class=3D"gmail_quote">On Sun, Mar 3, 2013 at=
 2:26 PM, Michal J Gajda <span dir=3D"ltr">&lt;<a href=3D"mailto:mgajda@mim=
uw.edu.pl" target=3D"_blank">[email protected]</a>&gt;</span> wrote:<br><=
blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px=
 #ccc solid;padding-left:1ex">
Dear All,<br><div class=3D"gmail_quote"><div><div><div class=3D"gmail_quote=
"><div><br></div><div>I see that Tensor library is used in OpenGL, OpenVG a=
nd few other libraries.</div><div>Is there any plan to make vector operatio=
ns available? [E.g. dot and cross product, vector projection and rejection.=
]</div>



<div><br></div><div>Would you accept a patch, or would you recommend making=
 another library? (Say Tensor-Operations:Data.Tensor.Operations.)</div><div=
><br></div><div>For now they are included in AC-Vector package that uses a =
different type, which leads to impedance mismatch and unnecessary copying.<=
/div>

<div><br></div><div>I already contacted the maintainer of AC-Vector package=
, but got no answer to this problem so far.<span class=3D"HOEnZb"><font col=
or=3D"#888888"><span><font color=3D"#888888"><br></font></span></font></spa=
n></div>
</div><span class=3D"HOEnZb"><font color=3D"#888888">-- <br>
=C2=A0 Best regards<br></font></span></div></div><span class=3D"HOEnZb"><fo=
nt color=3D"#888888"><span><font color=3D"#888888">=C2=A0 =C2=A0 Michal
</font></span></font></span></div><span class=3D"HOEnZb"><font color=3D"#88=
8888"><br><br clear=3D"all"><div><br></div>-- <br>=C2=A0 Pozdrawiam<br>=C2=
=A0 =C2=A0 Micha=C5=82
</font></span><br>_______________________________________________<br>
HOpenGL mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]</a><br>
<a href=3D"http://www.haskell.org/mailman/listinfo/hopengl" target=3D"_blan=
k">http://www.haskell.org/mailman/listinfo/hopengl</a><br>
<br></blockquote></div><br>

--f46d0408d69ba2e29e04d70785bb--


--===============6997027333276490303==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
HOpenGL mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/hopengl

--===============6997027333276490303==--