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.
		
		
		
		
		
			
		
			
				
					
					
						
							9 lines
						
					
					
						
							392 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							9 lines
						
					
					
						
							392 B
						
					
					
				
								Tridiagonalization<MatrixXf> tri;
							 | 
						|
								MatrixXf X = MatrixXf::Random(4,4);
							 | 
						|
								MatrixXf A = X + X.transpose();
							 | 
						|
								tri.compute(A);
							 | 
						|
								cout << "The matrix T in the tridiagonal decomposition of A is: " << endl;
							 | 
						|
								cout << tri.matrixT() << endl;
							 | 
						|
								tri.compute(2*A); // re-use tri to compute eigenvalues of 2A
							 | 
						|
								cout << "The matrix T in the tridiagonal decomposition of 2A is: " << endl;
							 | 
						|
								cout << tri.matrixT() << endl;
							 |