Common Library  0.9.5
matrix.h ファイル

行列定義用ヘッダ [詳解]

データ構造

class  tadah_fussy::indexer::Slice
 slice を利用した添字演算子 [詳解]
 
class  tadah_fussy::indexer::SymMat
 対称行列に対する行・列へのアクセスを想定した添字演算子 [詳解]
 
class  tadah_fussy::indexer_iterator::Base< Value, Container, Pointer, Reference, Indexer >
 indexer を利用した反復子 [詳解]
 
class  tadah_fussy::indexer_iterator::Normal< Container, Indexer, Value >
 添字演算用関数オブジェクト(indexer)を利用した反復子 (indexer_iterator::Base_からの派生) [詳解]
 
class  tadah_fussy::indexer_iterator::Constant< Container, Indexer, Value >
 添字演算用関数オブジェクト(indexer)を利用した定数反復子 (Baseからの派生) [詳解]
 
class  tadah_fussy::Matrix< T >
 行列(二次元配列)クラス [詳解]
 
struct  tadah_fussy::SquareMatrix< T >
 正方行列クラス [詳解]
 
class  tadah_fussy::SymmetricMatrix< T >
 対称行列クラス [詳解]
 

名前空間

 tadah_fussy
 作成者 tadah_fussy
 
 tadah_fussy::indexer
 添字演算子用名前空間
 

関数

template<class Container , class Indexer , class Value >
Normal< Container, Indexer, Value > tadah_fussy::indexer_iterator::operator+ (const Normal< Container, Indexer, Value > &it, typename Normal< Container, Indexer, Value >::difference_type i)
 加算演算子 [詳解]
 
template<class Container , class Indexer , class Value >
Normal< Container, Indexer, Value > tadah_fussy::indexer_iterator::operator- (const Normal< Container, Indexer, Value > &it, typename Normal< Container, Indexer, Value >::difference_type i)
 減算演算子 [詳解]
 
template<class Container , class Indexer , class Value >
Constant< Container, Indexer, Value > tadah_fussy::indexer_iterator::operator+ (const Constant< Container, Indexer, Value > &it, typename Constant< Container, Indexer, Value >::difference_type i)
 加算演算子 [詳解]
 
template<class Container , class Indexer , class Value >
Constant< Container, Indexer, Value > tadah_fussy::indexer_iterator::operator- (const Constant< Container, Indexer, Value > &it, typename Constant< Container, Indexer, Value >::difference_type i)
 減算演算子 [詳解]
 
template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator== (const Constant< Container, Indexer, Value > &c, const Normal< Container, Indexer, Value > &p)
 等号演算子 [詳解]
 
template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator== (const Normal< Container, Indexer, Value > &p, const Constant< Container, Indexer, Value > &c)
 等号演算子 [詳解]
 
template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator!= (const Constant< Container, Indexer, Value > &c, const Normal< Container, Indexer, Value > &p)
 不等号演算子 [詳解]
 
template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator!= (const Normal< Container, Indexer, Value > &p, const Constant< Container, Indexer, Value > &c)
 不等号演算子 [詳解]
 
template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator< (const Constant< Container, Indexer, Value > &c, const Normal< Container, Indexer, Value > &p)
 比較演算子(より小さい) [詳解]
 
template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator< (const Normal< Container, Indexer, Value > &p, const Constant< Container, Indexer, Value > &c)
 比較演算子(より小さい) [詳解]
 
template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator> (const Constant< Container, Indexer, Value > &c, const Normal< Container, Indexer, Value > &p)
 比較演算子(より大きい) [詳解]
 
template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator> (const Normal< Container, Indexer, Value > &p, const Constant< Container, Indexer, Value > &c)
 比較演算子(より大きい) [詳解]
 
template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator<= (const Constant< Container, Indexer, Value > &c, const Normal< Container, Indexer, Value > &p)
 比較演算子(以下) [詳解]
 
