我有这行:
<mat-horizontal-stepper>
<!-- html-Stuff-->
<ng-container *ngTemplateOutlet="stepperContent"></ng-container>
</mat-horizontal-stepper>
<mat-vertical-stepper>
<!--the same html-Stuff-->
<ng-container *ngTemplateOutlet="stepperContent"></ng-container>
</mat-vertical-stepper>
<ng-template #stepperContent>
<!-- html-Stuff-->
</ng-template>
但我不知道, res0 表达式末尾的 [0,0] 是什么。 res0和res1结果将是1x1矩阵
答案 0 :(得分:1)
res1是点积运算后的矩阵(1x1矩阵)。根据代码,res0是res1的位置(0,0)上的元素。
答案 1 :(得分:0)
thetares和thetares的转置点积可能会产生一个二维numpy数组。因此,从点积的结果中得出的第一个值是索引[0,0]。 最好的理解方法是从res0中删除[0,0]部分,然后比较结果。