所有可能的节点对的值的乘积的和决定的权重数组的内容。
The sum of the products of the values of all possible node pairs determines the content of the weight array.
我们使用reduce函数将五个数组成的每个序列转换成这五个数的乘积。
We transform each sequence of five Numbers to the product of those five Numbers by using the reduce function.
函数计算一个数组中值得乘积,并返回这个乘积。
The array_product() function calculates and returns the product of an array.
应用推荐