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

Request the full text

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

  1. Soil Carbon/Nitrogen Dynamics, Carbon Fractions and Nutrient Distribution under Long Term Tillage and Residue Management Systems in North China Plain
  2. Development of Laser Coal Stocktaking System
  3. Migration and Transformation Law of Nitrate in Unsaturated Zone and Saturated Zone
    DingQingHua ·Hefei University of Technology ·2013 ·Master's thesis
  4. Key Technologies for Strained Si/Ge MOSFETs with Source/Drain Stressors
  5. Proapoptotic Effects of TLR9Agnoists on Human Hepatoma Cells and Its Cross-talk with TLR3Agnois
    ZhangYuYi ·Shandong University ·2012 ·Master's thesis
  6. The Correlation Analysis of Clinical Significance of C/EBPα Expression and Microvessel Density in Non-small-cell Lung Carcinoma Specimens
    LiuYingHui ·Anhui Medical University, ·2013 ·Master's thesis
  7. Study on the Mechanism of TLR3 in HBV Intrauterine Infection of Babies Whose Mother are HBsAg Positive
    LiuMingHui ·Shanxi Medical ·2012 ·Master's thesis
  8. Research on the Quality of Life and TCM Syndrome of Chronic Hepatitis C
  9. The Reponse of Plant Communities and Its Ecological Stoichiometry of Alpine Meadow to Freeze-thaw Degradation in Qinghai-Tibetan Plateau
    ZhouJie ·Lanzhou University ·2013 ·Master's thesis
  10. Synthesis, Characterization and Photocatalystic Performance of SiC and Its Nano-composites
    GanXiaoRong ·Dalian University of Technology ·2013 ·Master's thesis
  11. Research on the Regulation of Rab7Gene Silencing on the TLR4/TLR3Signaling Pathways in Macrophages
  12. Study of the Preparation of BN-C-silicone Oil Composite Colloid and Its Lubricating Properties at High Temperature
    GuoHong ·Wuhan University of Technology ·2008 ·Doctoral dissertation
  13. STUDIES ON THE CONSTITUENTS AND BIOLOGICAL ACTIVITIES OF IXERIS SONCHIFOLIA
    FengXiZhi ·Shenyang Pharmaceutical University ·2001 ·Doctoral dissertation
  14. STUDIES ON THE METABOLISM OF AND THE SIGNAL TRANSDUCTION PATHWAYS OF APOPTOSIS INDUCED BY THE CONSTITUENTS OF DIOSCOREA PAHTHAICA PRAIN
    DongMei ·Shenyang Pharmaceutical University ·2001 ·Doctoral dissertation
  15. Balb / C mice and HBV transgenic mice of different genetic vaccine immune response experimental study
    DengTao ·Postgraduate Medical School ·2001 ·Doctoral dissertation
  16. TCM comprehensive program for early rehabilitation and outcome of patients with ischemic stroke clinical research
  17. Research on the Common Framework for Execution-data Processing of Federated Simulation
  18. A Generative Domain Engineering Method Based on Agent Technology
    LiangHaiHua ·Zhejiang University ·2008 ·Doctoral dissertation
  19. Study on Strengthening and to Ughening As-Cast AM60 Magnesium Alloy
    ZhangJunYuan ·Taiyuan University of Technology ·2008 ·Master's thesis
  20. Research and Realization on M-SPRT in Pipeline Leak Detection and Location
    LiYang ·Lanzhou University of Technology ·2008 ·Master's thesis