リソース · ガイド・記事
Matrices
行列の表記と基本的な演算を手早く復習できる資料で、グリッド、画像、線形代数系のコーディング問題の前に役立ちます。
確認日
元のサイトを開く: Matrices (元のサイトを新しいタブで開きます)ロードマップに追加
取り組んでいるロードマップにこのリソースを追加できます。自分用の追加リソースとして表示され、ロードマップの手順は変わらず、記録した手順数にも数えられません。
出典コンテンツの言語:英語
In mathematics, a matrix (plural matrices) is a rectangular array or table of numbers, symbols, or expressions, arranged in rows and columns. For example, the dimension of the matrix below is 2 × 3 (read "two by three"), because there are two rows and three columns: An m × n matrix: the m rows are horizontal, and the n columns are vertical. Each element of a matrix is often denoted by a variable with two subscripts. For example, a 2,1 represents the element at the second row and first column of the matrix To add two matrices: add the numbers in the matching positions:
PrepKit の概要
この概要は PrepKit 編集部がソースリポジトリをもとに執筆・確認したもので、リソース本文の引用ではありません。
- 対象
- ソースにレベルの記載はありません
- 形式
- リファレンス
扱っている内容
- 次元とインデックス。2 x 3 の例と、行・列の添字の慣例を示しています。
- 要素ごとの足し算と引き算、および定数倍。
- 行と列の内積による行列の積と、転置。
使い方
PrepKit の学習アドバイスであり、ソースの主張ではありません。
2 x 3 行列と 3 x 2 行列の積を手で計算し、次に入れ子のループでコードにして結果の形を確かめてください。
範囲と制約
簡潔で、計算例は MathIsFun に置かれた画像です。計算量、行列式、練習問題は扱っていません。
利用方法と形式
GitHub にある英語の無料 README です(trekhleb/javascript-algorithms、MIT ライセンス)。
PrepKit が 2026/10/02 に確認しました。 リソースの出典のコミット: 85293e3e2b88
この概要の根拠
- src/algorithms/math/matrix/README.md
この項目を掲載しているページ
PrepKit ニュースレターを受け取る
任意です。PrepKit の利用には必要ありません。