org.mklab.nfc.matrix
クラス AbstractFundamentalMatrix<M extends Matrix>

java.lang.Object
  上位を拡張 org.mklab.nfc.matrix.AbstractGrid<M>
      上位を拡張 org.mklab.nfc.matrix.AbstractFundamentalMatrix<M>
型パラメータ:
M - 実際の行列の型
すべての実装されたインタフェース:
Serializable, Cloneable, FundamentalMatrix, Grid
直系の既知のサブクラス:
AbstractMatrix

public abstract class AbstractFundamentalMatrix<M extends Matrix>
extends AbstractGrid<M>
implements FundamentalMatrix

行列データを扱うための抽象クラスです。

バージョン:
$Revision: 1.9 $
作成者:
koga
関連項目:
直列化された形式

コンストラクタの概要
AbstractFundamentalMatrix()
          新しく生成されたAbstractMatrixオブジェクトを初期化します。
AbstractFundamentalMatrix(int rowSize, int columnSize)
          新しく生成されたAbstractMatrixオブジェクトを初期化します。
 
メソッドの概要
 Matrix appendDown(Matrix value)
          下側に行列valueを付けた行列を生成します。
 Matrix appendRight(Matrix value)
          右側にvalueを付けた行列を生成します。
 M flipLeftRight()
          左右の列を反転した行列を生成します。
 M flipUpDown()
          上下の行を反転した行列を生成します。
 M getColumnVector(int column)
          指定された列を返します。
 M getColumnVectors(int min, int max)
          minimum列からmaximum列までの部分行列を生成します。
 M getColumnVectors(IntMatrix index)
          indexで指定された列からなる部分行列を生成します。
 M getRowVector(int row)
          指定された行を返します。
 M getRowVectors(int min, int max)
          minimum行からmaximum行までの部分行列を生成します。
 M getRowVectors(IntMatrix index)
          indexで指定された行からなる部分行列を生成します。
 M getSubMatrix(int row, int column, Grid block)
          blockのサイズで分割したときのrowcolumn 列番目のブロック行列を返します。
 M getSubMatrix(int row, IntMatrix columnIndex)
          row行ベクトルのcolumnIndexで指定された成分からなる横ベクトルを生成します。
 M getSubMatrix(IntMatrix rowIndex, int column)
          column列ベクトルのrowIndexで指定された成分からなる縦ベクトルを生成します。
 M getSubVector(int min, int max)
          成分を行毎に数え、minimumからmaximumまでの成分からなるベクトルを生成します。
 M getSubVector(int min, int max, int by)
          成分を行毎に数え、minimumからmaximumまでのby 飛び成分からなるベクトルを生成します。
 M rotateLeft(int number)
          全ての成分を左方向へ回転します。
 M rotateUp(int number)
          全ての成分を上方向へ回転します。
 void setColumnVector(int column, Matrix source)
          指定された列にsourceを代入します。
 void setColumnVectors(int min, int max, Matrix source)
          minimum列からmaximum列にsourceを代入します。
 void setColumnVectors(IntMatrix index, Matrix source)
          指定された列にsourceを代入します。
 void setRowVector(int row, Matrix source)
          指定された行にsourceを代入します。
 void setRowVectors(int min, int max, Matrix source)
          minimum行からmaximum行にsourceを代入します。
 void setRowVectors(IntMatrix index, Matrix source)
          指定された複数の行にsourceを代入します。
 void setSubMatrix(int row, int column, Grid block, Matrix source)
          指定した成分に行列sourceを代入します。
 void setSubMatrix(int row, IntMatrix columnIndex, Matrix source)
          row列目の成分のcolumnIndexで指定された行の成分に行列sourceを代入します。
 void setSubMatrix(IntMatrix rowIndex, int column, Matrix source)
          rowIndexで指定した行のcolumn列に行列source を代入します。
 void setSubVector(int min, int max, int by, Matrix source)
          成分を行毎に数え、minimumからmaximumまでの成分をby飛びに代入します。
 
クラス org.mklab.nfc.matrix.AbstractGrid から継承されたメソッド
clone, count, getColumnSize, getDefaultElementAlignment, getDefaultElementFormat, getElementAlignment, getElementFormat, getGridClassName, getPrintingElementsString, getPrintingString, getRowSize, hashCode, hasSameColumnSize, hasSameRowSize, isEmpty, isSameSize, isSquare, length, print, print, print, removeColumnVector, removeRowVector, setColumnSize, setDefaultElementAlignment, setDefaultElementFormat, setElementAlignment, setElementFormat, setRowSize, toString
 
クラス java.lang.Object から継承されたメソッド
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
インタフェース org.mklab.nfc.matrix.FundamentalMatrix から継承されたメソッド
compareElementWise, copy, diagonalToVector, equals, getSubMatrix, getSubMatrix, getSubMatrix, getSubMatrix, getSubVector, reshape, resize, setSubMatrix, setSubMatrix, setSubMatrix, setSubMatrix, setSubVector, setSubVector, transpose, vectorToDiagonal
 
インタフェース org.mklab.nfc.matrix.Grid から継承されたメソッド
clone, count, exchangeColumn, exchangeRow, getColumnSize, getElementAlignment, getElementFormat, getPrintingElementsString, getPrintingString, getRowSize, hasSameColumnSize, hasSameRowSize, isEmpty, isSameSize, isSquare, isZero, length, print, print, print, printElements, printElements, removeColumnVector, removeColumnVectors, removeColumnVectors, removeRowVector, removeRowVectors, removeRowVectors, setElementAlignment, setElementFormat
 

コンストラクタの詳細

AbstractFundamentalMatrix

public AbstractFundamentalMatrix()
新しく生成されたAbstractMatrixオブジェクトを初期化します。


AbstractFundamentalMatrix

public AbstractFundamentalMatrix(int rowSize,
                                 int columnSize)
新しく生成されたAbstractMatrixオブジェクトを初期化します。

パラメータ:
rowSize - 行の数
columnSize - 列の数
メソッドの詳細

appendDown

public Matrix appendDown(Matrix value)
インタフェース FundamentalMatrix の記述:
下側に行列valueを付けた行列を生成します。

定義:
インタフェース FundamentalMatrix 内の appendDown
パラメータ:
value - 付ける行列
戻り値:
下側にvalueをつけた行列
関連項目:
FundamentalMatrix.appendDown(org.mklab.nfc.matrix.Matrix)

appendRight

public Matrix appendRight(Matrix value)
インタフェース FundamentalMatrix の記述:
右側にvalueを付けた行列を生成します。

定義:
インタフェース FundamentalMatrix 内の appendRight
パラメータ:
value - 付ける複素数
戻り値:
右側にvalueを付けた行列
関連項目:
FundamentalMatrix.appendRight(org.mklab.nfc.matrix.Matrix)

getSubMatrix

public M getSubMatrix(int row,
                      int column,
                      Grid block)
インタフェース FundamentalMatrix の記述:
blockのサイズで分割したときのrowcolumn 列番目のブロック行列を返します。

定義:
インタフェース FundamentalMatrix 内の getSubMatrix
パラメータ:
row - 行番号
column - 列番号
block - 基本ブロック行列
戻り値:
部分行列
関連項目:
FundamentalMatrix.getSubMatrix(int, int, org.mklab.nfc.matrix.Grid)

getSubMatrix

public M getSubMatrix(IntMatrix rowIndex,
                      int column)
インタフェース FundamentalMatrix の記述:
column列ベクトルのrowIndexで指定された成分からなる縦ベクトルを生成します。

定義:
インタフェース FundamentalMatrix 内の getSubMatrix
パラメータ:
rowIndex - 行指定ベクトル
column - 列指定
戻り値:
部分行列
関連項目:
FundamentalMatrix.getSubMatrix(org.mklab.nfc.matrix.IntMatrix,int)

getSubMatrix

public M getSubMatrix(int row,
                      IntMatrix columnIndex)
インタフェース FundamentalMatrix の記述:
row行ベクトルのcolumnIndexで指定された成分からなる横ベクトルを生成します。

定義:
インタフェース FundamentalMatrix 内の getSubMatrix
パラメータ:
row - 行指定
columnIndex - 列指定ベクトル
戻り値:
部分行列
関連項目:
FundamentalMatrix.getSubMatrix(int, org.mklab.nfc.matrix.IntMatrix)

getRowVector

public M getRowVector(int row)
インタフェース FundamentalMatrix の記述:
指定された行を返します。

定義:
インタフェース FundamentalMatrix 内の getRowVector
パラメータ:
row - 行番号
戻り値:
指定された行
関連項目:
FundamentalMatrix.getRowVector(int)

getRowVectors

public M getRowVectors(int min,
                       int max)
インタフェース FundamentalMatrix の記述:
minimum行からmaximum行までの部分行列を生成します。

定義:
インタフェース FundamentalMatrix 内の getRowVectors
パラメータ:
min - 開始行番号(1から始まります)
max - 終了行番号(1から始まります)
戻り値:
部分行列
関連項目:
FundamentalMatrix.getRowVectors(int, int)

