Next Article in Journal
A Characterization of Normal Injective and Normal Projective Hypermodules
Previous Article in Journal
Generalization of Fermatean Fuzzy Set and Implementation of Fermatean Fuzzy PROMETHEE II Method for Decision Making via PROMETHEE GAIA
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Inverses and Determinants of Arrowhead and Diagonal-Plus-Rank-One Matrices over Associative Algebras

by
Nevena Jakovčević Stor
and
Ivan Slapničar
*
Faculty of Electrical Engineering, Mechanical Engineering and Naval Architecture, University of Split, Ruđera Boškovića 32, 21000 Split, Croatia
*
Author to whom correspondence should be addressed.
Axioms 2024, 13(6), 409; https://doi.org/10.3390/axioms13060409
Submission received: 3 May 2024 / Revised: 12 June 2024 / Accepted: 15 June 2024 / Published: 18 June 2024

Abstract

:
This article considers arrowhead and diagonal-plus-rank-one matrices in F n × n where F { R , C , H } and where H is a noncommutative algebra of quaternions. We provide unified formulas for fast determinants and inverses for considered matrices. The formulas are unified in the sense that the same formula holds in both commutative and noncommutative associative fields or algebras, with noncommutative examples being matrices of quaternions and block matrices. Each formula requires O ( n ) arithmetic operations, as does multiplication of such matrices with a vector. The formulas are efficiently implemented using the polymorphism or multiple-dispatch feature of the Julia programming language.

1. Introduction and Definitions

Arrowhead matrices and diagonal-plus-rank-one (DPR1) matrices arise in many applications. Computations with such matrices are parts of many important linear algebra algorithm; for details, see [1,2,3]. Here, we prove unified formulas for matrix-vector multiplications, determinants, and inverses for both types of matrices having elements in commutative and noncommutative associative fields or algebras. Our results complement and extend existing results in the literature. Each formula requires O ( n ) arithmetic operations. Although the formulas are similar to established and widely recognized results, their application and the derivation of proofs for block matrices and matrices of quaternions is a novelty. The formulas are efficiently implemented using the polymorphism or multiple-dispatch feature of the Julia programming language. To the best of our knowledge, this is the first successful attempt to use the same code in various commutative and noncommutative settings.
All matrices are in F n × n , where F { R , C , H } and where H is a noncommutative algebra of quaternions.
The rest of this paper is organized as follows. In this section, we state basic definitions and formulas. In Section 2, we present fast formulas for inverses of arrowhead and DPR1 matrices and explain how to prove and apply the formulas to block matrices. In Section 3, we provide fast formulas for determinants of arrowhead and DPR1 matrices. In particular, in Section 3.1 we state and prove formulas for real and complex matrices; in Section 3.2, we explain how to apply formulas to block matrices; and in Section 3.3, we define the Study determinant for matrices of quaternions and show how it can be computed in two ways, namely, direct formulas and using homomorphism to complex matrices. The application of our results is illustrated by examples in Section 4. Finally, a discussion and conclusions are provided in Section 5.
We first state some basic definitions and formulas.

1.1. Quaternions

Quaternions are a noncommutative associative number system that extends complex numbers, introduced by Hamilton [4,5]. For basic quaternions i , j , and k , the quaternions have the form
q = a + b i + c j + d k , a , b , c , d , R .
The multiplication table of basic quaternions is as follows.
× i j k i 1 k j j k 1 i k j i 1
Conjugation is provided by
q ¯ = a b i c j d k ,
Then,
q ¯ q = q q ¯ = | q | 2 = a 2 + b 2 + c 2 + d 2 .
Let f ( x ) be a complex analytic function. The value f ( q ) , where q H , is computed by evaluating the extension of f to the quaternions at q (see [6]). All of the above is implemented in the Julia (v1.10) [7] package quaternions.jl (v0.7.6) [8].
Quaternions are homomorphic to C 2 × 2
q a + b i c + d i c + d i a b i C ( q ) ,
with eigenvalues a ± i b 2 + c 2 + d 2 .

1.2. Arrowhead and DPR1 Matrices

