public final class OctaveSparseBoolean extends Object implements OctaveObject
OctaveBoolean| Modifier and Type | Field and Description |
|---|---|
private int[] |
columnIndexes |
private int |
columns |
private boolean[] |
data |
private int |
nnz |
private static int |
PRIME |
private int[] |
rowIndexes |
private int |
rows |
| Modifier | Constructor and Description |
|---|---|
|
OctaveSparseBoolean(int rows,
int columns,
int nnz) |
private |
OctaveSparseBoolean(int rows,
int columns,
int nnz,
int[] rowIndexes,
int[] columnIndexes,
boolean[] data) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int[] |
getColumnIndexes() |
int |
getColumns() |
boolean[] |
getData() |
int |
getNnz() |
int[] |
getRowIndexes() |
int |
getRows() |
int |
hashCode() |
void |
set(boolean value,
int row,
int column) |
OctaveSparseBoolean |
shallowCopy()
Make a shallow copy of this object.
|
private static final int PRIME
private final int rows
private final int columns
private int nnz
private final int[] rowIndexes
private final int[] columnIndexes
private final boolean[] data
private OctaveSparseBoolean(int rows,
int columns,
int nnz,
int[] rowIndexes,
int[] columnIndexes,
boolean[] data)
public OctaveSparseBoolean(int rows,
int columns,
int nnz)
rows - columns - nnz - public OctaveSparseBoolean shallowCopy()
OctaveObjectOctaveObject is returned from a getter,
e.g. on OctaveStruct or OctaveStruct,
a shallow copy is returned in order to follow the way octave behaves.
This method is used to make that copy.shallowCopy in interface OctaveObjectpublic void set(boolean value,
int row,
int column)
value - row - column - public int getRows()
public int getColumns()
public int getNnz()
public int[] getRowIndexes()
public int[] getColumnIndexes()
public boolean[] getData()
Copyright © 2006–2018 Simuline Organization (l2r). All rights reserved.