IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0234293.html
   My bibliography  Save this article

An FPGA-based analysis of trade-offs in the presence of ill-conditioning and different precision levels in computations

Author

Listed:
  • Ignacio Algredo-Badillo
  • José Julio Conde-Mones
  • Carlos Arturo Hernández-Gracidas
  • María Monserrat Morín-Castillo
  • José Jacobo Oliveros-Oliveros
  • Claudia Feregrino-Uribe

Abstract

Several areas, such as physical and health sciences, require the use of matrices as fundamental tools for solving various problems. Matrices are used in real-life contexts, such as control, automation, and optimization, wherein results are expected to improve with increase of computational precision. However, special attention should be paid to ill-conditioned matrices, which can produce unstable systems; an inadequate handling of precision might worsen results since the solution found for data with errors might be too far from the one for data without errors besides increasing other costs in hardware resources and critical paths. In this paper, we make a wake-up call, using 2 × 2 matrices to show how ill-conditioning and precision can affect system design (resources, cost, etc.). We first demonstrate some examples of real-life problems where ill-conditioning is present in matrices obtained from the discretization of the operational equations (ill-posed in the sense of Hadamard) that model these problems. If these matrices are not handled appropriately (i.e., if ill-conditioning is not considered), large errors can result in the computed solutions to the systems of equations in the presence of errors. Furthermore, we illustrate the generated effect in the calculation of the inverse of an ill-conditioned matrix when its elements are approximated by truncation. We present two case studies to illustrate the effects on calculation errors caused by increasing or reducing precision to s digits. To illustrate the costs, we implemented the adjoint matrix inversion algorithm on different field-programmable gate arrays (FPGAs), namely, Spartan-7, Artix-7, Kintex-7, and Virtex-7, using the full-unrolling hardware technique. The implemented architecture is useful for analyzing trade-offs when precision is increased; this also helps analyze performance, efficiency, and energy consumption. By means of a detailed description of the trade-offs among these metrics, concerning precision and ill-conditioning, we conclude that the need for resources seems to grow not linearly when precision is increased. We also conclude that, if error is to be reduced below a certain threshold, it is necessary to determine an optimal precision point. Otherwise, the system becomes more sensitive to measurement errors and a better alternative would be to choose precision carefully, and/or to apply regularization or preconditioning methods, which would also reduce the resources required.

Suggested Citation

  • Ignacio Algredo-Badillo & José Julio Conde-Mones & Carlos Arturo Hernández-Gracidas & María Monserrat Morín-Castillo & José Jacobo Oliveros-Oliveros & Claudia Feregrino-Uribe, 2020. "An FPGA-based analysis of trade-offs in the presence of ill-conditioning and different precision levels in computations," PLOS ONE, Public Library of Science, vol. 15(6), pages 1-26, June.
  • Handle: RePEc:plo:pone00:0234293
    DOI: 10.1371/journal.pone.0234293
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0234293
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0234293&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0234293?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Hafsa Athar Jafree & Muhammad Imtiaz & Syed Inayatullah & Fozia Hanif Khan & Tajuddin Nizami, 2014. "A Space Efficient Flexible Pivot Selection Approach to Evaluate Determinant and Inverse of a Matrix," PLOS ONE, Public Library of Science, vol. 9(2), pages 1-7, February.
    2. Joakim Munkhammar & Lars Mattsson & Jesper Rydén, 2017. "Polynomial probability distribution estimation using the method of moments," PLOS ONE, Public Library of Science, vol. 12(4), pages 1-14, April.
    3. Muhammad Tayyib & Muhammad Amir & Umer Javed & M Waseem Akram & Mussyab Yousufi & Ijaz M Qureshi & Suheel Abdullah & Hayat Ullah, 2020. "Accelerated sparsity based reconstruction of compressively sensed multichannel EEG signals," PLOS ONE, Public Library of Science, vol. 15(1), pages 1-15, January.
    4. Liubov Flores & Vicent Vidal & Gumersindo Verdú, 2015. "System Matrix Analysis for Computed Tomography Imaging," PLOS ONE, Public Library of Science, vol. 10(11), pages 1-12, November.
    5. Dominique Van de Sompel & Laura S Sasportas & Jesse V Jokerst & Sanjiv S Gambhir, 2016. "Comparison of Deconvolution Filters for Photoacoustic Tomography," PLOS ONE, Public Library of Science, vol. 11(3), pages 1-28, March.
    6. Noriyuki Kushida, 2015. "Condition Number Estimation of Preconditioned Matrices," PLOS ONE, Public Library of Science, vol. 10(3), pages 1-16, March.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Munir Ali Elfarra & Mustafa Kaya, 2018. "Comparison of Optimum Spline-Based Probability Density Functions to Parametric Distributions for the Wind Speed Data in Terms of Annual Energy Production," Energies, MDPI, vol. 11(11), pages 1-15, November.
    2. Jian Fu & Zhenzhong Liu & Jingzheng Wang, 2016. "Multi-Mounted X-Ray Computed Tomography," PLOS ONE, Public Library of Science, vol. 11(4), pages 1-15, April.
    3. Vojtěch Turek, 2019. "Improving Performance of Simplified Computational Fluid Dynamics Models via Symmetric Successive Overrelaxation," Energies, MDPI, vol. 12(12), pages 1-16, June.
    4. Yue Yu & Pavel Loskot, 2023. "Polynomial Distributions and Transformations," Mathematics, MDPI, vol. 11(4), pages 1-28, February.
    5. Jenny Farmer & Donald Jacobs, 2018. "High throughput nonparametric probability density estimation," PLOS ONE, Public Library of Science, vol. 13(5), pages 1-29, May.
    6. Gong, Yu & Liu, Pan & Ming, Bo & Feng, Maoyuan & Huang, Kangdi & Wang, Yibo, 2022. "Identifying the functional form of operating rules for hydro–photovoltaic hybrid power systems," Energy, Elsevier, vol. 243(C).
    7. Jacobi, Arie & Tzur, Joseph, 2021. "Wealth Distribution across Countries: Quality of Weibull, Dagum and Burr XII in Estimating Wealth over Time," Finance Research Letters, Elsevier, vol. 43(C).
    8. Michel Denuit & Christian Y. Robert, 2022. "Polynomial Series Expansions and Moment Approximations for Conditional Mean Risk Sharing of Insurance Losses," Methodology and Computing in Applied Probability, Springer, vol. 24(2), pages 693-711, June.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pone00:0234293. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.