Let ★ denote the transpose of a real matrix, the conjugate transpose (adjoint) of a complex or quaternion matrix, and the conjugate of a scalar.
The arrowhead matrix (Arrow) is a matrix of the form
A = D u v α Arrow ( D , u , v , α ) ,
where D F ( n 1 ) × ( n 1 ) is a diagonal matrix with diagonal elements d i D i i , u , v F n 1 , and α F , or any symmetric permutation of such matrix.
The diagonal-plus-rank-one matrix (DPR1) is a matrix of the form
A = Δ + x ρ y DPR1 ( Δ , x , y , ρ ) ,
where Δ F n × n is a diagonal matrix with diagonal elements δ i = Δ i i , x , y F n , and ρ F .

1.3. Matrix-Vector Multiplication

The obvious formulas for the multiplication of a vector by an arrowhead or a DPR1 matrix require O ( n ) floating point operations.
Let A = Arrow ( D , u , v , α ) be an arrowhead matrix with the tip at position A i i = α , and let z be a vector. Then, w = A z , where
w j = d j z j + u j z i , j = 1 , 2 , , i 1 w i = v 1 : i 1 z 1 : i 1 + α z i + v i : n 1 z i + 1 : n w j = u j 1 z i + d j 1 z j , j = i + 1 , i + 2 , , n .
Further, let A = DPR1 ( Δ , x , y , ρ ) be a DPR1 matrix and let β = ρ ( y z ) ρ ( y · z ) . Then, w = A z , where
w i = δ i z i + x i β , i = 1 , 2 , , n .
If elements of the matrices are themselves matrices in F k × k , the elements of the vector z satisfy z i F k × k , i = 1 , , n . Formulas (2) and (3) hold directly and yield a block vector w.
The determinants and the inverses of arrowhead and DPR1 matrices are computed using O ( n ) operations, just as the matrix-vector products above; this is unlike general matrices, where these functions require O ( n 3 ) operations (see Section 2 and Section 3 for details). This fact can be used in deriving fast algorithms for eigenvalue decomposition of such matrices [9]. The basic idea in deriving formulas in the noncommutative setting is that the operations within a particular formula should be executed in the specified order.

2. Inverses

