Hello,
how do you calculate the power of a matrix in eviews 7 ?
I have:
matrix_Q (2,2)
This is the square of matrix Q:
matrix(2,2) matrix_Q2= matrix_Q*matrix_Q
How do you calculate
matrix(2,2) matrix_Qn=matrix_Q*...*matrix_Q (n times) ?
Thanks!
power of a matrix
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13602
- Joined: Tue Sep 16, 2008 5:38 pm
Re: power of a matrix
I don't believe there is a built in command to do that. You'll have to do it manually in a for loop:
Code: Select all
!power = 3
matrix matrix_out = matrix_in
for !i=2 to !power
matrix_out = matrix_out * matrix_in
next
Who is online
Users browsing this forum: No registered users and 2 guests
