1 | # $Id: Portfile,v 1.8 2004/11/29 14:17:29 michaelm Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name mtl |
---|
6 | version 2.1.2-21 |
---|
7 | categories math |
---|
8 | description Matrix Template Library |
---|
9 | maintainers sal@email.arc.nasa.gov |
---|
10 | long_description A high-performance generic component library that |
---|
11 | provides comprehensive linear algebra functionality for a wide \ |
---|
12 | variety of matrix formats. As with the Standard Template Library \ |
---|
13 | (STL), MTL uses a five-fold approach, consisting of generic \ |
---|
14 | functions, containers, iterators, adaptors, and function objects, \ |
---|
15 | all developed specifically for high performance numerical linear \ |
---|
16 | algebra. Within this framework, MTL provides generic algorithms \ |
---|
17 | corresponding to the mathematical operations that define linear \ |
---|
18 | algebra. Similarly, the containers, adaptors, and iterators are \ |
---|
19 | used to represent and to manipulate concrete linear algebra \ |
---|
20 | objects such as matrices and vectors. To many scientific computing \ |
---|
21 | users, however, the advantages of an elegant programming interface \ |
---|
22 | are secondary to issues of performance. Generic programming is a \ |
---|
23 | powerful tool in this regard as well - performance tuning can \ |
---|
24 | itself be described in a generic fashion. These performance tuning \ |
---|
25 | abstractions are realized in a generic low-level library - the \ |
---|
26 | Basic Linear Algebra Instruction Set (BLAIS). Experimental results \ |
---|
27 | show that MTL with the BLAIS achieves performance that is as good \ |
---|
28 | as, or better than, vendor-tuned libraries. Thus, MTL demonstrates \ |
---|
29 | that the proper abstractions can be used to achieve high levels of \ |
---|
30 | performance, contrary to conventional wisdom. In addition, MTL \ |
---|
31 | requires orders of magnitude fewer lines of code for its \ |
---|
32 | implementation, with the concomitant savings in development and \ |
---|
33 | maintenance effort. |
---|
34 | homepage http://www.osl.iu.edu/research/mtl |
---|
35 | master_sites http://www.osl.iu.edu/download/research/mtl |
---|
36 | distfiles ${name}-${version}.tar.gz |
---|
37 | checksums sha1 4be1d02ae39a20a4e28931f619e4f77bdebfa784 |
---|
38 | configure.args -host powerpc-apple-netbsd |
---|
39 | configure.pre_args --prefix=${destroot}${prefix} |
---|
40 | |
---|
41 | variant blais { |
---|
42 | configure.args-append --with-blais |
---|
43 | } |
---|
44 | |
---|
45 | variant lapack { |
---|
46 | configure.args-append --with-lapack=libs |
---|
47 | } |
---|
48 | |
---|
49 | variant matlab { |
---|
50 | configure.args-append --with-matlab=${prefix}/include |
---|
51 | } |
---|