diagonal difference的意思|示意

美 / daɪˈægənəl ˈdifərəns / 英 / daɪˈæɡənəl ˈdɪfərəns /

对角差分


diagonal difference的用法详解

在数学的计算中,diagonal difference指的是一个矩阵的主对角线元素与副对角线元素之差。一个m行n列矩阵A,其主对角线上的元素称为a11,a22,a33,…,am1 am2, 其副对角线上的元素称为a12,a23,a34,…,am1 am2;它们之差的绝对值叫做矩阵A的diagonal difference,记为|A|:

|A| = |a11−a12| + |a22−a23| + |a33−a34| +…+ |am1−am2|

也可以用程序来计算diagonal difference值,例如用java语言可以这样实现:

// 主对角线上的元素称为a11,a22,a33,…,am1 am2

int primaryDiagonal = 0;

// 副对角线上的元素称为a12,a23,a34,…,am1 am2

int secondaryDiagonal = 0;

for(int i = 0; i < m; i++){

for(int j = 0; j < n; j++){

if(i == j)

primaryDiagonal += a[i][j];

if(i + j == m - 1)

secondaryDiagonal += a[i][j];

}

}

double result = Math.abs(primaryDiagonal - secondaryDiagonal);

上面代码中,result就是diagonal difference的值。这种用程序来计算diagonal difference的方法十分方便,能够更快更准确地得到所需结果。

diagonal difference相关短语

1、 mixed five-diagonal finite difference algorithm 混合五对角法

diagonal difference相关例句

To install the crane span before installation, camber, level of metal structure of main girder bending, trolley rail height difference, gauge deviation, diagonal bridge survey.

安装前要对起重机安装跨度,金属结构主梁的拱度、水平旁弯,小车轨道高低差、轨距偏差,桥架对角线等进行测量。

The diagonal current sum or difference of compound bridge has been regarded as output, its quantity can be selected as the larger or the smaller measured variable automatically.

复合桥路采用双对角线复合输出,可以自动选择被测参量中较大和较小者。

The ridge of the gable was designed on the diagonal line and ceilings' height difference was given as if twisting from the south to the north.

山墙脊呈对角线设计,天花板高度不同,就像空间从南面向北面扭曲。