<p>You CAN calculate M^b for b being float number, complex number or even another matrix. 
As well as you can calculate exp(M), log(M), sin(M) whatever... That is very standard for math people. </p>

<p>Let me give two ways how you can think of it.</p>

<p>1) M^b = exp(b log(M)), so you need to define what is exp and log for matrices.
That can be done using power series: exp(M) = 1 + M + M^2/2! + M^3/3! + ... 
log(1+M) = M - M^2/2 + M^3/3 - ... </p>

<p>2) More general way to calculate any function of matrix f(M) , looks like that:
if your matrix is diagonal, then it is true that: f(diag(d_i)) = diag( f(d_i)  ) . 
So the question how to reduce any matrix to diagonal one.
That <a href="https://en.wikipedia.org/wiki/Jordan_normal_form" rel="nofollow noreferrer">can be done for almost all</a> matrices by conjugation M = C D C^{-1}.
Then f(M) = C f(D) C^{-1}. </p>

CC BY-SA 4.0
2020-05-17T21:08:57.560Z
2020-05-17T21:08:57.560Z
Alexander Chervov
<p>In Horvath's <em>Weighted network analysis</em>, the author mentions that M^b,  where b is a real number and M is a matrix, denotes the element-wise power. This seems odd to me. The way I was taught, M^b would mean multiplying the matrix M, b times. Should element-wise power not be M^(ob) where where o denotes the Hadamard power? </p>

<wgcna>
Weighted Network Analysis Book by Steve Horvath, taking the power of a matrix
# Weighted Network Analysis Book by Steve Horvath, taking the power of a matrix

(Asked by: username_0 on 2020-05-17)

In Horvath's *Weighted network analysis*, the author mentions that M^b, where b is a real number and M is a matrix, denotes the element-wise power. This seems odd to me. The way I was taught, M^b would mean multiplying the matrix M, b times. Should element-wise power not be M^(ob) where where o denotes the Hadamard power?

**Tags:** wgcna

---

## 1 answers

### Answer by username_1 on 2020-05-17. Score: 2

You CAN calculate M^b for b being float number, complex number or even another matrix.
As well as you can calculate exp(M), log(M), sin(M) whatever... That is very standard for math people.

Let me give two ways how you can think of it.

1) M^b = exp(b log(M)), so you need to define what is exp and log for matrices.
That can be done using power series: exp(M) = 1 + M + M^2/2! + M^3/3! + ...
log(1+M) = M - M^2/2 + M^3/3 - ...

2) More general way to calculate any function of matrix f(M) , looks like that:
if your matrix is diagonal, then it is true that: f(diag(d\_i)) = diag( f(d\_i) ) .
So the question how to reduce any matrix to diagonal one.
That [can be done for almost all](https://en.wikipedia.org/wiki/Jordan_normal_form) matrices by conjugation M = C D C^{-1}.
Then f(M) = C f(D) C^{-1}.


---

