Re: (no subject)

Peter Gottschling <[email protected]> Wed, 18 Apr 2007 11:23:17 -0400
Newsgroups gmane.comp.lib.mtl.devel
Message-ID <[email protected]>
--===============0770526227==
Content-Type: multipart/alternative; boundary=Apple-Mail-22-1034102350


--Apple-Mail-22-1034102350
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=WINDOWS-1252;
	delsp=yes;
	format=flowed

Hello,

This is an old problem with the versions of MTL.  There are some =20
'typename' missing (earlier versions missed much more typenames, =20
anyway).  I fixed many of them in the newer release (thanks again to =20
everybody who sent me patches).  This most likely will work if you =20
use version 2.1.2-23.

Good luck,
Peter


On Apr 18, 2007, at 11:17 AM, Jack Chessa wrote:

> Hello forgive me if this is an oversight on my part.  I am still =20
> trying to figure out the algorithm notation with MTL.  It is a bit odd
>
> I am using MTL ver 2.1.2-22 on OS X with gcc 4.0
>
> I am ttrying to run vec_two_norm.cc
>
>
> #include <iostream>
> using namespace std;
>
> #include <mtl/dense1D.h>
> #include <mtl/mtl.h>
>
> /*
>   example output:
>
>   6.32456
>
> */
>
> int main()
> {
>   using namespace mtl;
>   using namespace std;
>   // begin
>   dense1D<double> x(10, 2.0);
> 	print_vector(x);
>   double s =3D two_norm(x);
>   //cout << two_norm(x) << endl;
>   // end
>
>   return 0;
> }
>
> I get the following error
>
> make mtl_norm
> g++ -g  -I/Users/jackchessa/Code/Basso/basso-1.0/inc -I/Users/=20
> jackchessa/Code/Basso/basso-1.0/mtl/mtl   -o mtl_norm mtl_norm.cpp -=20=

> framework veclib
> In function =91typename mtl::linalg_traits<Linalg>::magnitude_type =20
> mtl::two_norm(const Vector&) [with Vector =3D mtl::dense1D<double, =
0>]=92:
> instantiated from here
> error: dependent-name =91mtl::dim_n<Vector>::RET=92 is parsed as a =
non-=20
> type, but instantiation yields a type
> note: say =91typename mtl::dim_n<Vector>::RET=92 if a type is meant
> make[1]: *** [mtl_norm] Error 1
> make: *** [tests] Error 2
>
> Any idea what is going on here?
>
> hanks
> Jack
>
> Jack Chessa
> Assistant Professor
> Department of Mechanical Engineering
> University of Texas at El Paso
> Email:	[email protected]
> Office:	A309
> Voice:	(915) 747-6900
> Fax:		(915) 747-5019
> Web:	www.dmc.utep.edu/chessa
>
> _______________________________________________
> This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/

------------
Peter Gottschling
Research Associate
Open Systems Laboratory
Indiana University
135 Lindley Hall
Bloomington, IN 47405
Tel.: +1 812 855-3608   Fax: +1 812 856 0853
http://www.osl.iu.edu/~pgottsch



--Apple-Mail-22-1034102350
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=WINDOWS-1252

<HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; =
-khtml-line-break: after-white-space; ">Hello,<DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>This is an old problem with =
the versions of MTL.=A0 There are some 'typename' missing (earlier =
versions missed much more typenames, anyway).=A0 I fixed many of them in =
the newer release (thanks again to everybody who sent me patches).=A0 =
This most likely will work if you use version 2.1.2-23.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Good =
luck,</DIV><DIV>Peter</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>On Apr 18, =
2007, at 11:17 AM, Jack Chessa wrote:</DIV><BR =
class=3D"Apple-interchange-newline"><BLOCKQUOTE type=3D"cite"><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">Hello forgive me if this is an oversight on my =
part.=A0 I am still trying to figure out the algorithm notation with =
MTL.=A0 It is a bit odd</DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal =
normal normal 12px/normal Helvetica; min-height: 14px; "><BR></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">I am using MTL ver 2.1.2-22 on OS X with gcc =
4.0</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; font: normal normal normal =
12px/normal Helvetica; min-height: 14px; "><BR></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">I am ttrying to run vec_two_norm.cc</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 12px/normal Helvetica; =
min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal =
normal normal 12px/normal Helvetica; min-height: 14px; "><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>#include =
&lt;iostream&gt;</DIV><DIV>using namespace std;</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>#include =
&lt;mtl/dense1D.h&gt;</DIV><DIV>#include &lt;mtl/mtl.h&gt;</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>/*</DIV><DIV>=A0 example =
output:</DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV>=A0 =
6.32456</DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV> =
*/</DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV>int =
main()</DIV><DIV>{</DIV><DIV>=A0 using namespace mtl;</DIV><DIV>=A0 =
using namespace std;</DIV><DIV>=A0 // begin</DIV><DIV>=A0 =
dense1D&lt;double&gt; x(10, 2.0);</DIV><DIV><SPAN class=3D"Apple-tab-span"=
 style=3D"white-space:pre">	</SPAN>print_vector(x);</DIV><DIV>=A0 =
double s =3D two_norm(x);</DIV><DIV>=A0 //cout &lt;&lt; two_norm(x) =
&lt;&lt; endl;</DIV><DIV>=A0 // end</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>=A0 return =
0;</DIV><DIV>}</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; font: normal normal normal =
12px/normal Helvetica; min-height: 14px; "><BR =
class=3D"khtml-block-placeholder"></DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I get the =
following error</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; font: normal normal normal =
12px/normal Helvetica; min-height: 14px; "><BR></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; background-color: rgb(240, 240, 240); "><FONT =
class=3D"Apple-style-span" face=3D"Monaco" size=3D"3"><SPAN =
class=3D"Apple-style-span" style=3D"font-size: 12.4px;">make =
mtl_norm</SPAN></FONT></DIV><DIV style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(240, =
240, 240); "><FONT class=3D"Apple-style-span" face=3D"Monaco" =
size=3D"3"><SPAN class=3D"Apple-style-span" style=3D"font-size: =
12.4px;">g++ -g=A0 -I/Users/jackchessa/Code/Basso/basso-1.0/inc =
-I/Users/jackchessa/Code/Basso/basso-1.0/mtl/mtl =A0 -o mtl_norm =
mtl_norm.cpp -framework veclib</SPAN></FONT></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; background-color: rgb(240, 240, 240); "><A =
href=3D"txmt://open?url=3Dfile:///usr/local/include/mtl/mtl.h"><FONT =
class=3D"Apple-style-span" face=3D"Monaco" size=3D"3"><SPAN =
class=3D"Apple-style-span" style=3D"font-size: 12.4px;">In function =
=91typename mtl::linalg_traits&lt;Linalg&gt;::magnitude_type =
mtl::two_norm(const Vector&amp;) [with Vector =3D =
mtl::dense1D&lt;double, 0&gt;]=92:</SPAN></FONT></A></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; background-color: rgb(240, 240, 240); "><A =
href=3D"txmt://open?url=3Dfile:///Users/jackchessa/Code/Basso/basso%2D1.0/=
examples/basic/mtl%5Fnorm.cpp&line=3D22"><FONT class=3D"Apple-style-span" =
face=3D"Monaco" size=3D"3"><SPAN class=3D"Apple-style-span" =
style=3D"font-size: 12.4px;">instantiated from =
here</SPAN></FONT></A></DIV><DIV style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(240, =
240, 240); "><A =
href=3D"txmt://open?url=3Dfile:///usr/local/include/mtl/mtl.h&line=3D288">=
<FONT class=3D"Apple-style-span" face=3D"Monaco" size=3D"3"><SPAN =
class=3D"Apple-style-span" style=3D"font-size: 12.4px;">error: =
dependent-name =91mtl::dim_n&lt;Vector&gt;::RET=92 is parsed as a =
non-type, but instantiation yields a type</SPAN></FONT></A></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; background-color: rgb(240, 240, 240); "><A =
href=3D"txmt://open?url=3Dfile:///usr/local/include/mtl/mtl.h&line=3D288">=
<FONT class=3D"Apple-style-span" face=3D"Monaco" size=3D"3"><SPAN =
class=3D"Apple-style-span" style=3D"font-size: 12.4px;">note: say =
=91typename mtl::dim_n&lt;Vector&gt;::RET=92 if a type is =
meant</SPAN></FONT></A></DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
background-color: rgb(240, 240, 240); "><FONT class=3D"Apple-style-span" =
face=3D"Monaco" size=3D"3"><SPAN class=3D"Apple-style-span" =
style=3D"font-size: 12.4px;">make[1]: *** [mtl_norm] Error =
1</SPAN></FONT></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; background-color: rgb(240, 240, =
240); "><FONT class=3D"Apple-style-span" face=3D"Monaco" size=3D"3"><SPAN =
class=3D"Apple-style-span" style=3D"font-size: 12.4px;">make: *** =
[tests] Error 2</SPAN></FONT></DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal =
normal normal 12px/normal Helvetica; min-height: 14px; "><BR></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">Any idea what is going on here?</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 12px/normal Helvetica; =
min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
">hanks</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">Jack</DIV><BR><DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><FONT face=3D"Helvetica" size=3D"3" style=3D"font: =
12.0px Helvetica">Jack Chessa</FONT></DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT =
face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px Helvetica">Assistant =
Professor</FONT></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; "><FONT face=3D"Helvetica" =
size=3D"3" style=3D"font: 12.0px Helvetica">Department of Mechanical =
Engineering</FONT></DIV><DIV style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; "><FONT face=3D"Helvetica" =
size=3D"3" style=3D"font: 12.0px Helvetica">University of Texas at El =
Paso</FONT></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; "><FONT face=3D"Helvetica" =
size=3D"3" style=3D"font: 12.0px Helvetica">Email:<SPAN =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</SPAN><A =
href=3D"mailto:[email protected]">[email protected]</A></FONT></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><FONT face=3D"Helvetica" size=3D"3" style=3D"font: =
12.0px Helvetica">Office:<SPAN class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</SPAN>A309</FONT></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><FONT face=3D"Helvetica" size=3D"3" style=3D"font: =
12.0px Helvetica">Voice:<SPAN class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</SPAN>(915) 747-6900</FONT></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><FONT face=3D"Helvetica" size=3D"3" style=3D"font: =
12.0px Helvetica">Fax:<SPAN class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</SPAN><SPAN class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</SPAN>(915) 747-5019</FONT></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><FONT face=3D"Helvetica" size=3D"3" style=3D"font: =
12.0px Helvetica">Web:<SPAN class=3D"Apple-tab-span" =
style=3D"white-space:pre">	=
</SPAN>www.dmc.utep.edu/chessa</FONT></DIV>  </DIV><BR><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; =
">_______________________________________________</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">This list is archived at <A =
href=3D"http://www.osl.iu.edu/MailArchives/mtl-devel/">http://www.osl.iu.e=
du/MailArchives/mtl-devel/</A></DIV> </BLOCKQUOTE></DIV><BR><DIV> <SPAN =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><SPAN =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; =
"><DIV>------------</DIV><DIV>Peter Gottschling</DIV><DIV>Research =
Associate</DIV><DIV>Open Systems Laboratory</DIV><DIV>Indiana =
University</DIV><DIV>135=A0Lindley Hall</DIV><DIV>Bloomington, IN =
47405</DIV><DIV>Tel.: +1 812 855-3608=A0 =A0Fax: +1 812 856 =
0853</DIV><DIV><A =
href=3D"http://www.osl.iu.edu/~pgottsch">http://www.osl.iu.edu/~pgottsch</=
A></DIV><BR class=3D"Apple-interchange-newline"></SPAN></SPAN> =
</DIV><BR></DIV></BODY></HTML>=

--Apple-Mail-22-1034102350--

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

_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/
--===============0770526227==--