Lemma 1.
Let A = Arrow ( D , u , v , α ) be a nonsingular arrowhead matrix with the tip at position A i i = α , and let P be the permutation matrix of the permutation p = ( 1 , 2 , , i 1 , n , i , i + 1 , , n 1 ) . If all d j 0 , then the inverse of A is a DPR1 matrix
A 1 = DPR1 ( Δ , x , y , ρ ) = Δ + x ρ y ,
where
Δ = P D 1 0 0 0 P T , x = P D 1 u 1 , y = P D v 1 , ρ = ( α v D 1 u ) 1 .
If d j = 0 , then the inverse of A is an arrowhead matrix with the tip of the arrow at position ( j , j ) and zero at position A i i (i.e., the tip and the zero on the shaft change places). In particular, let P ^ be the permutation matrix of the permutation p ^ = ( 1 , 2 , , j 1 , n , j , j + 1 , , n 1 ) . Partition D, u, and v as follows:
D = D 1 0 0 0 0 0 0 0 D 2 , u = u 1 u j u 2 , v = v 1 v j v 2 .
Then,
A 1 = P D ^ u ^ v ^ α ^ P T ,
where
D ^ = D 1 1 0 0 0 D 2 1 0 0 0 0 , u ^ = D 1 1 u 1 D 2 1 u 2 1 u j 1 , v ^ = D 1 v 1 D 2 v 2 1 v j 1 , α ^ = v j α + v 1 D 1 1 u 1 + v 2 D 2 1 u 2 u j 1 .
Proof. 
The Formula (4) follows by multiplication:
A 1 · A = P D 1 0 0 0 P T + P D 1 u 1 ( α v D 1 u ) 1 v D 1 1 P T P D u v α P T = P D 1 0 0 0 + D 1 u 1 ( α v D 1 u ) 1 v D 1 1 D u v α P T = P I n 1 D 1 u 0 0 + D 1 u 1 ( α v D 1 u ) 1 v v v D 1 u α P T = P I n 1 D 1 u 0 0 + D 1 u 1 0 1 P T = P I n 1 D 1 u 0 0 + 0 D 1 u 0 1 P T = P I n 1 0 0 1 P T = I n
Formula (5) is similar to the formula from Section 2 of [3]. The proof follows by multiplication, and is similar to the above proof of Equation (4). □
Lemma 2.
Let A = DPR1 ( Δ , x , y , ρ ) be a non-singular DPR1 matrix. If all δ j 0 , then he inverse of A is a DPR1 matrix
A 1 = DPR1 ( Δ ^ , x ^ , y ^ , ρ ^ ) = Δ ^ + x ^ ρ ^ y ^ ,
where
Δ ^ = Δ 1 , x ^ = Δ 1 x , y ^ = Δ y , ρ ^ = ρ ( 1 + y Δ 1 x ρ ) 1 .
If δ j = 0 , then the inverse of A is an arrowhead matrix with the tip of the arrow at position ( j , j ) . In particular, let P be the permutation matrix of the permutation p = ( 1 , 2 , , j 1 , n , j , j + 1 , , n 1 ) . Partition Δ, x, and y as follows:
Δ = Δ 1 0 0 0 0 0 0 0 Δ 2 , x = x 1 x j x 2 , y = y 1 y j y 2 .
Then,
A 1 = P D u v T α P T ,
where
D = Δ 1 1 0 0 Δ 2 1 , u = Δ 1 1 x 1 Δ 2 1 x 2 x j 1 , v = Δ 1 y 1 Δ 2 y 2 y j 1 , α = y j ρ 1 + y 1 Δ 1 1 x 1 + y 2 Δ 2 1 x 2 x j 1 .
Proof. 
Formula (6) follows from Fact 2.16.3 of [10]. The proof is by direct multiplication, and we present it below for the sake of completeness.
A 1 · A = Δ 1 + Δ 1 x ( ρ ) ( 1 + y Δ 1 x ρ ) 1 y ^ Δ 1 ( Δ + x ρ y ) = I + Δ 1 x ρ y + Δ 1 x ( ρ ) ( 1 + y Δ 1 x ρ ) 1 y ^ + Δ 1 x ( ρ ) ( 1 + y Δ 1 x ρ ) 1 y ^ Δ 1 x ρ y = I + Δ 1 x ρ 1 ( 1 + y Δ 1 x ρ ) 1 ( 1 + y Δ 1 x ρ ) 1 y ^ Δ 1 x ρ y = I + Δ 1 x ρ 1 ( 1 + y Δ 1 x ρ ) 1 1 + y Δ 1 x ρ y = I
Formula (7) is similar to the formula from Section 2 of [11]. The proof follows by multiplication, and is similar to the above proof of Equation (6). □
Remark 1.
For matrices of quaternions, due to their non-commutativity, the operations must be executed in the exact order specified.
Remark 2.
If elements of the matrices are themselves matrices in F k × k , then Formulas (4)–(7) return the corresponding block matrices, provided that:
  • all inverses within the formulas are well defined
  • unities in Equations (4) and (5) are replaced by k × k identity matrices
  • all operations are executed exactly in the specified order
  • the adjoint of a block-vector is the transpose of the vector of individual adjoints; that is, if y i F k × k , then
    y 1 y 2 y n = y 1 y 2 y n .
With the above conditions fulfilled, the proofs of Lemmas 1 and 2 hold for block matrices as well. A block arrowhead or DPR1 matrix may be non-singular even if some of the inverses within the formulas do not exist. In such cases, the respective inverses do not have the structure required by Lemmas 1 and 2; thus, Formulas (4)–(7) cannot be applied.

3. Determinants

Determinants are computed using two basic facts: the determinant of the triangular matrix is a product of diagonal elements, and the determinant of the product is the product of determinants.

3.1. Real and Complex Matrices

