• Aucun résultat trouvé

Faster Inversion and Other Black Box Matrix Computations Using Efficient Block Projections

N/A
N/A
Protected

Academic year: 2022

Partager "Faster Inversion and Other Black Box Matrix Computations Using Efficient Block Projections"

Copied!
8
0
0

Texte intégral

(1)

Faster Inversion and Other Black Box Matrix Computations Using Efficient Block Projections

Wayne Eberly1, Mark Giesbrecht2, Pascal Giorgi2,4, Arne Storjohann2, Gilles Villard3

(1) Department of Computer Science, University of Calgary, Calgary, Alberta, Canada

[email protected]

(2) David R. Cheriton School of Computer Science, University of Waterloo, Waterloo, Ontario, Canada

[email protected], [email protected], [email protected]

(3) CNRS, LIP, ´Ecole Normale Sup´erieure de Lyon, Lyon, France

[email protected]

(4) IUT — Universit´e de Perpignan, Perpignan, France

[email protected]

ABSTRACT

Efficient block projections of non-singular matrices have re- cently been used by the authors in [10] to obtain an efficient algorithm to find rational solutions for sparse systems of lin- ear equations. In particular a bound ofO˜(n2.5) machine op- erations is presented for this computation assuming that the input matrix can be multiplied by a vector with constant- sized entries using O˜(n) machine operations. Somewhat more general bounds for black-box matrix computations are also derived. Unfortunately, the correctness of this algo- rithm depends on the existence of efficient block projections of non-singular matrices, and this was only conjectured.

In this paper we establish the correctness of the algorithm from [10] by proving the existence of efficient block pro- jections for arbitrary non-singular matrices over sufficiently large fields. We further demonstrate the usefulness of these projections by incorporating them into existing black-box matrix algorithms to derive improved bounds for the cost of several matrix problems. We consider, in particular, ma- trices that can be multiplied by a vector usingO˜(n) field operations: We show how to compute the inverse of any such non-singular matrix over any field using an expected number of O˜(n2.27) operations in that field. A basis for the null space of such a matrix, and a certification of its

This material is based on work supported in part by the French National Research Agency (ANR Gecko, Villard), and by the Natural Sciences and Engineering Research Council (NSERC) of Canada (Eberly, Giesbrecht, Storjo- hann).

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. To copy otherwise, to republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee.

ISSAC'07,July 29–August 1, 2007, Waterloo, Ontario, Canada.

Copyright 2007 ACM 978-1-59593-743-8/07/0007 ...$5.00.

rank, are obtained at the same cost. An application of this technique to Kaltofen and Villard’s Baby-Steps/Giant-Steps algorithms for the determinant and Smith Form of an inte- ger matrix is also sketched, yielding algorithms requiring O˜(n2.66) machine operations. More general bounds involv- ing the number of black-box matrix operations to be used are also obtained.

The derived algorithms are all probabilistic of the Las Ve- gas type. They are assumed to be able to generate random elements — bits or field elements — at unit cost, and always output the correct answer in the expected time given.

Categories and Subject Descriptors

I.1.2 [Symbolic and Algebraic Manipulation]: Algo- rithms—Algebraic algorithms, analysis of algorithms

General Terms

Algorithms

Keywords

Sparse integer matrix, structured integer matrix, linear sys- tem solving, black box linear algebra

1. INTRODUCTION

In our paper [10] we presented an algorithm which pur- portedly solved a sparse system of rational equations consid- erably more efficiently than standard linear equations solv- ing. Unfortunately, its effectiveness in all cases was conjec- tural, even as its complexity and actual performance were very appealing. This effectiveness relied on a conjecture re- garding the existence of so-called efficient block projections.

Given a matrixAFn×nover any fieldF, these projections should be block vectors u Fn×s (where s is a blocking factor dividingn, son=ms) such that we can computeuv orvtuquickly for anyvFn×s, and such that the sequence of vectorsu,Au, . . . ,Am1uhas rankn. In this paper, we

(2)

