To Örebro University

oru.seÖrebro University Publications
Change search
Link to record
Permanent link

Direct link
Publications (7 of 7) Show all publications
Fasi, M. & Iannazzo, B. (2022). The dual inverse scaling and squaring algorithm for the matrix logarithm. IMA Journal of Numerical Analysis, 42(3), 2829-2851
Open this publication in new window or tab >>The dual inverse scaling and squaring algorithm for the matrix logarithm
2022 (English)In: IMA Journal of Numerical Analysis, ISSN 0272-4979, E-ISSN 1464-3642, Vol. 42, no 3, p. 2829-2851Article in journal (Refereed) Published
Abstract [en]

The inverse scaling and squaring algorithm computes the logarithm of a square matrix A by evaluating a rational approximant to the logarithm at the matrix B := A(2-s) for a suitable choice of s. We introduce a dual approach and approximate the logarithm of B by solving the rational equation r(X) = B, where r is a diagonal Pade approximant to the matrix exponential at 0. This equation is solved by a substitution technique in the style of those developed by Fasi & Iannazzo (2020, Substitution algorithms for rational matrix equations. Elect. Trans. Num. Anal., 53, 500-521). The new method is tailored to the special structure of the diagonal Pade approximants to the exponential and in terms of computational cost is more efficient than the state-of-the-art inverse scaling and squaring algorithm.

Place, publisher, year, edition, pages
Oxford University Press, 2022
Keywords
primary matrix function, matrix logarithm, inverse scaling and squaring algorithm, Schur form, Pade approximant
National Category
Mathematics
Identifiers
urn:nbn:se:oru:diva-99040 (URN)10.1093/imanum/drab065 (DOI)000790064800001 ()2-s2.0-85135615972 (Scopus ID)
Funder
Wenner-Gren Foundations, UPD2019-0067
Note

Funding agencies:

MathWorks

Royal Society of London European Commission

Istituto Nazionale di Alta Matematica (INdAM-GNCS Project 2019)

Available from: 2022-05-17 Created: 2022-05-17 Last updated: 2022-09-12Bibliographically approved
Fasi, M. & Mikaitis, M. (2021). Algorithms for Stochastically Rounded Elementary Arithmetic Operations in IEEE 754 Floating-Point Arithmetic. IEEE Transactions on Emerging Topics in Computing, 9(3), 1451-1466
Open this publication in new window or tab >>Algorithms for Stochastically Rounded Elementary Arithmetic Operations in IEEE 754 Floating-Point Arithmetic
2021 (English)In: IEEE Transactions on Emerging Topics in Computing, ISSN 2168-6750, Vol. 9, no 3, p. 1451-1466Article in journal (Refereed) Published
Abstract [en]

We present algorithms for performing the five elementary arithmetic operations (+, -, x, divided by, and root) in floating point arithmetic with stochastic rounding, and demonstrate the value of these algorithms by discussing various applications where stochastic rounding is beneficial. The algorithms require that the hardware be compliant with the IEEE 754 floating-point standard and that a floating-point pseudorandom number generator be available. The goal of these techniques is to emulate stochastic rounding when the underlying hardware does not support this rounding mode, as is the case for most existing CPUs and GPUs. By simulating stochastic rounding in software, one has the possibility to explore the behavior of this rounding mode and develop new algorithms even without having access to hardware implementing stochastic rounding- once such hardware becomes available, it suffices to replace the proposed algorithms by calls to the corresponding hardware routines. When stochastically rounding double precision operations, the algorithms we propose are between 7.3 and 19 times faster than the implementations that use the GNU MPFR library to simulate extended precision. We test our algorithms on various tasks, including summation algorithms and solvers for ordinary differential equations, where stochastic rounding is expected to bring advantages.

Place, publisher, year, edition, pages
IEEE, 2021
Keywords
Stochastic processes, Hardware, Standards, Tools, Software, Libraries, Monte Carlo methods, Floating-point arithmetic, error-free transformation, stochastic rounding, numerical analysis, numerical algorithm, IEEE 754
National Category
Computer Sciences
Identifiers
urn:nbn:se:oru:diva-94918 (URN)10.1109/TETC.2021.3069165 (DOI)000697823100034 ()2-s2.0-85103239723 (Scopus ID)
Funder
Wenner-Gren Foundations, UPD2019-0067European Commission
Note

Funding agencies:

Royal Society of London

Istituto Nazionale di Alta Matematica INdAM-GNCS Project 2020

UK Research & Innovation (UKRI)

Engineering & Physical Sciences Research Council (EPSRC) EP/P020720/1

Available from: 2021-10-13 Created: 2021-10-13 Last updated: 2021-10-13Bibliographically approved
Fasi, M., Feng, J. & Porzio, G. M. (2021). CORRIGENDUM TO "DETERMINANTS OF NORMALIZED BOHEMIAN UPPER HESSENBERG MATRICES" [ELECTRON. J. OF LINEAR ALGEBRA 36 (2020) 352-366]. The Electronic Journal of Linear Algebra, 37, 160-162
Open this publication in new window or tab >>CORRIGENDUM TO "DETERMINANTS OF NORMALIZED BOHEMIAN UPPER HESSENBERG MATRICES" [ELECTRON. J. OF LINEAR ALGEBRA 36 (2020) 352-366]
2021 (English)In: The Electronic Journal of Linear Algebra, ISSN 1537-9582, E-ISSN 1081-3810, Vol. 37, p. 160-162Article in journal (Refereed) Published
Abstract [en]

An amended version of Proposition 3.6 of [Fasi and Negri Porzio, Electron. J. Linear Algebra 36:352{366, 2020] is presented. The result shows that the set of possible determinants of upper Hessenberg matrices with ones on the subdiagonal and elements in the upper triangular part drawn from the set {-1, 1} is {2k vertical bar k is an element of <-2(n-2), 2(n-2)>}, instead of {2k vertical bar k is an element of <-n + 1, n - 1 >} as previously stated. This does not affect the main results of the article being corrected and shows that Conjecture 20 in the Characteristic Polynomial Database is true.

Place, publisher, year, edition, pages
International Linear Algebra Society, 2021
Keywords
Bohemian matrix, Integer matrix, Normalized upper Hessenberg matrix, Determinant
National Category
Mathematical Analysis
Identifiers
urn:nbn:se:oru:diva-90886 (URN)10.13001/ela.2021.5849 (DOI)000628679400001 ()2-s2.0-85102025869 (Scopus ID)
Funder
Wenner-Gren Foundations, UPD2019-0067
Note

Funding Agencies:

Royal Society of London European Commission

Istituto Nazionale di Alta Matematica INdAM-GNCS Project 2020 

Available from: 2021-04-06 Created: 2021-04-06 Last updated: 2021-04-06Bibliographically approved
Fasi, M. & Higham, N. J. (2021). Generating extreme-scale matrices with specified singular values or condition numbers. SIAM Journal on Scientific Computing, 43(1), A663-A684
Open this publication in new window or tab >>Generating extreme-scale matrices with specified singular values or condition numbers
2021 (English)In: SIAM Journal on Scientific Computing, ISSN 1064-8275, E-ISSN 1095-7197, Vol. 43, no 1, p. A663-A684Article in journal (Refereed) Published
Abstract [en]

A widely used form of test matrix is the randsvd matrix constructed as the product A = U Sigma V*, where U and V are random orthogonal or unitary matrices from the Haar distribution and Sigma is a diagonal matrix of singular values. Such matrices are random but have a specified singular value distribution. The cost of forming an m x n randsvd matrix is m(3) + n(3) flops, which is prohibitively expensive at extreme scale; moreover, the randsvd construction requires a significant amount of communication, making it unsuitable for distributed memory environments. By dropping the requirement that U and V be Haar distributed and that both be random, we derive new algorithms for forming A that have cost linear in the number of matrix elements and require a low amount of communication and synchronization. We specialize these algorithms to generating matrices with a specified 2-norm condition number. Numerical experiments show that the algorithms have excellent efficiency and scalability.

Place, publisher, year, edition, pages
Society for Industrial and Applied Mathematics, 2021
Keywords
test matrix, random matrix, randsvd, singular value decomposition, 2-norm condition number, Householder reflector
National Category
Computational Mathematics
Research subject
Mathematics
Identifiers
urn:nbn:se:oru:diva-88204 (URN)10.1137/20M1327938 (DOI)000623833100031 ()
Note

Funding Agencies:

UK Research & Innovation (UKRI)

Engineering & Physical Sciences Research Council (EPSRC) EP/P020720/1

Royal Society of London

European Commission

Available from: 2020-12-28 Created: 2020-12-28 Last updated: 2021-03-31Bibliographically approved
Fasi, M. & Higham, N. J. (2021). Matrices with tunable infinity-norm condition number and no need for pivoting in LU factorization. SIAM Journal on Matrix Analysis and Applications, 42(1), 417-435
Open this publication in new window or tab >>Matrices with tunable infinity-norm condition number and no need for pivoting in LU factorization
2021 (English)In: SIAM Journal on Matrix Analysis and Applications, ISSN 0895-4798, E-ISSN 1095-7162, Vol. 42, no 1, p. 417-435Article in journal (Refereed) Published
Abstract [en]

We propose a two-parameter family of nonsymmetric dense n x n matrices A(alpha, beta) for which LU factorization without pivoting is numerically stable, and we show how to choose alpha and beta to achieve any value of the infinity-norm condition number. The matrix A(alpha, beta) can be formed from a simple formula in O(n(2)) flops. The matrix is suitable for use in the HPL-AI Mixed-Precision Benchmark, which requires an extreme scale test matrix (dimension n > 10(7)) that has a controlled condition number and can be safely used in LU factorization without pivoting. It is also of interest as a general-purpose test matrix.

Place, publisher, year, edition, pages
Society for Industrial and Applied Mathematics, 2021
Keywords
test matrix, infinity-norm condition number, HPL-AI Mixed-Precision Benchmark, low-precision arithmetic, LU factorization
National Category
Computational Mathematics
Research subject
Mathematics
Identifiers
urn:nbn:se:oru:diva-88211 (URN)10.1137/20M1357238 (DOI)000637539700017 ()2-s2.0-85104245662 (Scopus ID)
Note

Funding Agencies:

UK Research & Innovation (UKRI)

Engineering & Physical Sciences Research Council (EPSRC)EP/P020720/1

Royal Society of London

European Commission

Available from: 2020-12-29 Created: 2020-12-29 Last updated: 2021-05-10Bibliographically approved
Fasi, M., Higham, N. J., Mikaitis, M. & Pranesh, S. (2021). Numerical behavior of NVIDIA tensor cores. PeerJ Computer Science, 7, 1-19, Article ID e330.
Open this publication in new window or tab >>Numerical behavior of NVIDIA tensor cores
2021 (English)In: PeerJ Computer Science, E-ISSN 2376-5992, Vol. 7, p. 1-19, article id e330Article in journal (Refereed) Published
Abstract [en]

We explore the floating-point arithmetic implemented in the NVIDIA tensor cores, which are hardware accelerators for mixed-precision matrix multiplication available on the Volta, Turing, and Ampere microarchitectures. Using Volta V100, Turing T4, and Ampere A100 graphics cards, we determine what precision is used for the intermediate results, whether subnormal numbers are supported, what rounding mode is used, in which order the operations underlying the matrix multiplication are performed, and whether partial sums are normalized. These aspects are not documented by NVIDIA, and we gain insight by running carefully designed numerical experiments on these hardware units. Knowing the answers to these questions is important if one wishes to: (1) accurately simulate NVIDIA tensor cores on conventional hardware; (2) understand the differences between results produced by code that utilizes tensor cores and code that uses only IEEE 754-compliant arithmetic operations; and (3) build custom hardware whose behavior matches that of NVIDIA tensor cores. As part of this work we provide a test suite that can be easily adapted to test newer versions of the NVIDIA tensor cores as well as similar accelerators from other vendors, as they become available. Moreover, we identify a non-monotonicity issue affecting floating point multi-operand adders if the intermediate results are not normalized after each step.

Place, publisher, year, edition, pages
PeerJ, Inc, 2021
Keywords
NVIDIA V100 GPU, NVIDIA T4 GPU, Tensor core, Dot product, Matrix multiply-accumulate, Floating-point arithmetic, Half precision, Binary16, IEEE 754 arithmetic, NVIDIA A100 GPU
National Category
Computational Mathematics
Research subject
Mathematics
Identifiers
urn:nbn:se:oru:diva-88210 (URN)10.7717/peerj-cs.330 (DOI)000620811800001 ()33816984 (PubMedID)2-s2.0-85101610379 (Scopus ID)
Note

Funding Agencies:

UK Research & Innovation (UKRI)

Engineering & Physical Sciences Research Council (EPSRC) EP/P020720/1

UK Research & Innovation (UKRI)

Engineering & Physical Sciences Research Council (EPSRC) EP/P020720/1

Royal Society of London

European Commission

Available from: 2020-12-29 Created: 2020-12-29 Last updated: 2021-04-13Bibliographically approved
Fasi, M. & Robol, L. (2021). Sampling the eigenvalues of random orthogonal and unitary matrices. Linear Algebra and its Applications, 620, 297-321
Open this publication in new window or tab >>Sampling the eigenvalues of random orthogonal and unitary matrices
2021 (English)In: Linear Algebra and its Applications, ISSN 0024-3795, E-ISSN 1873-1856, Vol. 620, p. 297-321Article in journal (Refereed) Published
Abstract [en]

We develop an efficient algorithm for sampling the eigenvalues of random matrices distributed according to the Haar measure over the orthogonal or unitary group. Our technique samples directly a factorization of the Hessenberg form of such matrices, and then computes their eigenvalues with a tailored core-chasing algorithm. This approach requires a number of floating-point operations that is quadratic in the order of the matrix being sampled, and can be adapted to other matrix groups. In particular, we explain how it can be used to sample the Haar measure over the special orthogonal and unitary groups and the conditional probability distribution obtained by requiring the determinant of the sampled matrix be a given complex number on the complex unit circle.

Place, publisher, year, edition, pages
Elsevier, 2021
Keywords
Random matrix, Unitary matrix, Orthogonal matrix, Eigenvalue sampling, Haar distribution
National Category
Computational Mathematics
Identifiers
urn:nbn:se:oru:diva-91726 (URN)10.1016/j.laa.2021.02.031 (DOI)000637751700016 ()2-s2.0-85102584583 (Scopus ID)
Funder
Wenner-Gren Foundations, UPD2019-0067
Note

Funding Agencies:

Royal Society of London European Commission

Istituto Nazionale di Alta Matematica INdAM-GNCS Project 2019  

GNCS/INdAM project "Giovani Ricercatori" 2018 

Available from: 2021-05-11 Created: 2021-05-11 Last updated: 2021-05-11Bibliographically approved
Organisations
Identifiers
ORCID iD: ORCID iD iconorcid.org/0000-0002-6015-391x

Search in DiVA

Show all publications