template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator<= (const Normal< Container, Indexer, Value > &p, const Constant< Container, Indexer, Value > &c)
 比較演算子(以下) [詳解]
 
template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator>= (const Constant< Container, Indexer, Value > &c, const Normal< Container, Indexer, Value > &p)
 比較演算子(以上) [詳解]
 
template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator>= (const Normal< Container, Indexer, Value > &p, const Constant< Container, Indexer, Value > &c)
 比較演算子(以上) [詳解]
 

詳解

行列定義用ヘッダ

著者
tadah_fussy
日付
2015/10/17 コメント追加
2019/03/29 コメントの見直し
2019/04/08
  • コピー・コンストラクタ、代入演算子の見直し
  • assign( In s, In e, size_type sz, bool inRows ) において、 行列数をゼロとしていた場合は空の行列を生成する(例外は投げない)ように変更
2019/05/09 const_indexer_iterator の end 関数に const 句を付加 ( 付け忘れ )
2021/03/08 Indexer/Iteratorにデフォルト・コンストラクタを追加
2021/03/13 名前空間の変更
2021/04/02 文字コードを UTF-8 に変更

関数詳解

◆ operator+() [1/2]

template<class Container , class Indexer , class Value >
Normal< Container, Indexer, Value > tadah_fussy::indexer_iterator::operator+ ( const Normal< Container, Indexer, Value > &  it,
typename Normal< Container, Indexer, Value >::difference_type  i 
)

加算演算子

覚え書き
加算後の添字がオーバーフローしているかはチェックしていない。
引数
it加算対象の反復子
i加算数
戻り値
加算後の反復子

◆ operator-() [1/2]

template<class Container , class Indexer , class Value >
Normal< Container, Indexer,Value > tadah_fussy::indexer_iterator::operator- ( const Normal< Container, Indexer, Value > &  it,
typename Normal< Container, Indexer, Value >::difference_type  i 
)

減算演算子

覚え書き
減算後の添字がオーバーフローしているかはチェックしていない。
引数
it加算対象の反復子
i減算数
戻り値
減算後の反復子

◆ operator+() [2/2]

template<class Container , class Indexer , class Value >
Constant< Container, Indexer, Value > tadah_fussy::indexer_iterator::operator+ ( const Constant< Container, Indexer, Value > &  it,
typename Constant< Container, Indexer, Value >::difference_type  i 
)

加算演算子

覚え書き
加算後の添字がオーバーフローしているかはチェックしていない。
引数
it加算対象の反復子
i加算数
戻り値
加算後の反復子

◆ operator-() [2/2]

template<class Container , class Indexer , class Value >
Constant< Container, Indexer, Value > tadah_fussy::indexer_iterator::operator- ( const Constant< Container, Indexer, Value > &  it,
typename Constant< Container, Indexer, Value >::difference_type  i 
)

減算演算子

覚え書き
減算後の添字がオーバーフローしているかはチェックしていない。
引数
it加算対象の反復子
i減算数
戻り値
減算後の反復子

◆ operator==() [1/2]

template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator== ( const Constant< Container, Indexer, Value > &  c,
const Normal< Container, Indexer, Value > &  p 
)

等号演算子

通常・定数反復子での比較を行うためのヘルパ関数

引数
c比較対象の indexer_iterator::Constant
p比較対象の indexer_iterator::Normal
戻り値
等しければ true を返す

◆ operator==() [2/2]

template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator== ( const Normal< Container, Indexer, Value > &  p,
const Constant< Container, Indexer, Value > &  c 
)

等号演算子

通常・定数反復子での比較を行うためのヘルパ関数

引数
p比較対象の indexer_iterator::Normal
c比較対象の indexer_iterator::Constant
戻り値
等しければ true を返す

◆ operator!=() [1/2]

template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator!= ( const Constant< Container, Indexer, Value > &  c,
const Normal< Container, Indexer, Value > &  p 
)