prove the existence of a class of such efficient block projec- tions for non-singularn×n matrices over sufficiently large fields; we require that the size of the fieldFexceedn(n+ 1).

This can be used to establish a variety of results concern- ing matrices A Zn×n with efficient matrix-vector prod- ucts — in particular, such that a matrix-vector product Axmodpcan be computed for a given integer vectorxand a small (word-sized) primepusingO˜(n) bit operations. Such matrices include all “sparse” matrices havingO(n) nonzero entries, assuming these are appropriately represented. They also include a variety of “structured” matrices, having con- stant “displacement rank” (for one definition of displace- ment rank or another) studied in the recent literature.

In particular, our existence result implies that ifAZn×n is non-singular and has an efficient matrix-vector product then the Las Vegas algorithm for system solving given in [10] can be used to solve a systemAx=bfor a given integer vectorbusing an expected number of matrix-vector products modulo a word-sized prime that isO˜(n1.5log(kAk+kbk)) together with an expected number of additional bit opera- tions that isO˜(n2.5log(kAk+kbk)). If A has an efficient matrix-vector product then the total expected number of bit operations used by this algorithm is less than that used by any previously known algorithm, at least when “standard”

(i.e., cubic) matrix arithmetic is used.

Consider, for example, the case when the cost of a matrix- vector product by A modulo a word-sized prime is O˜(n) operations, and the entries inAare constant size. The cost of our algorithm will beO˜(n2.5) bit operations. This im- proves upon the p-adic lifting method of Dixon [6], which requiresO˜(n3) bit operations for sparse or dense matrices.

This theoretical efficiency was reflected in practice in [10] at least for large matrices.

We present several other rather surprising applications of this technique. Each incorporates the technique into an ex- isting algorithm in order to reduce the asymptotic complex- ity for the matrix problem to be solved. In particular, given a matrixAFn×nover an arbitrary fieldF, we are able to compute the complete inverse ofAwithO˜(n31/(ω1)) op- erations inFplusO˜(n21/(ω1)) matrix-vector products by A. Hereωis such that we can multiply twon×nmatrices withO(nω) operations inF. Standard matrix multiplication givesω= 3, while the best known matrix multiplication of Coppersmith and Winograd [5] hasω= 2.376. If again we can computev7→AvwithO˜(n) operations inF, this implies an algorithm to compute the inverse withO˜(n31/(ω1)) op- erations inF. This is always in O˜(nω), and in particular equals O˜(n2.27) operations in F for the best known ω of [5]. Other relatively straightforward applications of these techniques yield algorithms for the full nullspace and (certi- fied) rank with this same cost. Finally, we sketch how these methods can be employed in the algorithms of Kaltofen and Villard [18] and Giesbrecht [13] to computing the determi- nant and Smith form of sparse matrices more efficiently.

There has certainly been much important work done on finding exact solutions to sparse rational systems prior to [10]. Dixon’sp-adic lifting algorithm [6] performs extremely well in practice for dense and sparse linear systems, and is implemented efficiently in LinBox [7] and Magma (see [10]

for a comparison). Kaltofen and Saunders [17] are the first to propose to use Krylov-type algorithms for these prob- lems. Krylov-type methods are used to find Smith forms of sparse matrices and to solve Diophantine systems in paral-

lel in [12, 13], and this is further developed in [8, 18]. See the references in these papers for a more complete history.

For sparse systems over a field, the seminal work is that of Wiedemann [22] who shows how to solve sparse n×n systems over a field with O(n) matrix-vector products and O(n2) other operations. This research is further developed in [4, 16, 17] and many other works. The bit complexity of similar operations for various families of structured matrices is examined by Emiris and Pan [11].

2. EFFICIENT BLOCK PROJECTIONS

For now we will consider an arbitrary invertible matrix AFn×nover a fieldF, andsan integer, the blocking factor, that divides nexactly. Letm=n/s. For a so-called block projection uFn×s and 1km, we denote byKk(A, u) the block Krylov matrix [u, Au, . . . , Ak1u] Fn×ks. We wish to show that Km(A, u) Fn×n is non-singular for a particularly simple and sparseu, assuming some properties ofA.

Our factorization uses the special projection (which we will refer to as anefficient block projection)

u= 2 64

Is

... Is

3

75Fn×s, (2.1)

which is comprised of m copies ofIs and thus has exactly n non-zero entries. We suggest a similar projection in [10]

without proof of its reliability (i.e., that the corresponding block Krylov matrix is non-singular). We establish here that it does yield a block Krylov matrix of full rank, and hence can be used for an efficient inverse of a sparseA.

LetD= diag(δ1, . . . , δ1, δ2, . . . , δ2, . . . , δm, . . . , δm) be an n×n diagonal matrix whose entries consist of m distinct indeterminatesδi, eachδioccurringstimes.

Theorem 2.1. If the leadingks×ksminor ofAis non- zero, for1km, thenKm(DAD, u)F1, . . . , δm]n×n is non-singular.

Proof. Let B = DAD. For 1 k m, defineBk as the specialization ofBobtained by settingδk+1, δk+2, . . . , δm

to zero. Thus Bk is the matrix constructed by setting to zero the lastnksrows and columns ofB. Similarly, for 1kmwe defineukFn×sto be the matrix constructed fromuby setting to zero the lastnksrows. In particular we haveBm=Bandum=u. This specialization will allow us to argue incrementally about how the rank is increased askincreases.

We proceed by induction onkand show that

rankKk(Bk, uk) =ks, (2.2) for 1km. For the base casek= 1 we haveK1(B1, u1) = u1 and thus rankK1(B1, u1) = ranku1=s.

Now, assume that (2.2) holds for somekwith 1k < m.

By the definition of Bk and uk, only the first ks rows of Bk and uk will be involved in the left hand side of (2.2).

Similarly, only the firstks columns ofBk will be involved.

Since by assumption onBthe leadingks×ksminor is non- zero, we have rankBkKk(Bk, uk) =ks, which is equivalent to rankKk(Bk,Bkuk) = ks. By the fact that the first ks rows ofuk+1uk are zero, we haveBk(uk+1uk) = 0, or equivalentlyBkuk+1=Bkuk, and hence

rankKk(Bk,Bkuk+1) =ks. (2.3)

(3)

The matrix in (2.3) can be written as Kk(Bk,Bkuk+1) =

» Mk

0

Fn×ks,

whereMk Fks×ks is non-singular. Introducing the block uk+1we obtain the matrix

[uk+1,Kk(Bk,Bkuk+1)] = 2

4 Mk

Is 0

0 0

3

5. (2.4) whose rank is (k+ 1)s. Noticing that

»

uk+1,Kk(Bk,Bkuk+1)

=Kk+1(Bk, uk+1), we are led to

rankKk+1(Bk, uk+1) = (k+ 1)s.

Finally, using the fact thatBk is the specialization ofBk+1

obtained by settingδk+1 to zero, we obtain rankKk+1(Bk+1, uk+1) = (k+ 1)s,

which is (2.2) fork+ 1 and thus establishes the theorem by induction.

If the leading ks×ks minor of A is non-zero, then the leading ks×ks minor of AT is non-zero as well, for any integerk. This gives us the following corollary.

Corollary 2.2. If the leadingks×ksminor ofAis non- zero for 1 k m, and B = DAD, then Km(BT, u) is non-singular.

Suppose now thatAFn×nis an arbitrary non-singular matrix and the size of F exceeds n(n+ 1). It follows by Theorem 2 of Kaltofen and Saunders [17] that there exists a lower triangular Toeplitz matrixLFn×nand an upper triangular Toeplitz matrixU Fn×n such that each of the leading minors ofAb=U ALis non-zero. LetB=DAbD; the product of the determinants of the matricesKm(B, u) and Km(BT, u) (mentioned in the above theorem and corollary) is a polynomial with total degree less than 2n(m1) <

n(n+ 1) (ifm 6= 1). In this case it follows that there is also a non-singular diagonal matrix D Fn×n such that Km(B, u) andKm(BT, u) are non-singular, for

B=DADb =DU ALD.

Now letR=LD2U Fn×n,ubFs×nandbvFn×s such that

b

uT = (LT)1D1u and vb=LDu.

Then

Km(RA,bv) =LDKm(B, u) and

LTDKm((RA)T,ubT) =Km(BT, u),

so thatKm(RA,bv) andKm((RA)T,ubT) are each non-singular as well. BecauseD is diagonal andU and Lare triangular Toeplitz matrices, it is now easily established that (R,u,bv)b is anefficient block projectionfor the given matrixA, where such projections are as defined in [10].

This proves Conjecture 2.1 of [10] for the case that the size ofFexceedsn(n+ 1):

Corollary 2.3. For any non-singular A Fn×n and s|n (over a field of size greater thann(n+ 1)) there exists an efficient block projection(R, u, v)Fn×n×Fs×n×Fn×s.

3. FACTORIZATION OF THE MATRIX INVERSE

The existence of the efficient block projection established in the previous section allows us to define a useful factor- ization of the inverse of a matrix. This was used to obtain faster heuristics for solving integer systems in [10]. The basis is the following factorization of the matrix inverse.

LetB=DAD, whereDis ann×ndiagonal matrix whose diagonal entries consist of mdistinct indeterminates, each occurringstimes contiguously, as previously defined. Define K(r)u =Km(B, u) withuas in (2.1) andK(`)u =Km(BT, u)T, where (r) and (`) refer to projection on the right and left respectively. For any 0 k m1 and any two indices l andr such than l+r=kwe have uTBl· Bru=uTBku.

Hence the matrixHu=K(`)u · B · K(r)u is block-Hankel with blocks of dimensions×s:

Hu= 2 66 66 4

uTBu uTB2u . . . uTBmu uTB2u uTB3u . .. ...

... . ..

uTB2m2u uTBmu . . . uTB2m2u uTB2m1u

3 77 77 5

Notice that Hu = Ku(`) · B · K(r)u = K(`)u · DAD · K(r)u . Theorem 2.1 and Corollary 2.2 imply that if all leadingks× ksminors ofAare non-singular thenKu(`)andKu(r)are each non-singular as well. This establishes the following.

Theorem 3.1. IfAFn×n is such that all leadingks× ks minors are non-singular, D is a diagonal matrix of in- determinates, and B = DAD, then B1 and A1 may be factored as

B1=K(r)u Hu1K(`)u ,

A1=DK(r)u Hu1K(`)u D, (3.1) where Ku(`) and Ku(r) are as defined above, and Hu Fn×n is block-Hankel (and invertible) withs×sblocks, as above.

Note that for any specialization of the indeterminates inDto field elements inFsuch that detHu6= 0 we obtain a similar formula to (3.1) completely overF. A similar factorization in the non-blocked case is used in [9, (4.5)] for fast parallel matrix inversion.

4. BLACK-BOX MATRIX INVERSION OVER A FIELD

Suppose again thatA Fn×n is invertible, and that for anyvFn×1the productsAvandATvcan be computed in φ(n) operations inF(whereφ(n)n). Following Kaltofen, we call such matrix-vector and vector-matrix productsblack- box evaluations ofA. In this section we will show how to computeA1withO˜(n21/(ω1)) black box evaluations and O˜(n31/(ω1)) additional operations inF. Note that when φ(n) =O˜(n) the exponent innof this cost is smaller than ω, and isO˜(n2.273) with the currently best-known matrix multiplication.

(4)

Again assume thatn =ms, wheres is ablocking factor andmthe number of blocks. Assume for the moment that all principalks×ksminors ofAare non-zero, 1km.

Letδ1, δ2, . . . , δmbe the indeterminates that form the di- agonal entries of D and let B = DAD. By Theorem 2.1 and Corollary 2.2, the matrices Km(B, u) and Km(BT, u) are each invertible. If m 2 then the product of the determinants of these matrices is a non-zero polynomial

F1, . . . , δm] with total degree at most 2n(m1).

Suppose thatFhas at least 2n(m1) elements. Then ∆ cannot be zero at all points in (F\ {0})n. Letd1, d2, . . . , dm

be non-zero elements ofFsuch that ∆(d1, d2, . . . , dm)6= 0, letD= diag(d1, . . . , d1, . . . , dm, . . . , dm), and letB=DAD.

ThenKu(r)=Km(B, u)Fn×n andKu(`)=Km(BT, u)T Fn×n are each invertible because ∆(d1, d2, . . . , dm) 6= 0,B is invertible becauseAis andd1, d2, . . . , dmare all non-zero, and thus Hu = Ku(`)BKu(r) Fn×n is invertible as well.

Correspondingly, (3.1) suggests

B1=Ku(r)Hu1Ku(`), and A1=DKu(r)Hu1Ku(`)D for computing the matrix inverse.

1. Computation ofuT, uTB, . . . ,uTB2m1 andKu(`). We can compute this sequence, henceKu(r), withm1 applications ofBto vectors usingO(nφ(n)) operations inF.

2. Computation ofHu.

Due to the special form (2.1) ofu, one may then com- pute wu for any w Fs×n with O(sn) operations.

Hence we can now computeuTBiufor 0i2m1 withO(n2) operations inF.

3. Computation ofHu1.

The off-diagonal inverse representation of Hu1 as in (A.4) in the Appendix can be found withO˜(sωm) op- erations by Proposition A.1.

4. Computation ofHu1Ku(`).

From Corollary A.2 in the Appendix, we can compute the product Hu1M for any matrix M Fn×n with O˜(sωm2) operations.

5. Computation ofKu(r)·(Hu1Ku(`)).

We can computeKu(r)M = [u, Bu, . . . , Bm1u]M, for any M Fn×n by splitting M into m blocks of s consecutive rowsMi, for 0im1:

KuM=

mX1 i=0

Bi(uMi)

=uM0+B(uM1+B(uM2+· · ·

· · ·+B(uMm2+BuMm1)· · ·).

(4.1)

Because of the special form (2.1) of u, each product uMiFn×nrequiresO(n2) operations, and hence all such products involved in (4.1) can be computed in O(mn2) operations. Because applying B to ann×n matrix costsnφ(n) operations,Ku(r)M is computed in O(mnφ(n) +mn2) operations using the iterative form of (4.1)

In total, the above process requires O(mn) applications ofAto a vector (the same as forB), andO(sωm2+mn2)

additional operations. Ifφ(n) =O˜(n), the overall number of field operations is minimized with the blocking factors= n1/(ω1).

Theorem 4.1. Let A Fn×n, where n = ms and s = n1/(ω1), be such that all leadingks×ksminors are non- singular for 1k m. LetB =DAD, forD = diag(d1, . . .,d1, . . . , dm, . . . , dm), such thatd1, . . . , dmare non-zero and each of the matricesKm(DAD, u)andKm((DAD)T, u) is invertible. Then the inverse matrixA1 can be computed using O(n21/(ω1)) black box operations and an additional O˜(n31/(ω1))operations inF.

The above discussion makes a number of assumptions.

First, it assumes that the blocking factorsexactly divides n. This is easily accommodated by simply extending nto the nearest multiple of s, placingA in the top left corner of the augmented matrix, and adding diagonal ones in the bottom right corner.

Theorem 4.1 also makes the assumptions that all the lead- ing ks×ksminors of A are non-singular and that the de- terminants of Km(DAD, u) andKm((DAD)T, u) are each non-zero. Although we know of no way to ensure this de- terministically in the times given, standard techniques can be used to obtain these properties probabilistically if F is sufficiently large.

Suppose, in particular, thatn16 and that #F>2(m+ 1)ndlog2ne. Fix a setS of at least 2(m+ 1)ndlog2nenon- zero elements of F. We can ensure that the leading ks× ks minors ofA are non-zero by pre- and post-multiplying by butterfly network preconditionersX andY respectively, with parameters chosen uniformly and randomly fromS. If X andY are constructed using the generic exchange matrix of [4,§6.2], then it will use at mostndlog2ne/2 random el- ements from S, and from [4, Theorem 6.3] it follows that all leading ks×ks minors of Ae= XAY will be non-zero simultaneously with probability at least 3/4. This proba- bility of success can be made arbitrarily close to 1 with a choice from a largerS. We note thatA1 =YAe1X. Thus, once we have computedAe1 we can computeA1 with an additionalO˜(n2) operations inF, using the fact that multi- plication of an arbitraryn×nmatrix by ann×nbutterfly preconditioner can be done withO˜(n2) operations.

Once again let ∆ be the products of the determinants of the matricesKm(DAD, u) and Km((DAD)T, u), so that

∆ is non-zero with total degree at most 2n(m1). If we choose randomly selected values fromS forδ1, . . . , δm, be- cause #S ≥ 2(m+ 1)ndlog2ne > 4 deg ∆ the probability that ∆ is zero at this point is at most 1/4 by the Schwartz- Zippel Lemma [21, 23].

In summary, for randomly selected butterfly precondition- ersX, Y as above, and independently and randomly chosen values d1, d2, . . . , dm the probability that Ae = XAY has non-singular leading ks×ks minors for 1 k m and

∆(d1, d2, . . . , dm) is non-zero is at least 9/16 >1/2 when random choices are made uniformly and independently from a finite subsetSofF\{0}with size at least 2(m+1)ndlog2ne. When #F 2(m+ 1)ndlog2ne, we can easily construct a field extension E of Fthat has size greater than 2(m+ 1)ndlog2neand perform the computation in that extension.

Because this extension will have degreeO(log#Fn) overF, it will add only a logarithmic factor to the final cost. While we certainly do not claim that this is not of practical concern, it does not affect the asymptotic complexity.

(5)

This algorithm is Las Vegas (or trivially modified to be so): For if eitherKm(DAD, u) orKm((DAD)T, u) is singular then so isHu and this is detected at step 3. On the other hand, if Km(DAD, u) and Km((DAD)T, u) are both non- singular then the algorithm’s output is correct.

Theorem 4.2. LetAFn×n be non-singular. Then the inverse matrixA1 can be computed by a Las Vegas algo- rithm whose expected cost isO˜(n21/(ω1))black box oper- ations andO˜(n31/(ω1)) additional operations inF.

Table 4.1 (below) states the expected costs to compute the inverse using various values ofωwhenφ(n) =O˜(n).

ω Black-box Blocking Inversion applications factor cost

3 (Standard) 1.5 n1/2 O˜(n2.5)

2.807 (Strassen) 1.446 n0.553 O˜(n2.446) 2.3755 (Cop/Win) 1.273 n0.728 O˜(n2.273) Table 4.1: Exponents of matrix inversion with a ma- trix×vector costφ(n) =O˜(n).

Remark 4.3. The structure (2.1) of the projectionuplays a central role in computing the product of the block Krylov matrix by an×nmatrix. For a general projectionuFn×s, how to do better than a general matrix multiplication, i.e., how to take advantage of the Krylov structure for computing KuM, appears to be unknown.

Multiplying a Black-Box Matrix Inverse By Any Matrix

The above method can also be used to computeA1M for anymatrixM Fn×nwith the same cost as in Theorem 4.2.

Consider the new step 1.5:

1.5. Computation ofKu(`)·M.

Split M into m blocks of s columns, so that M = [M0, . . . , Mm1] whereMkFn×s. Now consider com- putingKu(`)·Mkfor somek∈ {0, . . . , m1}. This can be accomplished by computingBiMkfor 0im1 in sequence, and then multiplying on the left byuT to computeuTBiMk for each iterate.

The cost for computing Ku(`)Mk for a singlekby the above process is ns multiplication ofA to vectors and O(ns) additional operations in F. The cost of doing this for all k such that 0k m1 is thus m(ns) < nm multiplications of A to vectors and O(n2) additional operations. Since applying A (and henceB) to ann×nmatrix is assumed to costnφ(n) operations inF,Ku(`)·M is computed inO(mnφ(n) + mn2) operations inFby the process described here.

Note that this is the same as the cost of Step 5, so the overall cost estimate is not affected. Because Step 4 does not rely on any special form forKu(`), we can replace it with a computation ofHu1·(Ku(`)M) with the same cost. The output is again easily certified withnadditional black-box evaluations. We obtain the following corollary.

Corollary 4.4. Let A Fn×n be non-singular and let M Fn×n. We can computeA1M with a Las Vegas algo- rithm whose expected cost isO˜(n21/(ω1)) black box oper- ations andO˜(n31/(ω1))additional operations inF.

The estimates in Table 4.1 apply to this computation as well.

5. APPLICATIONS TO BLACK-BOX MATRICES OVER A FIELD

The algorithms of the previous section have applications in some important computations with black-box matrices over an arbitrary field F. In particular, we consider the problems of computing the nullspace and rank of a black- box matrix. Each of these algorithms is probabilistic of the Las Vegas type; the output is certified to be correct.

Kaltofen and Saunders [17] present algorithms for com- puting the rank of a matrix and for randomly sampling the nullspace, building upon the work of Wiedemann [22]. In particular, they show for random lower upper and lower tri- angular Toeplitz matrices U, L Fn×n, and random diag- onal D, that all leading k×k minors of Ae= U ALD are non-singular for 1kr= rankA, and that iffAeF[x]

is the minimal polynomial ofA, then it has degreee r+ 1 ifA is singular (and degreenifAis non-singular). This is proved to be true for any inputAFn×n, and for random choice of U,Land D, with high probability. The cost of computing fAe(and hence rankA) is shown to beO(n) applications of the black-box forA and O(n2) additional operations inF. However, no certificate is provided that the rank is correct within this cost (and we do not know of one or provide one here). Kaltofen and Saunders [17] also show how to gener- ate a vector uniformly and randomly from the nullspace of A with this cost (and, of course, this is certifiable with a single evaluation of the black box forA). We also note that the algorithms of Wiedemann and Kaltofen and Saunders require only a linear amount of extra space, which will not be the case for our algorithms.

We first employ the random preconditioning of [17] and let Ae=U ALDas above. We will thus assume in what follows thatAhas all leadingi×iminors non-singular for1ir.

Although an unlucky choice may make this statement false, this case will be identified in our method. Also assume that we have computed the rank r of A with high probability.

Again, this will be certified in what follows.

1. Inverting the leading minor.

LetA0 be the leading r×r minor ofA and partition Aas

A=

A0 A1

A2 A3

« .

Using the algorithm of the previous section, compute A01. If this fails, and the leading r×r minor is singular, then either the randomized conditioning or the rank estimate has failed and we either report this failure or try again with a different randomized pre- conditioning. If we can compute A01, then the rank ofAis at least the estimatedr.

2. Applying the inverted leading minor.

Compute A01A1 Fr×(nr) using the algorithm of the previous section (this could in fact be merged into the first step).

Références

Documents relatifs

Comparison of the classical matrix assembly code in Matlab/Octave with FreeFEM++, for the mass (top left), weighted mass (top right) and stiffness (bottom) matrices.. We

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des

braid group, isotopy problem, word problem, greedy normal form, word redressing, handle reduction, Dynnikov’s

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des

When only some animals have genomic information, genomic predictions can be obtained by an extension known as single-step GBLUP, where the covariance matrix of breeding values

In Section 2, we explain a possi- ble algorithmic variant for matrix inversion based on tile algorithms; we explain how we articulated it with our dynamic scheduler to take advantage

In continuation of our previous work for retrieval of sparse LP residuals using a weighted l 2 -norm minimization [16], in this paper we introduced the use of our MMF based

Veuillez trouver dans ce travail l’expression de mon respect le plus profond et mon affection la plus sincère… A ma tante Naima tonton Hassan, Manal, Abir et Yassine Malgré