Re: [GSoC 19] About programming competency test
Cem Bassoy via ublas <[email protected]> Mon, 18 Feb 2019 13:22:45 +0100
| Newsgroups | gmane.comp.lib.boost.ublas |
|---|---|
| Message-ID | <CADrR+FuErzNRvpXMwaeRPOdj5mA4Kd0wohyrjDvGYunS2hYFmw@mail.gmail.com> |
--===============5910642506249918814== Content-Type: multipart/alternative; boundary="0000000000003e17ae05822a2f00" --0000000000003e17ae05822a2f00 Content-Type: text/plain; charset="UTF-8" Hello Sandesh, you can use temporary objects for the multiplication. However, we want the arithmetic expression to be 'parsed' via expression templates. Please make sure that your code is tested. Best Cem Am So., 17. Feb. 2019 um 07:37 Uhr schrieb Sandesh Ghanta via ublas < [email protected]>: > Hey all, > I am Sandesh Ghanta, I am interested to contribute to UBLAS as part of > GSoC 19. I have been working on the programming competency test for about a > week now. The programming competency test requires me to implement a small > library which uses expression templates to compute algebraic expressions. I > have been able to write code which computes algebraic expressions > containing only addition and subtraction. But I am confused as to how to > write code for multiplication. > Example: D = A*B + C > Can someone guide me as to how to write code to solve such equations > without the use of temporary variables? > Links to online resources for the same is also gladly accepted. > > Yours Sincerely, > Sandesh Ghanta, > FOSS@Amrita <http://amfoss.in> > GitHub <https://github.com/sandeshghanta> | Codechef | > <http://www.codechef.com/users/sandeshghanta>Codeforces > <http://www.codeforces.com/profile/sandeshghanta> > > _______________________________________________ > ublas mailing list > [email protected] > https://lists.boost.org/mailman/listinfo.cgi/ublas > Sent to: [email protected] > --0000000000003e17ae05822a2f00 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hello Sandesh,</div><div><br></div><div>you can use t= emporary objects for the multiplication. However, we want the arithmetic ex= pression to be 'parsed' via expression templates. Please make sure = that your code is tested.<br></div><div><br></div><div>Best</div><div>Cem<b= r></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmai= l_attr">Am So., 17. Feb. 2019 um 07:37=C2=A0Uhr schrieb Sandesh Ghanta via = ublas <<a href=3D"mailto:[email protected]">[email protected]</a= >>:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0= px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir= =3D"ltr"><div>Hey all,</div><div>I am Sandesh Ghanta, I am interested to co= ntribute to UBLAS as part of GSoC 19. I have been working on the programmin= g competency test for about a week now. The programming competency test req= uires me to implement a small library which uses expression templates to co= mpute algebraic expressions. I have been able to write code which computes = algebraic expressions containing only addition and subtraction. But I am co= nfused as to how to write code for multiplication. <br></div><div>Example: = D =3D A*B + C</div><div>Can someone guide me as to how to write code to sol= ve such equations without the use of temporary variables?<br></div><div>Lin= ks to online resources for the same is also gladly accepted.<br></div><div>= <br></div><div><div><div dir=3D"ltr" class=3D"gmail-m_8860301837184086499gm= ail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"= ><div><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><div><di= v>Yours Sincerely,<br></div>Sandesh Ghanta,<br></div><a href=3D"http://amfo= ss.in" target=3D"_blank">FOSS@Amrita</a><br></div><div><a href=3D"https://g= ithub.com/sandeshghanta" target=3D"_blank">GitHub</a> | <a href=3D"http://w= ww.codechef.com/users/sandeshghanta" target=3D"_blank">Codechef | </a><span= ><a href=3D"http://www.codeforces.com/profile/sandeshghanta" target=3D"_bla= nk">Codeforces</a></span></div><div dir=3D"ltr"><div><div><br></div></div><= /div></div></div></div></div></div></div></div></div></div></div></div></di= v></div></div> _______________________________________________<br> ublas mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]= t.org</a><br> <a href=3D"https://lists.boost.org/mailman/listinfo.cgi/ublas" rel=3D"noref= errer" target=3D"_blank">https://lists.boost.org/mailman/listinfo.cgi/ublas= </a><br> Sent to: <a href=3D"mailto:[email protected]" target=3D"_blank">cem.bass= [email protected]</a><br> </blockquote></div> --0000000000003e17ae05822a2f00-- --===============5910642506249918814== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline