我正在尝试使用 Perl 模块eigens_sym 的强大功能来计算对称矩阵的特征向量PDL。
use strict; # Be pessimistic and careful with interpretations in the compilation stage, before the very execution of this program . Doubts may abort execution, probably with error messages to stdout
use PDL ; # Load the PDL extension of Perl
my $matrix ; # declare this variable
# Set $matrix to my matrix A
$matrix = new PDL(
[
[ 2 , 1 , 9 , 2 , -6 , 5 , …Run Code Online (Sandbox Code Playgroud)