public class SuperByteMatrixSingle extends Object implements SuperByteMatrix
Modifier and Type | Method and Description |
---|---|
void |
arraycopy(int row,
byte[] src,
int startColumn)
Sets values at given row and starting column.
|
byte |
get(int row,
int column)
Gets value at given row and column.
|
byte[] |
getAllColumns(int row)
Get all values for given row.
|
byte[] |
getAllRows(int column)
Get all values for give column.
|
byte[] |
getColumnRange(int row,
int start,
int end)
Get values for given row from start column (inclusive) to end column
(exclusive).
|
int |
getNumColumns()
Return number of columns.
|
int |
getNumRows()
Return number of rows.
|
boolean |
isColumnInnerLoop()
Returns true if the matrix stored for better performance when column loop
inside row loop.
|
void |
reorderColumns(int[] newIndices)
Reorders columns of this matrix based on the given indices.
|
void |
reorderRows(int[] newIndices)
Reorders rows of this matrix based on the given indices.
|
void |
set(int row,
int column,
byte value)
Sets value at given row and column.
|
void |
setAll(byte value)
Sets value for all elements.
|
void |
setHetsTo(byte value)
Changes all heterozygous values to give value.
|
Spliterator<Byte> |
spliterator() |
Stream<Byte> |
stream()
Returns a Stream over the bytes of this matrix.
|
Stream<Byte> |
stream(int row) |
void |
transpose() |
public void set(int row, int column, byte value)
SuperByteMatrix
set
in interface SuperByteMatrix
row
- rowcolumn
- columnvalue
- valuepublic void arraycopy(int row, byte[] src, int startColumn)
SuperByteMatrix
arraycopy
in interface SuperByteMatrix
row
- rowsrc
- valuesstartColumn
- start columnpublic void setAll(byte value)
SuperByteMatrix
setAll
in interface SuperByteMatrix
value
- valuepublic byte get(int row, int column)
SuperByteMatrix
get
in interface SuperByteMatrix
row
- rowcolumn
- columnpublic byte[] getAllColumns(int row)
SuperByteMatrix
getAllColumns
in interface SuperByteMatrix
row
- rowpublic byte[] getColumnRange(int row, int start, int end)
SuperByteMatrix
getColumnRange
in interface SuperByteMatrix
row
- rowstart
- startend
- endpublic byte[] getAllRows(int column)
SuperByteMatrix
getAllRows
in interface SuperByteMatrix
column
- columnpublic int getNumRows()
SuperByteMatrix
getNumRows
in interface SuperByteMatrix
public int getNumColumns()
SuperByteMatrix
getNumColumns
in interface SuperByteMatrix
public boolean isColumnInnerLoop()
SuperByteMatrix
isColumnInnerLoop
in interface SuperByteMatrix
public void transpose()
public void reorderRows(int[] newIndices)
SuperByteMatrix
reorderRows
in interface SuperByteMatrix
newIndices
- new indices.public void reorderColumns(int[] newIndices)
SuperByteMatrix
reorderColumns
in interface SuperByteMatrix
newIndices
- new indices.public void setHetsTo(byte value)
SuperByteMatrix
setHetsTo
in interface SuperByteMatrix
value
- valuepublic Stream<Byte> stream()
SuperByteMatrix
stream
in interface SuperByteMatrix
public Stream<Byte> stream(int row)
stream
in interface SuperByteMatrix
public Spliterator<Byte> spliterator()
Copyright © 2018. All rights reserved.