不等号演算子

通常・定数反復子での比較を行うためのヘルパ関数

引数
c比較対象の indexer_iterator::Constant
p比較対象の indexer_iterator::Normal
戻り値
等しくなければ true を返す

◆ operator!=() [2/2]

template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator!= ( const Normal< Container, Indexer, Value > &  p,
const Constant< Container, Indexer, Value > &  c 
)

不等号演算子

通常・定数反復子での比較を行うためのヘルパ関数

引数
p比較対象の indexer_iterator::Normal
c比較対象の indexer_iterator::Constant
戻り値
等しくなければ true を返す

◆ operator<() [1/2]

template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator< ( const Constant< Container, Indexer, Value > &  c,
const Normal< Container, Indexer, Value > &  p 
)

比較演算子(より小さい)

通常・定数反復子での比較を行うためのヘルパ関数

引数
c比較対象の indexer_iterator::Constant
p比較対象の indexer_iterator::Normal
戻り値
c の方が小さければ true を返す

◆ operator<() [2/2]

template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator< ( const Normal< Container, Indexer, Value > &  p,
const Constant< Container, Indexer, Value > &  c 
)

比較演算子(より小さい)

通常・定数反復子での比較を行うためのヘルパ関数

引数
p比較対象の indexer_iterator::Normal
c比較対象の indexer_iterator::Constant
戻り値
p の方が小さければ true を返す

◆ operator>() [1/2]

template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator> ( const Constant< Container, Indexer, Value > &  c,
const Normal< Container, Indexer, Value > &  p 
)

比較演算子(より大きい)

通常・定数反復子での比較を行うためのヘルパ関数

引数
c比較対象の indexer_iterator::Constant
p比較対象の indexer_iterator::Normal
戻り値
c の方が大きければ true を返す

◆ operator>() [2/2]

template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator> ( const Normal< Container, Indexer, Value > &  p,
const Constant< Container, Indexer, Value > &  c 
)

比較演算子(より大きい)

通常・定数反復子での比較を行うためのヘルパ関数

引数
p比較対象の indexer_iterator::Normal
c比較対象の indexer_iterator::Constant
戻り値
p の方が大きければ true を返す

◆ operator<=() [1/2]

template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator<= ( const Constant< Container, Indexer, Value > &  c,
const Normal< Container, Indexer, Value > &  p 
)

比較演算子(以下)

通常・定数反復子での比較を行うためのヘルパ関数

引数
c比較対象の indexer_iterator::Constant
p比較対象の indexer_iterator::Normal
戻り値
c が p 以下ならば true を返す

◆ operator<=() [2/2]

template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator<= ( const Normal< Container, Indexer, Value > &  p,
const Constant< Container, Indexer, Value > &  c 
)

比較演算子(以下)

通常・定数反復子での比較を行うためのヘルパ関数

引数
p比較対象の indexer_iterator::Normal
c比較対象の indexer_iterator::Constant
戻り値
p が c 以下ならば true を返す

◆ operator>=() [1/2]

template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator>= ( const Constant< Container, Indexer, Value > &  c,
const Normal< Container, Indexer, Value > &  p 
)

比較演算子(以上)

通常・定数反復子での比較を行うためのヘルパ関数

引数
c比較対象の indexer_iterator::Constant
p比較対象の indexer_iterator::Normal
戻り値
c が p 以上ならば true を返す

◆ operator>=() [2/2]

template<class Container , class Indexer , class Value >
bool tadah_fussy::indexer_iterator::operator>= ( const Normal< Container, Indexer, Value > &  p,
const Constant< Container, Indexer, Value > &  c 
)

比較演算子(以上)

通常・定数反復子での比較を行うためのヘルパ関数

引数
p比較対象の indexer_iterator::Normal
c比較対象の indexer_iterator::Constant
戻り値
p が c 以上ならば true を返す