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.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: how to copy complete column (or row) of matrix to another? Date: Wed, 06 Sep 2017 08:17:26 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader.eternal-september.org; posting-host="5369a750ad65e7e1028744020de4d939"; logging-data="8159"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18O0BiEAfD/bBfasb0kr7YSmoZcyRW/zog=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (darwin) Cancel-Lock: sha1:FX3Yj5B0BfmSRuHfAqPjFwummxQ= sha1:6/t83Ij+E0/rilq+98k+t2ULAq0= Xref: news.eternal-september.org comp.lang.ada:47943 Date: 2017-09-06T08:17:26+01:00 List-Id: "Nasser M. Abbasi" writes: > Too bad, because Ada is good language in terms of its > strong typing and other features, which I think will > make numerical software more robust, but it has little > support for many common operations build-in for working > with matrices and vectors as Fortran and Matlab already > has. For example, function Column (V : Complex_Matrix; C : Integer) return Complex_Vector is begin return Result : Complex_Vector (V'Range (1)) do for J in V'Range (1) loop Result (J) := V (J, C); end loop; end return; end Column;