You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					18 lines
				
				424 B
			
		
		
			
		
	
	
					18 lines
				
				424 B
			| 
											6 years ago
										 | #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;
 | ||
|  | }
 |