1
Recently, I would like use C to implement the following matrix formula:
where, P_{i,j}={x_{i,j},y_{i,j},z_{i,j}}. So the middle matrix actually is a tensor with rank 3, like this:
{{{1,1,0.09986},{1,2,0.07914},{1,3,-0.8068},{1,4,-0.68846}, {1,5,0.297402}},
{{2,1,0.12262},{2,2,-0.41283},{2,3,...