Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102637295
MatrixPower_optimal.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Feb 22, 18:35
Size
424 B
Mime Type
text/x-c
Expires
Mon, Feb 24, 18:35 (2 d)
Engine
blob
Format
Raw Data
Handle
24378105
Attached To
rDLMA Diffusion limited mixed aggregation
MatrixPower_optimal.cpp
View Options
#include <unsupported/Eigen/MatrixFunctions>
#include <iostream>
using
namespace
Eigen
;
int
main
()
{
Matrix4cd
A
=
Matrix4cd
::
Random
();
MatrixPower
<
Matrix4cd
>
Apow
(
A
);
std
::
cout
<<
"The matrix A is:
\n
"
<<
A
<<
"
\n\n
"
"A^3.1 is:
\n
"
<<
Apow
(
3.1
)
<<
"
\n\n
"
"A^3.3 is:
\n
"
<<
Apow
(
3.3
)
<<
"
\n\n
"
"A^3.7 is:
\n
"
<<
Apow
(
3.7
)
<<
"
\n\n
"
"A^3.9 is:
\n
"
<<
Apow
(
3.9
)
<<
std
::
endl
;
return
0
;
}
Event Timeline
Log In to Comment