getRowVectors

public M getRowVectors(IntMatrix index)
インタフェース FundamentalMatrix の記述:
indexで指定された行からなる部分行列を生成します。

定義:
インタフェース FundamentalMatrix 内の getRowVectors
パラメータ:
index - 取り出す行番号
戻り値:
部分行列
関連項目:
FundamentalMatrix.getRowVectors(org.mklab.nfc.matrix.IntMatrix)

getColumnVector

public M getColumnVector(int column)
インタフェース FundamentalMatrix の記述:
指定された列を返します。

定義:
インタフェース FundamentalMatrix 内の getColumnVector
パラメータ:
column - 列番号
戻り値:
指定された列
関連項目:
FundamentalMatrix.getColumnVector(int)

getColumnVectors

public M getColumnVectors(int min,
                          int max)
インタフェース FundamentalMatrix の記述:
minimum列からmaximum列までの部分行列を生成します。

定義:
インタフェース FundamentalMatrix 内の getColumnVectors
パラメータ:
min - 開始列番号(1から始まります)
max - 終了列番号(1から始まります)
戻り値:
部分行列
関連項目:
FundamentalMatrix.getColumnVectors(int, int)

getColumnVectors

public M getColumnVectors(IntMatrix index)
インタフェース FundamentalMatrix の記述:
indexで指定された列からなる部分行列を生成します。

定義:
インタフェース FundamentalMatrix 内の getColumnVectors
パラメータ:
index - 取り出す列番号
戻り値:
部分行列
関連項目:
FundamentalMatrix.getColumnVectors(org.mklab.nfc.matrix.IntMatrix)

getSubVector

public M getSubVector(int min,
                      int max,
                      int by)
インタフェース FundamentalMatrix の記述:
成分を行毎に数え、minimumからmaximumまでのby 飛び成分からなるベクトルを生成します。

定義:
インタフェース FundamentalMatrix 内の getSubVector
パラメータ:
min - 開始位置(1から始まります)
max - 終了位置(1から始まります)
by - 飛ばす数
戻り値:
fromからtoまでの成分を持つ横ベクトル
関連項目:
FundamentalMatrix.getSubVector(int, int, int)

getSubVector

public M getSubVector(int min,
                      int max)
インタフェース FundamentalMatrix の記述:
成分を行毎に数え、minimumからmaximumまでの成分からなるベクトルを生成します。

定義:
インタフェース FundamentalMatrix 内の getSubVector
パラメータ:
min - 開始位置(1から始まります)
max - 終了位置(1から始まります)
戻り値:
fromからtoまでの成分を持つ横ベクトル
関連項目:
FundamentalMatrix.getSubVector(int, int)

flipLeftRight

public M flipLeftRight()
インタフェース FundamentalMatrix の記述:
左右の列を反転した行列を生成します。

定義:
インタフェース FundamentalMatrix 内の flipLeftRight
戻り値:
左右反転した行列
関連項目:
FundamentalMatrix.flipLeftRight()

flipUpDown

public M flipUpDown()
インタフェース FundamentalMatrix の記述:
上下の行を反転した行列を生成します。

定義:
インタフェース FundamentalMatrix 内の flipUpDown
戻り値:
上下反転した行列
関連項目:
FundamentalMatrix.flipUpDown()

rotateUp

public M rotateUp(int number)
インタフェース FundamentalMatrix の記述:
全ての成分を上方向へ回転します。numberが負の場合、下方向へ回転します。

定義:
インタフェース FundamentalMatrix 内の rotateUp
パラメータ:
number - 回転で進む数
戻り値:
全ての成分を上方向へ回転した行列
関連項目:
FundamentalMatrix.rotateUp(int)

rotateLeft

public M rotateLeft(int number)
インタフェース FundamentalMatrix の記述:
全ての成分を左方向へ回転します。numberが負の場合、右方向へ回転します。

定義:
インタフェース FundamentalMatrix 内の rotateLeft
パラメータ:
number - 回転で進む数
戻り値:
全ての成分を左方向へ回転した行列
関連項目:
FundamentalMatrix.rotateLeft(int)

setRowVector

public void setRowVector(int row,
                         Matrix source)
インタフェース FundamentalMatrix の記述:
指定された行にsourceを代入します。

定義:
インタフェース FundamentalMatrix 内の setRowVector
パラメータ:
row - 行番号
source - 代入する行列
関連項目:
FundamentalMatrix.setRowVector(int, org.mklab.nfc.matrix.Matrix)

setRowVectors