First, we have the following Lemmas.
Lemma 3.
Let A = Arrow ( D , u , v , α ) be a real or complex arrowhead matrix. If all d i 0 , then the determinant of A is equal to
det ( A ) = ( i d i ) ( α v D 1 u ) .
If d j = 0 , then
det ( A ) = i = 1 j 1 d i · v j · i = j + 1 n 1 d i · u j .
Proof. 
The proof is modeled after Proposition 2.8.3, Fact 2.14.2, and Fact 2.16.2 from [10]. Formula (8) follows from the factorization
D u v α = D 0 0 1 I 0 v 1 I D 1 u 0 α v D 1 u .
Formula (9) is proved as follows. Let P be the permutation matrix that swaps rows j and n; then,
P A = P D 1 0 0 u 1 0 0 0 u j 0 0 D 2 u 2 v 1 v j v 2 α = D 1 0 0 u 1 v 1 v j v 2 α 0 0 D 2 u 2 0 0 0 u j = I 0 0 0 v 1 D 1 1 1 0 0 0 0 I 0 0 0 0 1 D 1 0 0 u 1 0 v j v 2 α v 1 * D 1 1 u 1 0 0 D 2 u 2 0 0 0 u j ,
where I denotes the identity matrix of the appropriate dimension. Therefore,
det ( A ) = det ( P T ) · i = 1 j 1 d i · v j · i = j + 1 n 1 d i · u j ,
as desired. □
Lemma 4.
Let A = DPR1 ( Δ , x , y , ρ ) be a real or complex DPR1 matrix. If all δ i 0 , then the determinant of A is equal to
det ( A ) = ( i δ i ) ( 1 + y Δ 1 x ρ ) .
If δ j = 0 , then
det ( A ) = ( i = 1 j 1 δ i ) y j ( i = j + 1 n δ i ) x j ρ .
Proof. 
The proof is modeled after Fact 2.16.3 and Fact 2.16.4 from [10]. Formula (13) follows from the factorizations
Δ + x ρ y = Δ ( I + Δ 1 x ρ y )
and
I 0 y 1 I + Δ 1 x ρ y Δ 1 x ρ 0 1 I 0 y 1 = I Δ 1 x ρ 0 1 + y Δ 1 x ρ .
Formula (14) is proved as follows. The factorization (Equation (1.1) from [12]) implies that
Δ x ρ y 1 I 0 y 1 = Δ + x ρ y x ρ 0 1 .
Therefore,
det ( Δ + x ρ y ) = det Δ x ρ y 1 = det Δ 1 0 0 x 1 ρ 0 0 0 x j ρ 0 0 Δ 2 x 2 ρ y 1 y j y 2 1 ,
and the result follows from Equation (9). □

3.2. Block Matrices

In the case of block matrices, Lemmas 3 and 4 are applied as follows. Let A = Arrow ( D , u , v , α ) be a block matrix with d i , u i , v i , α F k × k , where F { R , C } . If all d i are nonsingular, then the right-hand side of Equation (8) is an element of F k × k . Because the determinant of the product is the product of determinants, we have
det ( A ) = det ( i d i ) ( α v D 1 u ) .
The proof follows from (10), with the unities replaced by a k × k identity matrix I k × k .
If d j = 0 k × k , then
det A = ( 1 ) k det i = 1 j 1 d i · v j · i = j + 1 n 1 d i · u j .
The proof follows by replacing the unities in (11) with I k × k , setting P in (12) to the permutation matrix (which swaps block-row j with block-row n), and using the fact that det ( P ) = ( 1 ) k .
Let A = DPR1 ( Δ , x , y , ρ ) be a block matrix with δ i , x i , y i , ρ F k × k , where F { R , C } . If all δ i are non-singular, then
det ( A ) = det ( i δ i ) ( I k × k + y Δ 1 x ρ ) .
If δ j = 0 k × k , then
det A = det ( i = 1 j 1 δ i ) y j ( i = j + 1 n δ i ) x j ρ .
The proofs are similar to the proofs of Equations (13) and (14), respectively, with the unities replaced by I k × k .

3.3. Matrices of Quaternions

