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/16 Message-ID: <9BBB0C9AF506D311A68E00902745A537C41148@fsxqpz04.usafa.af.mil>#1/1 X-Deja-AN: 561534415 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 945355927 9684 137.194.161.2 (16 Dec 1999 14:52:07 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: 16 Dec 1999 14:52:07 GMT Newsgroups: comp.lang.ada Date: 1999-12-16T14:52:07+00:00 List-Id: Suppose you have such a machine (wow! talk about complex instruction sets!). I then grant that any good Fortran compiler would use it. However, it also follows that any Ada compiler could create a small function to use it (e.g. using Machine code insertions), and then pragma Inline that function. --Martin -----Original Message----- From: mario@klebsch.de [mailto:mario@klebsch.de] Sent: Wednesday, December 15, 1999 11:01 AM To: comp.lang.ada@ada.eu.org Subject: Re: Matrix Multiplication "Carlisle, Martin" writes: >The idea that matrix multiplication would always be inlined seems absurd to >me. The simple implementation has O(n^3) running time. What about compiling for a CPU, that does have an instruction for matrix multiplication? It seems absurd to me, not to use that instruction, if it is available. 73, Mario -- Mario Klebsch mario@klebsch.de _______________________________________________ comp.lang.ada mailing list comp.lang.ada@ada.eu.org http://ada.eu.org/cgi-bin/mailman/listinfo/comp.lang.ada