public abstract class AbstractMatrix<A,PL,HS,RS,X extends AbstractMatrix<A,PL,HS,RS,X>>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
cols
Column length.
|
long |
count |
int |
rows
Row length.
|
Modifier and Type | Method and Description |
---|---|
abstract X |
copy() |
abstract X |
copy(int fromRowIndex,
int toRowIndex) |
abstract X |
copy(int fromRowIndex,
int toRowIndex,
int fromColumnIndex,
int toColumnIndex) |
abstract PL |
flatten() |
boolean |
isEmpty() |
boolean |
isSameShape(X x) |
Stream<Stream<Pair.IntPair>> |
pointsC() |
Stream<Stream<Pair.IntPair>> |
pointsC(int fromColumnIndex,
int toColumnIndex) |
Stream<Pair.IntPair> |
pointsH() |
Stream<Pair.IntPair> |
pointsH(int rowIndex) |
Stream<Pair.IntPair> |
pointsH(int fromRowIndex,
int toRowIndex) |
Stream<Pair.IntPair> |
pointsLU2RD() |
Stream<Stream<Pair.IntPair>> |
pointsR() |
Stream<Stream<Pair.IntPair>> |
pointsR(int fromRowIndex,
int toRowIndex) |
Stream<Pair.IntPair> |
pointsRU2LD() |
Stream<Pair.IntPair> |
pointsV() |
Stream<Pair.IntPair> |
pointsV(int columnIndex) |
Stream<Pair.IntPair> |
pointsV(int fromColumnIndex,
int toColumnIndex) |
void |
println() |
abstract X |
repelem(int rowRepeats,
int colRepeats)
Repeat elements
rowRepeats times in row direction and colRepeats times in column direction. |
abstract X |
repmat(int rowRepeats,
int colRepeats)
Repeat this matrix
rowRepeats times in row direction and colRepeats times in column direction. |
X |
reshape(int newCols) |
abstract X |
reshape(int newRows,
int newCols) |
abstract X |
rotate180()
Rotate this matrix clockwise 180
|
abstract X |
rotate270()
Rotate this matrix clockwise 270
|
abstract X |
rotate90()
Rotate this matrix clockwise 90
|
abstract RS |
streamC() |
abstract RS |
streamC(int fromColumnIndex,
int toColumnIndex) |
abstract HS |
streamH() |
abstract HS |
streamH(int rowIndex) |
abstract HS |
streamH(int fromRowIndex,
int toRowIndex) |
abstract HS |
streamLU2RD() |
abstract RS |
streamR() |
abstract RS |
streamR(int fromRowIndex,
int toRowIndex) |
abstract HS |
streamRU2LD() |
abstract HS |
streamV() |
abstract HS |
streamV(int columnIndex) |
abstract HS |
streamV(int fromColumnIndex,
int toColumnIndex) |
abstract X |
transpose() |
public final int rows
public final int cols
public final long count
public void println()
public boolean isEmpty()
public abstract X copy()
public abstract X copy(int fromRowIndex, int toRowIndex)
fromRowIndex
- toRowIndex
- public abstract X copy(int fromRowIndex, int toRowIndex, int fromColumnIndex, int toColumnIndex)
fromRowIndex
- toRowIndex
- fromColumnIndex
- toColumnIndex
- public abstract X rotate90()
public abstract X rotate180()
public abstract X rotate270()
public abstract X transpose()
public X reshape(int newCols)
public abstract X reshape(int newRows, int newCols)
public boolean isSameShape(X x)
public abstract X repelem(int rowRepeats, int colRepeats)
rowRepeats
times in row direction and colRepeats
times in column direction.rowRepeats
- colRepeats
- public abstract X repmat(int rowRepeats, int colRepeats)
rowRepeats
times in row direction and colRepeats
times in column direction.rowRepeats
- colRepeats
- public abstract PL flatten()
public Stream<Pair.IntPair> pointsLU2RD()
public Stream<Pair.IntPair> pointsRU2LD()
public Stream<Pair.IntPair> pointsH()
public Stream<Pair.IntPair> pointsH(int rowIndex)
public Stream<Pair.IntPair> pointsH(int fromRowIndex, int toRowIndex)
public Stream<Pair.IntPair> pointsV()
public Stream<Pair.IntPair> pointsV(int columnIndex)
public Stream<Pair.IntPair> pointsV(int fromColumnIndex, int toColumnIndex)
public Stream<Stream<Pair.IntPair>> pointsR()
public Stream<Stream<Pair.IntPair>> pointsR(int fromRowIndex, int toRowIndex)
public Stream<Stream<Pair.IntPair>> pointsC()
public Stream<Stream<Pair.IntPair>> pointsC(int fromColumnIndex, int toColumnIndex)
public abstract HS streamLU2RD()
public abstract HS streamRU2LD()
public abstract HS streamH()
public abstract HS streamH(int rowIndex)
public abstract HS streamH(int fromRowIndex, int toRowIndex)
public abstract HS streamV()
public abstract HS streamV(int columnIndex)
public abstract HS streamV(int fromColumnIndex, int toColumnIndex)
public abstract RS streamR()
public abstract RS streamR(int fromRowIndex, int toRowIndex)
public abstract RS streamC()
public abstract RS streamC(int fromColumnIndex, int toColumnIndex)