If F = H , then the standard determinant is not well defined due to noncommutativity. Instead, the determinant of the matrix of quaternions is defined using a determinant of its corresponding homomorphic complex matrix; see [13] (Section 3) and [14]. Such a determinant is called the Study determinant, and is denoted by Sdet ( A ) . More precisely, using (1) element-wise, we can define
C ( A ) = [ C ( A i j ) ]
as the complex matrix homomorphic to A. Then,
Sdet ( A ) = det ( C ( A ) ) .
The Study determinant is real and non-negative; see [13] (Theorem 5) and [14]. Note that C ( A ) is a block-matrix with 2 × 2 blocks.
If A is an arrow or a DPR1 matrix, then Sdet ( A ) can be computed using the formulas from Section 3.2 for complex block matrices. Alternatively, as the product of determinants is the determinant of the product, and for any (matrices of) quaternions B and C it holds that C ( B C ) = C ( B ) C ( C ) , we can also use the formulas from Lemmas 3 and 4 directly, then compute the Study determinant of the final result. The same arguments show that both approaches are valid for block matrices of quaternions as well.
Remark 3.
Because Formula (9) involves only multiplications, it can be expressed more cohesively for real and complex matrices as
det ( A ) = v j * u j i j i = 1 n 1 d i .
In the non-commutative setting of block matrices, using the facts that the determinant of the product is the product of determinants and vice versa, Formula (17) can also be expressed as
det A = ( 1 ) k det v j · u j · i j i = 1 n 1 d i .
The determinants of the matrices of quaternions and block matrices of quaternions are computed using representations as complex block matrices. Therefore, the same argument applies here, and the two above formulas can be used in this case as well. The same arguments apply to Formulas (14) and (18) for DPR1 matrices, yielding more cohesive versions:
det ( A ) = y j x j ρ i j i = 1 n δ i
and
det A = det y j · x j · ρ · i j i = 1 n δ i ,
respectively. However, the orders presented in Formulas (9), (17), (14), and (18) are more natural, as they follow from the proofs and basic premises.

4. Examples

