|
| SquareMatrix () |
| デフォルト・コンストラクタ [詳解]
|
|
| SquareMatrix (size_type size, value_type val=value_type()) |
| 行・列数を指定して構築 [詳解]
|
|
template<class In > |
| SquareMatrix (In s, In e, size_type sz, bool inRows=true) |
| データ列を指定して構築 [詳解]
|
|
| SquareMatrix (const SquareMatrix &mat) |
| 正方行列の要素をコピーして構築(コピー・コンストラクタ) [詳解]
|
|
template<class U > |
| SquareMatrix (const SquareMatrix< U > &mat) |
| 型の異なる正方行列の要素をコピーして構築 [詳解]
|
|
template<class U > |
| SquareMatrix (const SymmetricMatrix< U > &mat) |
| 対称行列の要素をコピーして構築 [詳解]
|
|
SquareMatrix & | operator= (const SquareMatrix &mat) |
| 代入演算子の多重定義(型の等しい正方行列を代入する) [詳解]
|
|
template<class U > |
SquareMatrix & | operator= (const SquareMatrix< U > &mat) |
| 代入演算子の多重定義(任意の型の正方行列を代入する) [詳解]
|
|
template<class U > |
SquareMatrix & | operator= (const SymmetricMatrix< U > &mat) |
| 代入演算子の多重定義(任意の型の対称行列を代入する) [詳解]
|
|
size_type | size () const |
| 行列のサイズを返す [詳解]
|
|
size_type | rows () const |
| 行数を返す [詳解]
|
|
size_type | cols () const |
| 列数を返す [詳解]
|
|
void | resize (size_type size, value_type val=value_type()) |
| 要素数 ( 行数 × 列数 ) を変更する [詳解]
|
|
void | assign (size_type size, value_type val=value_type()) |
| 要素数 ( 行数 × 列数 ) を変更し、値を初期化する [詳解]
|
|
template<class In > |
void | assign (In s, In e, size_type sz, bool inRows) |
| データ列を指定して行列を初期化する [詳解]
|
|
iterator | operator[] (size_type r) |
| 指定した行番号の反復子を返す(添字演算子) [詳解]
|
|
const_iterator | operator[] (size_type r) const |
| 指定した行番号の定数反復子を返す(添字演算子) [詳解]
|
|
iterator | row (size_type r, size_type start=0, size_type stride=1) |
| 指定した行番号の反復子を返す [詳解]
|
|
const_iterator | row (size_type r, size_type start=0, size_type stride=1) const |
| 指定した行番号の定数反復子を返す [詳解]
|
|
iterator | cbegin (size_type c) |
| 指定した列番号の反復子を返す [詳解]
|
|
const_iterator | cbegin (size_type c) const |
| 指定した列番号の定数反復子を返す [詳解]
|
|
iterator | column (size_type c, size_type start=0, size_type stride=1) |
| 指定した列番号の反復子を返す [詳解]
|
|
const_iterator | column (size_type c, size_type start=0, size_type stride=1) const |
| 指定した列番号の定数反復子を返す [詳解]
|
|
iterator | begin () |
| 先頭位置から始まる全要素へアクセス可能な反復子を返す [詳解]
|
|
const_iterator | begin () const |
| 先頭位置から始まる全要素へアクセス可能な定数反復子を返す [詳解]
|
|
iterator | end () |
| 要素の末尾を表す反復子を返す [詳解]
|
|
const_iterator | end () const |
| 要素の末尾を表す定数反復子を返す [詳解]
|
|
void | transpose () |
| 要素の転置を行う [詳解]
|
|
template<typename U > |
SquareMatrix< T > & | operator*= (const SquareMatrix< U > &mat) |
| 行列と掛け合わせる [詳解]
|
|
|
typedef T | value_type |
| 要素の型
|
|
typedef indexer_iterator< std::valarray< T >, SliceIndexer > | iterator |
| 反復子の型
|
|
typedef const_indexer_iterator< std::valarray< T >, SliceIndexer > | const_iterator |
| 定数反復子の型
|
|
typedef size_t | size_type |
| 添字の型
|
|
| Matrix () |
| デフォルト・コンストラクタ [詳解]
|
|
| Matrix (size_type rows, size_type cols, value_type val=value_type()) |
| 行・列数を指定して構築 [詳解]
|
|
template<class In > |
| Matrix (In s, In e, size_type sz, bool inRows) |
| データ列を指定して構築 [詳解]
|
|
| Matrix (const Matrix &mat) |
| 行列の要素をコピーして構築(コピー・コンストラクタ) [詳解]
|
|
template<class U > |
| Matrix (const Matrix< U > &mat) |
| 任意の型の行列の要素をコピーして構築 [詳解]
|
|
template<class U > |
| Matrix (const SquareMatrix< U > &mat) |
| 正方行列の要素をコピーして構築 [詳解]
|
|
template<class U > |
| Matrix (const SymmetricMatrix< U > &mat) |
| 対称行列の要素をコピーして構築 [詳解]
|
|
Matrix & | operator= (const Matrix &mat) |
| 代入演算子の多重定義(型が等しい行列の代入) [詳解]
|
|
template<class U > |
Matrix & | operator= (const Matrix< U > &mat) |
| 代入演算子の多重定義(任意の型の行列の代入) [詳解]
|
|
template<class U > |
Matrix & | operator= (const SquareMatrix< U > &mat) |
| 代入演算子の多重定義(正方行列の代入) [詳解]
|
|
template<class U > |
Matrix & | operator= (const SymmetricMatrix< U > &mat) |
| 代入演算子の多重定義(対称行列の代入) [詳解]
|
|
void | resize (size_type rows, size_type cols, value_type val=value_type()) |
| 要素数 ( 行数 × 列数 ) を変更する [詳解]
|
|
void | assign (size_type rows, size_type cols, value_type val=value_type()) |
| 要素数 ( 行数 × 列数 ) を変更し、値を初期化する [詳解]
|
|
template<class In > |
void | assign (In s, In e, size_type sz, bool inRows) |
| 行列をデータ列で初期化する [詳解]
|
|
size_type | rows () const |
| 行数を返す [詳解]
|
|
size_type | cols () const |
| 列数を返す [詳解]
|
|
iterator | operator[] (size_type r) |
| 指定した行番号の反復子を返す(添字演算子) [詳解]
|
|
const_iterator | operator[] (size_type r) const |
| 指定した行番号の定数反復子を返す(添字演算子) [詳解]
|
|
iterator | row (size_type r, size_type start=0, size_type stride=1) |
| 指定した行番号の反復子を返す [詳解]
|
|
const_iterator | row (size_type r, size_type start=0, size_type stride=1) const |
| 指定した行番号の定数反復子を返す [詳解]
|
|
iterator | cbegin (size_type c) |
| 指定した列番号の反復子を返す [詳解]
|
|
const_iterator | cbegin (size_type c) const |
| 指定した列番号の定数反復子を返す [詳解]
|
|
iterator | column (size_type c, size_type start=0, size_type stride=1) |
| 指定した列番号の反復子を返す [詳解]
|
|
const_iterator | column (size_type c, size_type start=0, size_type stride=1) const |
| 指定した列番号の定数反復子を返す [詳解]
|
|
iterator | begin () |
| 先頭位置から始まる全要素へアクセス可能な反復子を返す [詳解]
|
|
const_iterator | begin () const |
| 先頭位置から始まる全要素へアクセス可能な定数反復子を返す [詳解]
|
|
iterator | end () |
| 要素の末尾を表す反復子を返す [詳解]
|
|
const_iterator | end () const |
| 要素の末尾を表す定数反復子を返す [詳解]
|
|
void | transpose () |
| 要素の転置を行う [詳解]
|
|
template<typename T>
struct SquareMatrix< T >
正方行列クラス
テンプレート引数の T は要素の型を表す。 SquareMatrix クラスは要素へのアクセスやサイズ変更・取得などの関数を持つ。 演算用のメンバ関数として operator*= を持つが、それを利用しなければ四則演算を持たないような型も要素にすることができる。
SquareMatrix には専用の反復子が indexer_iterator と const_indexer_iterator を利用して用意されている。 SquareMatrix の行や列に対して反復子を使ってループ処理を行うことができる。 また、添字を使って直接特定の要素へアクセスすることも可能である。