Design and Implementation of Matrix Library Based on Generative Programming
- Author
- TianHai
- Advisor
- SunXiaoLi
- School
- Dalian University of Technology
- Major
- Computer Software and Theory
- Classification
- TP311.11 Programming method
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 36
- Citations
- 0
Abstract
In this paper, the idea of generative programming to solve design intent loss encountered in object-oriented design , performance loss , and high maintenance costs . The use of new ideas to achieve a matrix calculation library to solve the traditional object-oriented matrix library performance bottlenecks encountered in the field of high performance computing . The generative programming using analytical methods in the field , before the generation of the final software product , its field of optimization , optimized to produce components or software product suitable for our needs . This article analysis matrix technology , the feature model of the field , and then use the C implementation of the various components of the matrix computing , re-use template meta- programming techniques to achieve the generator , it can automatically assembled components , target matrix type . The performance of this matrix library can be compared with the performance of the the handwritten C matrix library , and it uses less code coverage matrix type , and to maintain the performance capabilities of object-oriented matrix library . Successful experiments show that the generator matrix library implements the separation of the problem space and solution space , two spaces can change ; library can be described at a higher level system specification , the client does not have to specify all the details of the target matrix type , only be given declarative description for the target matrix ; the library redundant fewer parameters difference allows to avoid both contain mostly the same , only a few details of the type of code ; has good performance , the extensive use of inline static bound , with hand - written c code is quite ; good scalability, more independent , and the components internal changes will not affect other components between the components , it is possible to be easily extended . The generative programming ideological show the grand blueprint for the next generation of software development technology , it represents a major step toward the holy grail of all software developers , software development industrial production mode guiding ideology . Firstly, gave a brief description of the core technology used in the entire library . Then , starting from the matrix library , the structural design of the library . The subsequent sections of the paper describes in detail the implementation process and technical details of the various parts of the library , the last paper to summarize the functionality of the library , and pointed out the need to further improve and extend the work .
Table of contents
Abstract 4-5
Abstract 5-8
1 Introduction 8-15
1.1 research background and domestic developments 9-12
1.2 object-oriented development problems and main work 12-15
2 library developer related technologies 15-27
2.1 domain engineering 15-17
2.2 Feature Modeling 17-19
2.3 generative programming 19-22
2.4 generator 22-24
2.5 GenVoca 24-25
2.6 Generic Programming 25-27
3 matrix calculation domain analysis and outline design 27-37
3.1 Project Overview 27
3.2 domain analysis 27-31
3.2.1 Domain Definition 27-29
3.2.2 domain modeling 29
3.2.3 sphere design and implementation 29-31
3.3 Matrix type of produce 31-37
4 major components of the detailed design and implementation 37-52
4.1 container assembly design and implementation 37-38
4.2 format and bounds checking component design and implementation 38-39
4.2.1 format component implementation 38
4.2.2 bounds checking component implementation 38-39
4.3 Matrix components to achieve high-level 39
4.4 Matrix Configuration DSL implementation 39-42
4.5 Matrix module assembly for the realization 42-45
4.5.1 describe the ICCL described by the DSL into 42-43
4.5.2 generated as described by the ICCL target matrix type 43-45
4.6 matrix expression to achieve 45-52
4.6.1 Solving matrix expression 45-46
4.6.2 components using object-oriented modeling expression evaluates 46
4.6.3 Expressions achieve before 46-51
4.6.4 Performance expression templates and constraints 51-52
5 Experimental Summary 52-55
Conclusion 55-58
References 58-60
Appendix A partial function code 60-62
A.1 Metafunctions MATRIX MULTIPLY GET ELEMENT 60
A.2 rectangular matrix multiplication expressions take elements function RectMultiplyGetElement 60-61
A.3 Metafunctions MATRIX ASSIGNMENT 61
A.4 binary expression templates BinaryExpression 61-62
papers published during the master's degree case 62-63
Thanks 63-64
Related dissertations
- Soil Carbon/Nitrogen Dynamics, Carbon Fractions and Nutrient Distribution under Long Term Tillage and Residue Management Systems in North China Plain
- Development of Laser Coal Stocktaking System
- Migration and Transformation Law of Nitrate in Unsaturated Zone and Saturated Zone
- Key Technologies for Strained Si/Ge MOSFETs with Source/Drain Stressors
- Proapoptotic Effects of TLR9Agnoists on Human Hepatoma Cells and Its Cross-talk with TLR3Agnois
- The Correlation Analysis of Clinical Significance of C/EBPα Expression and Microvessel Density in Non-small-cell Lung Carcinoma Specimens
- Study on the Mechanism of TLR3 in HBV Intrauterine Infection of Babies Whose Mother are HBsAg Positive
- Research on the Quality of Life and TCM Syndrome of Chronic Hepatitis C
- The Reponse of Plant Communities and Its Ecological Stoichiometry of Alpine Meadow to Freeze-thaw Degradation in Qinghai-Tibetan Plateau
- Synthesis, Characterization and Photocatalystic Performance of SiC and Its Nano-composites
- Research on the Regulation of Rab7Gene Silencing on the TLR4/TLR3Signaling Pathways in Macrophages
- Study of the Preparation of BN-C-silicone Oil Composite Colloid and Its Lubricating Properties at High Temperature
- STUDIES ON THE CONSTITUENTS AND BIOLOGICAL ACTIVITIES OF IXERIS SONCHIFOLIA
- STUDIES ON THE METABOLISM OF AND THE SIGNAL TRANSDUCTION PATHWAYS OF APOPTOSIS INDUCED BY THE CONSTITUENTS OF DIOSCOREA PAHTHAICA PRAIN
- Balb / C mice and HBV transgenic mice of different genetic vaccine immune response experimental study
- TCM comprehensive program for early rehabilitation and outcome of patients with ischemic stroke clinical research
- Research on the Common Framework for Execution-data Processing of Federated Simulation
- A Generative Domain Engineering Method Based on Agent Technology
- Study on Strengthening and to Ughening As-Cast AM60 Magnesium Alloy
- Research and Realization on M-SPRT in Pipeline Leak Detection and Location