In this section, we illustrate our results with two examples. The first example deals with arrowhead block matrices and the second with DPR1 matrices of quaternions.
Example 1.
Let
A = 3 5 6 6 0 0 0 0 3 1 3 3 0 0 0 0 2 5 1 2 1 5 4 1 0 3 5 2 2 1 0 3 4 0 6 1 ,
that is, A = Arrow ( D , u , v , α ) , where (with O 2 denoting the 2 × 2 zero matrix)
D = d 1 O 2 O 2 d 2 , d 1 = 3 5 6 6 , d 2 = 2 5 1 2 , u = u 1 u 2 , u 1 = 3 1 3 3 , u 2 = 1 5 4 1 , v = v 1 v 2 , v 1 = 0 5 3 2 , v 2 = 2 0 1 3 , α = 4 0 6 1 .
Using Formula (4) from Lemma 1 and Remark 2 (note that all matrix entries are properly rounded), we have
A 1 = 4.8049 3.4634 2.3512 1.5659 2.122 3.5122 0.9805 1.678 0.3659 1.0732 0.1415 0.4683 2.9415 2.239 4.3707 3.1528 1.3366 2.0537 1.8683 3.3268 0.1902 0.922 0.2049 1.161 2.1415 1.5057 2.7659 1.9561 0.9366 1.4537 1.3463 2.2146 0.2098 0.522 0.239 0.6878 = DPR1 ( Δ , x , y , ρ ) ,
where
Δ = δ 1 δ 2 δ 3 , δ 1 = 0.5 0.4167 0.5 0.25 , δ 2 = 2 5 1 2 , δ 3 = 0 0 0 0 , x = x 1 x 2 x 3 , x 1 = 0.25 1.75 0.75 1.25 , x 2 = 18 15 7 7 , x 3 = 1 0 0 1 , y = y 1 y 2 y 3 , y 1 = 1.5 3.5 0.75 2.5833 , y 2 = 3 3 8 6 , y 3 = 1 0 0 1 , ρ = 0.2098 0.522 0.239 0.6878 .
Further, using (16) and (22), we have
det ( A ) = det d 1 · d 2 · ( α v 1 T · d 1 1 u 1 v 2 T · d 2 1 u 2 ) = det 26 27 9 33 = 615 .
To provide an example for the case of the zero-block on the diagonal, let A 0 be the block-matrix equal to matrix A from (21), except with the ( 1 , 1 ) -block set to zero, that is, A 0 = Arrow ( D 0 , u , v , α ) , where
D 0 = O 2 O 2 O 2 d , d = 2 5 1 2
and where u, v, and α are provided by (22).
Using Formula (5) from Lemma 1 and Remark 2, the matrix A 0 1 is an arrowhead matrix
A 0 1 = 3.7167 1.25 4.6667 1 1 2.2667 1 2.6667 0.1333 0.2 0.3333 0 8.25 2.25 3.5 1.1667 2 5 1 2 0 0 0 0 0.25 0.0833 0.25 0.25 0 0 0 0 0 0 0 0 .
Finally, using Formula (17) with j = 1 , we have
det ( A 0 ) = ( 1 ) 2 det ( v 1 T · d · u 1 ) = det 27 15 123 75 = 180 .
Similarly, using the more cohesive form in (19), we have
det ( A 0 ) = ( 1 ) 2 det ( v 1 T · u 1 · d ) = det 9 27 29 67 = 180 .
Example 2.
For the sake of simplicity, we shall denote the following quaternion:
q = a + b i + c j + d k q ( a , b , c , d ) .
Let
B = q ( 0.24 , 0.24 , 0.2 , 0.64 ) q ( 0.04 , 0.52 , 0.04 , 0.04 ) q ( 0.04 , 0.12 , 0.52 , 0.04 ) q ( 0.08 , 1.24 , 0.24 , 0.2 ) q ( 0.04 , 0.16 , 1.24 , 0.56 ) q ( 0 , 1.08 , 0 , 0.36 ) q ( 0.64 , 1.28 , 1.24 , 0.72 ) q ( 0.72 , 0.92 , 1.24 , 0.44 ) q ( 1.36 , 0.16 , 1.68 , 0.28 ) ,
that is, B = DPR1 ( Δ , x , y , ρ ) , where
Δ = δ 1 δ 2 δ 3 = q ( 0.2 , 0.2 , 0.4 , 0.6 ) q ( 0.2 , 0.2 , 0.2 , 0.6 ) q ( 0.4 , 0.8 , 0.6 , 0.2 ) , x = x 1 x 2 x 3 = q ( 0.2 , 0.2 , 0.2 , 0.2 ) q ( 0.4 , 0.2 , 0.4 , 0.6 ) q ( 0.8 , 0.8 , 0.6 , 0.4 ) , y = y 1 y 2 y 3 = q ( 0.6 , 0.8 , 0.8 , 0.8 ) q ( 0.6 , 0.6 , 0.8 , 0.6 ) q ( 0.6 , 0.4 , 0.8 , 0.8 ) , ρ = q ( 1 , 0 , 0 , 0 ) .
Using Formula (6) from Lemma 2 (with all matrix entries properly rounded), we have
B 1 = q ( 0.502 , 0.659 , 0.586 , 0.937 ) q ( 0.137 , 0.089 , 0.328 , 0.053 ) q ( 0.182 , 0.063 , 0.062 , 0.128 ) q ( 0.581 , 0.223 , 0.317 , 0.574 ) q ( 0.342 , 0.706 , 0.705 , 0.477 ) q ( 0.262 , 0.21 , 0.44 , 0.129 ) q ( 0.369 , 0.137 , 0.649 , 0.49 ) q ( 0.649 , 0.142 , 0.531 , 0.216 ) q ( 0.271 , 0.298 , 0.278 , 0.197 ) = DPR1 ( Δ ^ , x ^ , y ^ , ρ ^ ) ,
where
Δ ^ = q ( 0.333 , 0.333 , 0.667 , 1 ) q ( 0.417 , 0.417 , 0.417 , 1.25 ) q ( 0.333 , 0.667 , 0.5 , 0.167 ) x ^ = q ( 0.467 , 0.067 , 0.2 , 0.067 ) q ( 0.667 , 1 , 0.167 , 0.167 ) q ( 0.633 , 0.7 , 0.733 , 0.267 ) , y ^ = q ( 0.2 , 1.267 , 0.933 , 1.133 ) q ( 1.083 , 0.25 , 1.083 , 1.083 ) q ( 0.467 , 0.267 , 0.633 , 0.9 ) , ρ ^ = q ( 0.139 , 0.168 , 0.277 , 0.137 ) .
Further, using (13), (24), and the discussion in Section 3.3, we have
Sdet ( B ) = det ( C ( δ 1 δ 2 δ 3 ( 1 + y * Δ 1 x ρ ) ) ) = det ( C q ( 0.759 , 0.659 , 0.127 , 1.178 ) ) = det 0.759 + 0.659 i 0.127 1.178 i 0.127 1.178 i 0.759 0.659 i = 2.414 .
To provide an example for the case of a zero element on the diagonal, let B 0 be the DPR1 matrix of quaternions equal to matrix B from (23), except with the ( 1 , 1 ) -element set to zero. More precisely, B 0 = DPR1 ( Δ 0 , x , y , ρ ) , where
Δ 0 = q ( 0 , 0 , 0 , 0 ) q ( 0.2 , 0.2 , 0.2 , 0.6 ) q ( 0.4 , 0.8 , 0.6 , 0.2 )
and where x, y, and ρ are provided by (24).
Using Formula (7) from Lemma 2 with j = 1 , the matrix B 0 1 is an arrowhead matrix
B 0 1 = q ( 1.386 , 3.187 , 2.032 , 2.389 ) q ( 1.133 , 0.314 , 0.387 , 0.197 ) q ( 0.31 , 0.444 , 0.553 , 0.243 ) q ( 2.5 , 0.417 , 0.417 , 1.667 ) q ( 0.417 , 0.417 , 0.417 , 1.25 ) q ( 0 , 0 , 0 , 0 ) q ( 0.5 , 2.917 , 0.417 , 0.667 ) q ( 0 , 0 , 0 , 0 ) q ( 0.333 , 0.667 , 0.5 , 0.167 ) .
Finally, using Formula (14) with j = 1 and the discussion in Section 3.3, we have
Sdet ( B 0 ) = det C ( y ¯ 1 δ 2 δ 3 x 1 ρ ) = det C q ( 0.3776 , 0.2304 , 0.0512 , 0.1088 ) = det ( 0.3776 0.2304 i 0.0512 0.1088 i 0.0512 0.1088 i 0.3776 + 0.2304 i = 0.21012 .
Similarly, using the more cohesive form in (20), we have
Sdet ( B 0 ) = det C ( y ¯ 1 x 1 ρ δ 2 δ 3 ) = det C q ( 0.0192 , 0.16 , 0.128 , 0.4096 ) = det ( 0.0192 0.16 i 0.128 + 0.4096 i 0.128 + 0.4096 i 0.0192 + 0.16 i = 0.21012 .

5. Discussion and Conclusions

We have derived formulas for inverses and determinants of arrowhead and diagonal-plus-rank-one matrices where the elements are real numbers, complex numbers, or quaternions, along with block matrices of all three types of elements. Each formula requires O ( n ) arithmetic operations, meaning that they are optimal. Each formula is unified in the sense that the same formula is used for any type of matrix element, including block matrices. When formulas for inverses are applied to matrices of quaternions or block matrices the operations must be executed in the exact order specified due to the noncommutativity.
Although the formulas are similar to established and widely recognized results for real and complex arrowhead and DPR1 matrices [1,2,10,13], our results are novel and complement the existing results, as we have proved that they hold in noncommutative algebras for matrices of quaternions and block-matrices.
The code, written in the Julia programming language [7], is available in the fast.jl notebook [15]. The code relies on Julia’s polymorphism (or multiple-dispatch) feature. To the best of our knowledge, this is one of the first attempts to use the same code in computing various linear algebra objects in both commutative and noncommutative settings.

Author Contributions

N.J.S. and I.S. developed the original idea, derived the programs, developed the theoretical results, performed numerical testing, and wrote the manuscript. All authors have read and agreed to the published version of the manuscript.

Funding

This work has been fully supported by the Croatian Science Foundation under the project ‘Matrix Algorithms in Noncommutative Associative Algebras’ (IP-2020-02-2240).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Available online at [15].

Acknowledgments

The authors wish to express their thanks to the reviewers and the editor for their succinct and valuable comments.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Golub, G.H.; Loan, C.F.V. Matrix Computations, 4th ed.; The John Hopkins University Press: Baltimore, MD, USA, 2013. [Google Scholar]
  2. Najafi, H.S.; Edalatpanah, S.A.; Gravvanis, G.A. An efficient method for computing the inverse of arrowhead matrices. Appl. Math. Lett. 2014, 33, 1–5. [Google Scholar] [CrossRef]
  3. Stor, N.J.; Slapničar, I.; Barlow, J.L. Accurate eigenvalue decomposition of real symmetric arrowhead matrices and applications. Linear Algebra Appl. 2015, 464, 62–89. [Google Scholar] [CrossRef]
  4. Hamilton, W.R. Lectures on Quaternions; Hodges and Smith: Dublin, Ireland, 1853. [Google Scholar]
  5. Hamilton, W.R. Elements of Quaternions; Hamilton, W.E., Ed.; Longmans, Green, and Co.: London, UK, 1866. [Google Scholar]
  6. Sudbery, A. Quaternionic analysis. Math. Proc. Camb. Philos. Soc. 1979, 85, 199–225. [Google Scholar] [CrossRef]
  7. The Julia Language. Available online: http://julialang.org/ (accessed on 2 May 2024).
  8. Quaternions.jl. Available online: https://github.com/JuliaGeometry/Quaternions.jl (accessed on 2 May 2024).
  9. Chaysri, T.; Stor, N.J.; Slapničar, I. Fast Eigenvalue Decomposition of Arrowhead and Diagonal-Plus-Rank-k Matrices of Quaternions. Mathematics 2024, 12, 1327. [Google Scholar] [CrossRef]
  10. Bernstein, D.S. Matrix Mathematics; Princeton University Press: Princeton, NJ, USA, 2009. [Google Scholar]
  11. Stor, N.J.; Slapničar, I.; Barlow, J.L. Forward stable eigenvalue decomposition of rank-one modifications of diagonal matrices. Linear Algebra Appl. 2015, 487, 301–315. [Google Scholar] [CrossRef]
  12. Powell, P.D. Calculating determinants of block matrices. arXiv 2011, arXiv:1112.4379. [Google Scholar] [CrossRef]
  13. Aslaksen, H. Quaternionic determinants. Math. Intell. 1996, 18, 57–65. [Google Scholar] [CrossRef]
  14. Cohen, N.; Leo, S.D. The quaternionic determinant. Electron. J. Linear Algebra 2000, 7, 100–111. [Google Scholar] [CrossRef]
  15. Matrix Algorithms in Noncommutative Associative Algebras. Available online: https://github.com/ivanslapnicar/MANAA/ (accessed on 2 May 2024).
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Jakovčević Stor, N.; Slapničar, I. Inverses and Determinants of Arrowhead and Diagonal-Plus-Rank-One Matrices over Associative Algebras. Axioms 2024, 13, 409. https://doi.org/10.3390/axioms13060409

AMA Style

Jakovčević Stor N, Slapničar I. Inverses and Determinants of Arrowhead and Diagonal-Plus-Rank-One Matrices over Associative Algebras. Axioms. 2024; 13(6):409. https://doi.org/10.3390/axioms13060409

Chicago/Turabian Style

Jakovčević Stor, Nevena, and Ivan Slapničar. 2024. "Inverses and Determinants of Arrowhead and Diagonal-Plus-Rank-One Matrices over Associative Algebras" Axioms 13, no. 6: 409. https://doi.org/10.3390/axioms13060409

APA Style

Jakovčević Stor, N., & Slapničar, I. (2024). Inverses and Determinants of Arrowhead and Diagonal-Plus-Rank-One Matrices over Associative Algebras. Axioms, 13(6), 409. https://doi.org/10.3390/axioms13060409

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop