مرکز اطلاعات علمی Scientific Information Database (SID) - Trusted Source for Research and Academic Resources

Persian Verion

مرکز اطلاعات علمی Scientific Information Database (SID) - Trusted Source for Research and Academic Resources

video

مرکز اطلاعات علمی Scientific Information Database (SID) - Trusted Source for Research and Academic Resources

sound

مرکز اطلاعات علمی Scientific Information Database (SID) - Trusted Source for Research and Academic Resources

Persian Version

مرکز اطلاعات علمی Scientific Information Database (SID) - Trusted Source for Research and Academic Resources

View:

306
مرکز اطلاعات علمی Scientific Information Database (SID) - Trusted Source for Research and Academic Resources

Download:

0
مرکز اطلاعات علمی Scientific Information Database (SID) - Trusted Source for Research and Academic Resources

Cites:

Information Journal Paper

Title

An Efficient Method for Defining Multivariate Functions Using Expression Templates for Arrays in C++ and CUDA

Pages

  113-131

Abstract

 In this paper an efficient method for defining multi-variable functions using Expression templates for array computations in computational fluid dynamics simulations in C++ is introduced. The method is implemented using Variadic templates which is a new feature in C++. One of the advantages of the method is its easy of use for users of computational fields. The user can define and use his own function with any number of input arguments without having knowledge of templates programming concepts. The present method may replace conventional Expression templates in developing numerical libraries. For three different functions, including arithmetic operations and trigonometric functions, the efficiency of the proposed method for arrays of different sizes is compared with that of the conventional Expression templates, two different C++ syntax and Fortran language. Furthermore, the performance of the method in terms of the compilation time and executable file size is demonstrated. A similar comparison on Graphic Processing Units (GPU) using CUDA is made and the efficiency of the method is shown. The results indicate that, for any array size, the present method has a very good performance in terms of computational time, compilation time and executable file size. Finally, as an application of the proposed method, a numerical simulation is done.

Cites

  • No record.
  • References

  • No record.
  • Cite

    APA: Copy

    Mahmoodi Darian, Hossein. (2019). An Efficient Method for Defining Multivariate Functions Using Expression Templates for Arrays in C++ and CUDA. JOURNAL OF MODELING IN ENGINEERING, 16(55 ), 113-131. SID. https://sid.ir/paper/359447/en

    Vancouver: Copy

    Mahmoodi Darian Hossein. An Efficient Method for Defining Multivariate Functions Using Expression Templates for Arrays in C++ and CUDA. JOURNAL OF MODELING IN ENGINEERING[Internet]. 2019;16(55 ):113-131. Available from: https://sid.ir/paper/359447/en

    IEEE: Copy

    Hossein Mahmoodi Darian, “An Efficient Method for Defining Multivariate Functions Using Expression Templates for Arrays in C++ and CUDA,” JOURNAL OF MODELING IN ENGINEERING, vol. 16, no. 55 , pp. 113–131, 2019, [Online]. Available: https://sid.ir/paper/359447/en

    Related Journal Papers

    Related Seminar Papers

  • No record.
  • Related Plans

  • No record.
  • Recommended Workshops






    Move to top
    telegram sharing button
    whatsapp sharing button
    linkedin sharing button
    twitter sharing button
    email sharing button
    email sharing button
    email sharing button
    sharethis sharing button