|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.mklab.nfc.matrix.AbstractGrid<A>
org.mklab.nfc.matrix.AbstractArray<A>
org.mklab.nfc.matrix.BaseArray<A,E>
A - 配列の型E - 成分の型public class BaseArray<A extends BaseArray<A,E>,E extends ArrayElement<E>>
ArrayElementを成分とする配列を表わすクラスです。
| フィールドの概要 | |
|---|---|
protected E[][] |
elements
配列成分 |
| コンストラクタの概要 | |
|---|---|
BaseArray()
新しく生成された ArrayObjectオブジェクトを初期化します。 |
|
BaseArray(E[] elements)
elements |
|
BaseArray(E[][] elements)
elementsで与えられた成分をもつ配列を生成します。 |
|
BaseArray(int rowSize,
int columnSize)
新しく生成された ArrayObjectオブジェクトを初期化します。 |
|
BaseArray(int rowSize,
int columnSize,
E[][] elements)
elementsで与えられた成分をもつ
rowSize * columnSize の配列を生成します。 |
|
| メソッドの概要 | ||
|---|---|---|
BaseArray<?,?> |
appendDown(Array value)
下側に行列 valueを付けた行列を生成します。 |
|
BaseArray<?,?> |
appendRight(Array value)
右側に valueを付けた行列を生成します。 |
|
A |
clone()
Object#clone() |
|
BooleanMatrix |
compareElementWise(String operator,
Array opponent)
opponentと成分毎にoperatorで指定された演算子で比較した結果を
BooleanMatrixで返します。 |
|
BooleanMatrix |
compareElementWise(String operator,
BaseArrayOperator<?> opponent)
配列 opponentの各成分と成分毎にoperatorで指定された演算子で比較し,
それぞれの結果を成分とするBooleanMatrixを返します。 |
|
void |
copy(Array source)
originalの成分をコピーします。 |
|
void |
copy(BaseArrayOperator<?> source)
各成分に配列 source各成分をコピーします。 |
|
static
|
diagonal(E[] diagonalElements)
対角配列を生成します。 |
|
A |
diagonalToVector()
対角成分をからなる縦ベクトルを生成します。 |
|
boolean |
equals(Object opponent)
|
|
void |
exchangeColumn(int column1,
int column2)
column1列とcolumn2列を入れ替えます。 |
|
void |
exchangeRow(int row1,
int row2)
row1行とrow2行を入れ替えます。 |
|
E |
getElement(int index)
成分を行毎に数え indexで指定した成分を返します。 |
|
E |
getElement(int row,
int column)
row行column列の成分を返します。 |
|
protected E[][] |
getElements()
全ての成分の2次元配列を返します。 |
|
A |
getSubMatrix(int rowMin,
int rowMax,
int columnMin,
int columnMax)
部分行列A(rowMin:rowMax,columnMin:columnMax)を生成します。 |
|
A |
getSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex)
rowMin行からrowMax行目で、columnIndexで指定された列を成分とする部分行列を生成します。 |
|
A |
getSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax)
columnMin列からcolumnMax列まで、rowIndex
で指定された行を成分とする部分行列を生成します。 |
|
A |
getSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex)
rowIndexで指定された行、columnIndex
で指定された列を成分とする部分行列を生成します。 |
|
A |
getSubVector(IntMatrix index)
行毎に数え indexで指定した成分を成分とする部分行列を生成します。 |
|
int |
hashCode()
Override hashCode. |
|
boolean |
isZero()
零行列(全ての成分がデフォルトの初期値)であるか判定します。 |
|
void |
printElements(Writer output)
ライターに成分を出力します。 |
|
void |
printElements(Writer output,
int maxColumnSize)
ライターに成分を出力します。 |
|
void |
removeColumnVectors(int columnMin,
int columnMax)
columnMin列からcolumnMax列までを削除します。 |
|
void |
removeColumnVectors(IntMatrix columnIndex)
columnIndexで指定された列を削除します。 |
|
void |
removeRowVectors(int rowMin,
int rowMax)
rowMin行からrowMax行までを削除します。 |
|
void |
removeRowVectors(IntMatrix rowIndex)
rowIndexで指定された行を削除します。 |
|
A |
reshape(int newRowSize,
int newColumnSize)
サイズを newRowSize*newColumnSizeに変更した行列を生成します。 |
|
A |
resize(int newRowSize,
int newColumnSize)
newRowSize*newColumnSizeにサイズ変更します。 |
|
void |
setElement(int row,
int column,
ArrayElement<?> value)
指定した成分に valueを代入します。 |
|
protected void |
setSubMatrix(int rowTo,
int columnTo,
Array source,
int rowMin,
int rowMax,
int columnMin,
int columnMax)
rowTo行columnTo列を始点として、行列sourceの
rowMin行からrowMax行かつ
columnMin列からcolumnMax列までの部分行列を代入します。 |
|
void |
setSubMatrix(int rowTo,
int columnTo,
BaseArrayOperator<?> source,
int rowMin,
int rowMax,
int columnMin,
int columnMax)
配列 sourceのrowMin行からrowMax行、
columnMin列からcolumnMax列までの部分配列を、
rowTo行columnTo列を始点として代入します。 |
|
void |
setSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex,
Array source)
rowMin列目からrowMax列目の成分のcolumnIndex
で指定された行の成分に行列sourceを代入します。 |
|
void |
setSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex,
BaseArrayOperator<?> source)
rowMin列からrowMax列目の成分のcolumnIndex
で指定された行に、 配列sourceの成分を代入します。 |
|
void |
setSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax,
Array source)
rowIndexで指定した行のcolumnMin列からcolumnMax
列までの行列sourceを代入します。 |
|
void |
setSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax,
BaseArrayOperator<?> source)
rowIndexで指定した行のcolumnMin列からcolumnMax
列までの 配列sourceを代入します。 |
|
void |
setSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex,
Array source)
rowIndexで指定した行のcolumnIndexで指定した列に行列source
code>を代入します。 |
|
void |
setSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex,
BaseArrayOperator<?> source)
rowIndexで指定した行のcolumnIndexで指定した列に配列source
code>を代入します。 |
|
void |
setSubVector(IntMatrix index,
Array source)
indexで指定した各成分に行列sourceの成分に代入します。 |
|
void |
setSubVector(IntMatrix index,
BaseArrayOperator<?> source)
index |
|
A |
transpose()
転置行列(this T )を生成します。 |
|
A |
vectorToDiagonal()
縦ベクトルまたは横ベクトルの各成分を対角成分に持つ行列を生成します。 |
|
| クラス org.mklab.nfc.matrix.AbstractArray から継承されたメソッド |
|---|
flipLeftRight, flipUpDown, getColumnVector, getColumnVectors, getColumnVectors, getRowVector, getRowVectors, getRowVectors, getSubMatrix, getSubMatrix, getSubMatrix, getSubVector, getSubVector, rotateLeft, rotateUp, setColumnVector, setColumnVectors, setColumnVectors, setRowVector, setRowVectors, setRowVectors, setSubMatrix, setSubMatrix, setSubMatrix, setSubMatrix, setSubVector, setSubVector |
| クラス java.lang.Object から継承されたメソッド |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| インタフェース org.mklab.nfc.matrix.Array から継承されたメソッド |
|---|
flipLeftRight, flipUpDown, getColumnVector, getColumnVectors, getColumnVectors, getRowVector, getRowVectors, getRowVectors, getSubMatrix, getSubMatrix, getSubMatrix, getSubVector, getSubVector, rotateLeft, rotateUp, setColumnVector, setColumnVectors, setColumnVectors, setRowVector, setRowVectors, setRowVectors, setSubMatrix, setSubMatrix, setSubMatrix, setSubMatrix, setSubVector, setSubVector |
| インタフェース org.mklab.nfc.matrix.Grid から継承されたメソッド |
|---|
count, getColumnSize, getElementAlignment, getElementFormat, getPrintingElementsString, getPrintingString, getRowSize, hasSameColumnSize, hasSameRowSize, isEmpty, isSameSize, isSquare, length, print, print, print, removeColumnVector, removeRowVector, setElementAlignment, setElementFormat |
| フィールドの詳細 |
|---|
protected E extends ArrayElement<E>[][] elements
| コンストラクタの詳細 |
|---|
public BaseArray()
ArrayObjectオブジェクトを初期化します。
0*0の配列を生成します。
public BaseArray(int rowSize,
int columnSize)
ArrayObjectオブジェクトを初期化します。
rowSize - 行の数columnSize - 列の数public BaseArray(E[] elements)
elementsで与えられた行ベクトルを生成します。
- パラメータ:
elements - ベクトルの成分をもつ配列
public BaseArray(E[][] elements)
elementsで与えられた成分をもつ配列を生成します。
elements - 成分をもつ配列
public BaseArray(int rowSize,
int columnSize,
E[][] elements)
elementsで与えられた成分をもつ
rowSize * columnSize の配列を生成します。
rowSize - 行の数columnSize - 列の数elements - 成分をもつ配列| メソッドの詳細 |
|---|
public boolean equals(Object opponent)
Object 内の equalsObject.equals(java.lang.Object)public int hashCode()
AbstractGrid<A extends BaseArray<A,E>> 内の hashCodeObject.hashCode()public A clone()
AbstractGrid の記述:
Grid 内の cloneAbstractGrid<A extends BaseArray<A,E>> 内の cloneAbstractGrid.clone()
public void exchangeRow(int row1,
int row2)
Grid の記述:row1行とrow2行を入れ替えます。
Grid 内の exchangeRowrow1 - 行番号1row2 - 行番号1Grid.exchangeRow(int, int)
public void exchangeColumn(int column1,
int column2)
Grid の記述:column1列とcolumn2列を入れ替えます。
Grid 内の exchangeColumncolumn1 - 列番号1column2 - 列番号2Grid.exchangeColumn(int, int)public void copy(BaseArrayOperator<?> source)
BaseArrayOperator の記述:source各成分をコピーします。
BaseArrayOperator<E extends ArrayElement<E>> 内の copysource - コピー元の配列BaseArrayOperator.copy(org.mklab.nfc.matrix.BaseArrayOperator)public void copy(Array source)
Array の記述:originalの成分をコピーします。
Array 内の copysource - コピーする行列Array.copy(org.mklab.nfc.matrix.Array)public boolean isZero()
Grid の記述:
Grid 内の isZeroGrid.isZero()public BaseArray<?,?> appendDown(Array value)
Array の記述:valueを付けた行列を生成します。
Array 内の appendDownvalue - 付ける行列
valueをつけた行列Array.appendDown(org.mklab.nfc.matrix.Array)public BaseArray<?,?> appendRight(Array value)
Array の記述:valueを付けた行列を生成します。
Array 内の appendRightvalue - 付ける複素数
valueを付けた行列Array.appendRight(org.mklab.nfc.matrix.Array)public A transpose()
Array の記述:
Array 内の transposeArray.transpose()
public void removeRowVectors(int rowMin,
int rowMax)
Grid の記述:rowMin行からrowMax行までを削除します。
Grid 内の removeRowVectorsrowMin - 行の始まりrowMax - 行の終わりGrid.removeRowVectors(int, int)public void removeRowVectors(IntMatrix rowIndex)
Grid の記述:rowIndexで指定された行を削除します。
Grid 内の removeRowVectorsrowIndex - 行指定ベクトルGrid.removeRowVectors(org.mklab.nfc.matrix.IntMatrix)
public void removeColumnVectors(int columnMin,
int columnMax)
Grid の記述:columnMin列からcolumnMax列までを削除します。
Grid 内の removeColumnVectorscolumnMin - 列の始まりcolumnMax - 列の終わりGrid.removeColumnVectors(int, int)public void removeColumnVectors(IntMatrix columnIndex)
Grid の記述:columnIndexで指定された列を削除します。
Grid 内の removeColumnVectorscolumnIndex - 列指定ベクトルGrid.removeColumnVectors(org.mklab.nfc.matrix.IntMatrix)
public A getSubMatrix(int rowMin,
int rowMax,
int columnMin,
int columnMax)
Array の記述:
Array 内の getSubMatrixrowMin - 行の始まりrowMax - 行の終わりcolumnMin - 列の始まりcolumnMax - 列の終わり
Array.getSubMatrix(int, int, int, int)
public A getSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax)
Array の記述:columnMin列からcolumnMax列まで、rowIndex
で指定された行を成分とする部分行列を生成します。
Array 内の getSubMatrixrowIndex - 行指定ベクトルcolumnMin - 列のはじまりcolumnMax - 列の終わり
Array.getSubMatrix(org.mklab.nfc.matrix.IntMatrix, int,
int)
public A getSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex)
Array の記述:
Array 内の getSubMatrixrowMin - 行の始まりrowMax - 行の終わりcolumnIndex - 列指定ベクトル
Array.getSubMatrix(int, int,
org.mklab.nfc.matrix.IntMatrix)
public A getSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex)
Array の記述:rowIndexで指定された行、columnIndex
で指定された列を成分とする部分行列を生成します。
Array 内の getSubMatrixrowIndex - 行指定ベクトルcolumnIndex - 列指定ベクトル
Array.getSubMatrix(org.mklab.nfc.matrix.IntMatrix,
org.mklab.nfc.matrix.IntMatrix)public A getSubVector(IntMatrix index)
Array の記述:indexで指定した成分を成分とする部分行列を生成します。
Array 内の getSubVectorindex - 行番号を含むベクトル
Array.getSubVector(org.mklab.nfc.matrix.IntMatrix)public A diagonalToVector()
Array の記述:
Array 内の diagonalToVectorArray.diagonalToVector()public A vectorToDiagonal()
Array の記述:
Array 内の vectorToDiagonalArray.vectorToDiagonal()public static <E extends ArrayElement<E>> BaseArray<?,E> diagonal(E[] diagonalElements)
E - 型diagonalElements - 対角成分
public A reshape(int newRowSize,
int newColumnSize)
Array の記述:newRowSize*newColumnSizeに変更した行列を生成します。
成分は、行方向の成分順に並べ替えられます。 newRowSize *
newColumnSize個の成分を持たなければ、エラーとなります。
Array 内の reshapenewRowSize - 行の数newColumnSize - 列の数
Array.reshape(int, int)
public A resize(int newRowSize,
int newColumnSize)
Array の記述:newRowSize*newColumnSizeにサイズ変更します。
Array.reshape(int, int)とは異なり、成分位置の変更はせず, 自身より大きなサイズに変更する時は、
0が埋められ、自身より小さなサイズに変更する時は余分な成分は切り取られます。
Array 内の resizenewRowSize - 指定行の数newColumnSize - 指定列の数
Array.resize(int, int)
public BooleanMatrix compareElementWise(String operator,
BaseArrayOperator<?> opponent)
BaseArrayOperator の記述:opponentの各成分と成分毎にoperatorで指定された演算子で比較し,
それぞれの結果を成分とするBooleanMatrixを返します。
BaseArrayOperator<E extends ArrayElement<E>> 内の compareElementWiseoperator - 比較演算子(".==", ".!=")opponent - 比較対象
BaseArrayOperator.compareElementWise(java.lang.String,
org.mklab.nfc.matrix.BaseArrayOperator)
public BooleanMatrix compareElementWise(String operator,
Array opponent)
Array の記述:opponentと成分毎にoperatorで指定された演算子で比較した結果を
BooleanMatrixで返します。
Array 内の compareElementWiseoperator - 比較演算子(". <", ". <=", ".>", ".>=", ".==", ".!=")opponent - 比較対象
BooleanMatrixArray.compareElementWise(java.lang.String,
org.mklab.nfc.matrix.Array)
public void setSubMatrix(int rowTo,
int columnTo,
BaseArrayOperator<?> source,
int rowMin,
int rowMax,
int columnMin,
int columnMax)
BaseArrayOperator の記述:sourceのrowMin行からrowMax行、
columnMin列からcolumnMax列までの部分配列を、
rowTo行columnTo列を始点として代入します。
BaseArrayOperator<E extends ArrayElement<E>> 内の setSubMatrixrowTo - 代入開始行columnTo - 代入開始列source - 代入する配列rowMin - コピー開始行rowMax - コピー終了行columnMin - コピー開始列columnMax - コピー終了列BaseArrayOperator.setSubMatrix(int, int,
org.mklab.nfc.matrix.BaseArrayOperator, int, int, int, int)
protected void setSubMatrix(int rowTo,
int columnTo,
Array source,
int rowMin,
int rowMax,
int columnMin,
int columnMax)
AbstractArray の記述:rowTo行columnTo列を始点として、行列sourceの
rowMin行からrowMax行かつ
columnMin列からcolumnMax列までの部分行列を代入します。
AbstractArray<A extends BaseArray<A,E>> 内の setSubMatrixrowTo - 変更開始行columnTo - 変更開始列source - 行列rowMin - コピー開始行rowMax - コピー終了行columnMin - コピー開始列columnMax - コピー終了列AbstractArray.setSubMatrix(int, int,
org.mklab.nfc.matrix.Array, int, int, int, int)
public void setSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax,
BaseArrayOperator<?> source)
BaseArrayOperator の記述:rowIndexで指定した行のcolumnMin列からcolumnMax
列までの 配列sourceを代入します。
BaseArrayOperator<E extends ArrayElement<E>> 内の setSubMatrixrowIndex - 列指定columnMin - 行指定columnMax - 行指定source - 行列BaseArrayOperator.setSubMatrix(org.mklab.nfc.matrix.IntMatrix,
int, int, org.mklab.nfc.matrix.BaseArrayOperator)
public void setSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax,
Array source)
Array の記述:rowIndexで指定した行のcolumnMin列からcolumnMax
列までの行列sourceを代入します。
Array 内の setSubMatrixrowIndex - 行番号のリストcolumnMin - 列の始まりcolumnMax - 列の終わりsource - 代入する行列Array.setSubMatrix(org.mklab.nfc.matrix.IntMatrix, int,
int, org.mklab.nfc.matrix.Array)
public void setSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex,
BaseArrayOperator<?> source)
BaseArrayOperator の記述:rowMin列からrowMax列目の成分のcolumnIndex
で指定された行に、 配列sourceの成分を代入します。
BaseArrayOperator<E extends ArrayElement<E>> 内の setSubMatrixrowMin - 行指定rowMax - 行指定columnIndex - 列指定ベクトルsource - 代入する配列BaseArrayOperator.setSubMatrix(int, int,
org.mklab.nfc.matrix.IntMatrix, org.mklab.nfc.matrix.BaseArrayOperator)
public void setSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex,
Array source)
Array の記述:rowMin列目からrowMax列目の成分のcolumnIndex
で指定された行の成分に行列sourceを代入します。
Array 内の setSubMatrixrowMin - 行の始まりrowMax - 行の終わりcolumnIndex - 列番号のリストsource - 代入する行列Array.setSubMatrix(int, int,
org.mklab.nfc.matrix.IntMatrix, org.mklab.nfc.matrix.Array)
public void setSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex,
BaseArrayOperator<?> source)
BaseArrayOperator の記述:rowIndexで指定した行のcolumnIndexで指定した列に配列source
code>を代入します。
- 定義:
- インタフェース
BaseArrayOperator<E extends ArrayElement<E>> 内の setSubMatrix
- パラメータ:
rowIndex - 行指定columnIndex - 列指定source - 配列- 関連項目:
BaseArrayOperator.setSubMatrix(org.mklab.nfc.matrix.IntMatrix,
org.mklab.nfc.matrix.IntMatrix, org.mklab.nfc.matrix.BaseArrayOperator)
public void setSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex,
Array source)
Array の記述:rowIndexで指定した行のcolumnIndexで指定した列に行列source
code>を代入します。
- 定義:
- インタフェース
Array 内の setSubMatrix
- パラメータ:
rowIndex - 行番号のリストcolumnIndex - 列番号のリストsource - 代入する行列- 関連項目:
Array.setSubMatrix(org.mklab.nfc.matrix.IntMatrix,
org.mklab.nfc.matrix.IntMatrix, org.mklab.nfc.matrix.Array)
public void setSubVector(IntMatrix index,
BaseArrayOperator<?> source)
BaseArrayOperator の記述:indexで指定した各成分に配列sourceの成分を代入します。
- 定義:
- インタフェース
BaseArrayOperator<E extends ArrayElement<E>> 内の setSubVector
- パラメータ:
index - 成分指定source - 代入する部分ベクトル- 関連項目:
BaseArrayOperator.setSubVector(org.mklab.nfc.matrix.IntMatrix,
org.mklab.nfc.matrix.BaseArrayOperator)
public void setSubVector(IntMatrix index,
Array source)
Array の記述:indexで指定した各成分に行列sourceの成分に代入します。
Array 内の setSubVectorindex - 成分の番号のリストsource - 代入する行列Array.setSubVector(org.mklab.nfc.matrix.IntMatrix,
org.mklab.nfc.matrix.Array)
public E getElement(int row,
int column)
BaseArrayOperator の記述:row行column列の成分を返します。
BaseArrayOperator<E extends ArrayElement<E>> 内の getElementrow - 行番号column - 列番号
BaseArrayOperator.getElement(int, int)public E getElement(int index)
BaseArrayOperator の記述:indexで指定した成分を返します。
BaseArrayOperator<E extends ArrayElement<E>> 内の getElementindex - 成分の番号
BaseArrayOperator.getElement(int)protected E[][] getElements()
public void setElement(int row,
int column,
ArrayElement<?> value)
BaseArrayOperator の記述:valueを代入します。
BaseArrayOperator<E extends ArrayElement<E>> 内の setElementrow - 行番号column - 列番号value - 代入する値BaseArrayOperator.setElement(int, int,
org.mklab.nfc.matrix.ArrayElement)public void printElements(Writer output)
Grid の記述:
Grid 内の printElementsoutput - ライターGrid.printElements(java.io.Writer)
public void printElements(Writer output,
int maxColumnSize)
Grid の記述:
Grid 内の printElementsoutput - ライターmaxColumnSize - 1行の出力する列の最大数Grid.printElements(java.io.Writer, int)
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||