From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,99a6311c4195e21b X-Google-Attributes: gid103376,public From: "Carlisle, Martin" Subject: RE: Matrix Multiplication Date: 1999/12/15 Message-ID: <9BBB0C9AF506D311A68E00902745A537C236B1@fsxqpz04.usafa.af.mil>#1/1 X-Deja-AN: 560978473 To: comp.lang.ada@ada.eu.org Content-Type: text/plain; charset="iso-8859-1" X-Complaints-To: usenet@enst.fr X-Trace: menuisier.enst.fr 945268450 32257 137.194.161.2 (15 Dec 1999 14:34:09 GMT) Organization: ENST, France X-BeenThere: comp.lang.ada@ada.eu.org Mime-Version: 1.0 Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Date: 15 Dec 1999 14:34:09 GMT Newsgroups: comp.lang.ada Date: 1999-12-15T14:34:09+00:00 List-Id: The idea that matrix multiplication would always be inlined seems absurd to me. The simple implementation has O(n^3) running time. Any enhancement requires a fair amount of code, which I surely wouldn't want replicated every time I did a matrix multiply. The overhead of a function call, in this case, would be so small as to be negligible. --Martin ---------------------------------------------- Martin C. Carlisle, PhD Assistant Professor of Computer Science US Air Force Academy DISCLAIMER: This message represents the author's opinions, and not necessarily those of the US Air Force Academy or the US Air Force. -----Original Message----- From: Richard Maine [mailto:maine@qnet.com] Sent: Tuesday, December 14, 1999 8:25 PM To: comp.lang.ada@ada.eu.org Subject: Re: Matrix Multiplication "E. Robert Tisdale" writes: > That's even easier. The Ada version could call the f90 intrinsic too. > All you would need to do is link the f90 library which contains matmul. I will not get into the language comparison or benchmarking aspects of this thread. I just note that "linking the f90 library that contains matmul" isn't necessarily that straightforward. Matmul is an intrinsic. It is not at all given that there even *IS* a library that contains it; a compiler is quite free to always do it inline. And even if much of the work is in a library routine, the interface to them isn't necessarily known outside of the compiler. Intrinsics are basically part of the compiler internals. They *MAY* be implemented with callable library routines, but there is no guarantee of that. And it certainly isn't a portable way to call them. -- Richard Maine maine@qnet.com _______________________________________________ comp.lang.ada mailing list comp.lang.ada@ada.eu.org http://ada.eu.org/cgi-bin/mailman/listinfo/comp.lang.ada