Advanpix vs. VPA vs. Maple – Dense Solvers and Factorizations

by Pavel Holoborodko on November 3, 2013

We continue to compare our toolbox with Maple and Symbolic Math Toolbox (VPA). This time we focus on main operations in dense linear algebra – solvers and factorizations.

Every case/routine is tested on a random 100 x 100 matrix. Average timing over ten tests is used.

Comparison of linear system solver (“\”) in quadruple precision

Matrix Type Timing (sec)Speed-up (times)
VPA MapleAdvanpixOver VPAOver Maple
General Real 0.99 0.580.0242.2224.67
Symmetric Positive Definite 0.99 0.630.0177.1049.31
General Complex 3.13 2.430.0838.3429.74
Hermitian Positive Definite 3.72 2.560.0570.8548.82

In average Advanpix solver is faster by 60 times over VPA and 40 times over Maple.

Comparison of matrix factorization in quadruple precision

Factorization Timing (sec)Speed-up (times)
VPA MapleAdvanpixOver VPAOver Maple
A is a general real matrix:
[L,U] = lu(A) 1.67 0.610.0278.26 28.29
[Q,R] = qr(A) 3.46 2.600.0844.44 33.46
[U,S,V] = svd(A) 30.8520.990.30101.6669.17
S = svd(A) 15.882.510.07223.5435.35
[V,D] = eig(A) 57.2529.540.7279.20 40.86
lambda = eig(A) 21.2126.900.3462.31 79.01
A is a general complex matrix:
[L,U] = lu(A) 2.742.560.0741.6338.89
[Q,R] = qr(A) 10.9911.390.2543.3844.99
[U,S,V] = svd(A) 65.5657.530.8180.9671.04
S = svd(A) 25.2810.220.2698.2439.71
[V,D] = eig(A) 89.30129.542.8531.3445.46
lambda = eig(A) 33.14113.991.2925.6788.32

As for factorizations, Advanpix toolbox outperforms VPA by 75 times and Maple by 50 times in average. Worth to note the massive speed gain of singular value decomposition (SVD) in particular.

Our test environment and scripts:

  • Core i7-3960X Extreme Edition, 3900 MHz, 64GB, Windows 7 64-bit.
  • MATLAB R2013a, Multiprecision Computing Toolbox 3.6.1.
  • Maple 17 64-bit.
  • Maple test script: maple_test.mw.
  • Matlab test script for Advanpix vs. VPA: advanpix-vs-vpa.zip.

Sincere gratitude to André Van Moer for ongoing support, fruitful discussions and for running the tests on his powerful computer.

{ 0 comments… add one now }

Leave a Comment

Previous post:

Next post: