1 ------------------------------------------------------------------------------
3 -- GNAT RUN-TIME COMPONENTS --
5 -- SYSTEM.GENERIC_REAL_BLAS --
9 -- Copyright (C) 2009, Free Software Foundation, Inc. --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
30 ------------------------------------------------------------------------------
32 -- Package comment required ???
35 type Real
is digits <>;
36 type Real_Vector
is array (Integer range <>) of Real
;
37 type Real_Matrix
is array (Integer range <>, Integer range <>) of Real
;
38 package System
.Generic_Real_BLAS
is
41 -- Although BLAS support is only available for IEEE single and double
42 -- compatible floating-point types, this unit will accept any type
43 -- and apply conversions as necessary, with possible loss of
44 -- precision and range.
46 No_Trans
: aliased constant Character := 'N';
47 Trans
: aliased constant Character := 'T';
48 Conj_Trans
: aliased constant Character := 'C';
50 -- BLAS Level 1 Subprograms and Types
57 Inc_Y
: Integer := 1) return Real
;
62 Inc_X
: Integer := 1) return Real
;
65 (Trans
: access constant Character;
72 Inc_X
: Integer := 1; -- must be non-zero
74 Y
: in out Real_Vector
;
75 Inc_Y
: Integer := 1); -- must be non-zero
79 -- gemm s, d, c, z Matrix-matrix product of general matrices
82 (Trans_A
: access constant Character;
83 Trans_B
: access constant Character;
93 C
: in out Real_Matrix
;
96 end System
.Generic_Real_BLAS
;