public void setRowVectors(int min,
                          int max,
                          Matrix source)
インタフェース FundamentalMatrix の記述:
minimum行からmaximum行にsourceを代入します。

定義:
インタフェース FundamentalMatrix 内の setRowVectors
パラメータ:
min - 開始行番号(1から始まります)
max - 終了行番号(1から始まります)
source - 代入する行列
関連項目:
FundamentalMatrix.setRowVectors(int, int, org.mklab.nfc.matrix.Matrix)

setRowVectors

public void setRowVectors(IntMatrix index,
                          Matrix source)
インタフェース FundamentalMatrix の記述:
指定された複数の行にsourceを代入します。

定義:
インタフェース FundamentalMatrix 内の setRowVectors
パラメータ:
index - 行番号
source - 代入する行列
関連項目:
FundamentalMatrix.setRowVectors(org.mklab.nfc.matrix.IntMatrix, org.mklab.nfc.matrix.Matrix)

setColumnVector

public void setColumnVector(int column,
                            Matrix source)
インタフェース FundamentalMatrix の記述:
指定された列にsourceを代入します。

定義:
インタフェース FundamentalMatrix 内の setColumnVector
パラメータ:
column - 列番号
source - 代入する行列
関連項目:
FundamentalMatrix.setColumnVector(int, org.mklab.nfc.matrix.Matrix)

setColumnVectors

public void setColumnVectors(int min,
                             int max,
                             Matrix source)
インタフェース FundamentalMatrix の記述:
minimum列からmaximum列にsourceを代入します。

定義:
インタフェース FundamentalMatrix 内の setColumnVectors
パラメータ:
min - 開始列番号(1から始まります)
max - 終了列番号(1から始まります)
source - 代入する行列
関連項目:
FundamentalMatrix.setColumnVectors(int, int, org.mklab.nfc.matrix.Matrix)

setColumnVectors

public void setColumnVectors(IntMatrix index,
                             Matrix source)
インタフェース FundamentalMatrix の記述:
指定された列にsourceを代入します。

定義:
インタフェース FundamentalMatrix 内の setColumnVectors
パラメータ:
index - 列番号
source - 代入する行列
関連項目:
FundamentalMatrix.setColumnVectors(org.mklab.nfc.matrix.IntMatrix, org.mklab.nfc.matrix.Matrix)

setSubMatrix

public void setSubMatrix(int row,
                         int column,
                         Grid block,
                         Matrix source)
インタフェース FundamentalMatrix の記述:
指定した成分に行列sourceを代入します。

定義:
インタフェース FundamentalMatrix 内の setSubMatrix
パラメータ:
row - 行番号
column - 列番号
block - 基本ブロック行列
source - 代入する行列
関連項目:
FundamentalMatrix.setSubMatrix(int, int, org.mklab.nfc.matrix.Grid, org.mklab.nfc.matrix.Matrix)

setSubMatrix

public void setSubMatrix(IntMatrix rowIndex,
                         int column,
                         Matrix source)
インタフェース FundamentalMatrix の記述:
rowIndexで指定した行のcolumn列に行列source を代入します。

定義:
インタフェース FundamentalMatrix 内の setSubMatrix
パラメータ:
rowIndex - 行番号のリスト
column - 列番号
source - 代入する行列
関連項目:
FundamentalMatrix.setSubMatrix(org.mklab.nfc.matrix.IntMatrix, int, org.mklab.nfc.matrix.Matrix)

setSubMatrix

public void setSubMatrix(int row,
                         IntMatrix columnIndex,
                         Matrix source)
インタフェース FundamentalMatrix の記述:
row列目の成分のcolumnIndexで指定された行の成分に行列sourceを代入します。

定義:
インタフェース FundamentalMatrix 内の setSubMatrix
パラメータ:
row - 行番号
columnIndex - 列番号のリスト
source - 代入する行列
関連項目:
FundamentalMatrix.setSubMatrix(int, org.mklab.nfc.matrix.IntMatrix, org.mklab.nfc.matrix.Matrix)

setSubVector

public void setSubVector(int min,
                         int max,
                         int by,
                         Matrix source)
インタフェース FundamentalMatrix の記述:
成分を行毎に数え、minimumからmaximumまでの成分をby飛びに代入します。

定義:
インタフェース FundamentalMatrix 内の setSubVector
パラメータ:
min - 開始位置(1から始まります)
max - 終了位置(1から始まります)
by - 飛ばす数
source - 代入するベクトル
関連項目:
FundamentalMatrix.setSubVector(int, int, int, org.mklab.nfc.matrix.Matrix)