Community Profile

photo

Yamada Taro


Last seen: 2 months ago Active since 2022

Followers: 0   Following: 0

Spoken Languages:
Japanese

Statistics

  • Thankful Level 2

View badges

Feeds

View by

Question


How to make a matrix from trace of the original matrix ?
When I have a square matrix A like the one in the picture, I want to create a matrix B which is the sum of the kth diagonal comp...

1 year ago | 1 answer | 1

1

answer

Question


各対角番号に対する対角和からなる配列
写真のような正方行列Aを持っている際に、自身より右下の第k対角成分の和をとった行列Bを作成したいのですが、何か簡単に書く方法はないでしょうか。 現在は縮小行列を作り、各縮小行列の第j番目の対角成分を取得する形で計算していますが、かなり遅いし効率も悪い...

1 year ago | 2 answers | 1

2

answers