Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は 4 列の配列を持っています。この行の最大値を含む列のラベルを各行に含むベクトルを取得したいと考えています。
ループでこれを行うことができますが、速度のために行列関数を使用したいと思います。
独自の lib 関数をプログラミングせずにこれを行うにはどうすればよいですか?
これを行う関数があります。xが行列の場合は、 を試してくださいmax.col(x)。
x
max.col(x)