public class SpreadsheetEntryMatrix extends GenMatrix implements Displayable
Modifier and Type | Field and Description |
---|---|
Counter |
Counter |
EmptyValue, setget, Size
Constructor and Description |
---|
SpreadsheetEntryMatrix() |
SpreadsheetEntryMatrix(DefaultSpreadsheetTable partab,
DefaultSpreadsheetPanel parpan,
int Nelements) |
SpreadsheetEntryMatrix(DefaultSpreadsheetTable partab,
DefaultSpreadsheetPanel parpan,
int[] siz) |
SpreadsheetEntryMatrix(DefaultSpreadsheetTable partab,
DefaultSpreadsheetPanel parpan,
MatrixSetterGetter sg,
int Nelements)
This construction creates an Nx1 matrix.
|
SpreadsheetEntryMatrix(DefaultSpreadsheetTable partab,
DefaultSpreadsheetPanel parpan,
MatrixSetterGetter sg,
int[] Siz)
This construction creates a matrix of certain size.
|
SpreadsheetEntryMatrix(int[] siz) |
SpreadsheetEntryMatrix(MatrixSetterGetter sg) |
Modifier and Type | Method and Description |
---|---|
void |
addEntryListener(DefaultSpreadsheetEntry ent) |
void |
addEntryListener(Subscript[] subscripts,
DefaultSpreadsheetEntry ent) |
SpreadsheetEntryMatrix |
concat(SpreadsheetEntryMatrix B,
int dim) |
SpreadsheetEntryMatrix |
copy()
Make a deep copy of the matrix.
|
SpreadsheetEntry |
getEntryAt(int k)
Return the SpreadsheetEntry at a particular index.
|
int |
getSize(int dim) |
SpreadsheetEntryMatrix |
getSubMatrix(Subscript[] subscripts)
Get a matrix of values by sub-indexing into an existing matrix.
|
DblMatrix |
getValuesAsDblMatrix() |
java.lang.String[][] |
getValuesAsStringMatrix() |
static java.lang.String[][] |
getValuesAsStringMatrix(DblMatrix x) |
boolean |
isEqual(GenMatrix X) |
static boolean |
isEqualSize(SpreadsheetEntryMatrix X,
SpreadsheetEntryMatrix Y) |
static DblMatrix |
isNaN(SpreadsheetEntryMatrix X)
Boolean isNaN
|
boolean |
isQuiet() |
void |
rmhighsingletons()
If an array has dimensions greater than 2 remove trailing singleton dimensions.
|
void |
setEntryAt(SpreadsheetEntry VALUE,
int k)
Set the SpreadsheetEntry at a particular index.
|
void |
setQuiet(boolean x) |
void |
setSubMatrix(SpreadsheetEntryMatrix INPUT,
Subscript[] subscripts)
Set a matrix of values within an existing matrix.
|
void |
show() |
void |
show(java.lang.String s) |
int |
subIntoIndex(int[] subindex)
Converts a single vector of subscripts into a particular index.
|
static int |
subIntoIndex(int[] subindex,
int[] SIZE)
Converts a single vector of subscripts into a particular index.
|
int[] |
subscriptToIndex(Subscript[] SUB)
Convert a Subscript[] range into an array of indices.
|
static int[] |
subscriptToIndex(Subscript[] SUB,
int[] SIZE)
Convert a Subscript[] range into an array of indices.
|
java.lang.String |
toString() |
SpreadsheetEntryMatrix |
transpose()
Transpose a 2D matrix.
|
public Counter Counter
public SpreadsheetEntryMatrix(int[] siz)
public SpreadsheetEntryMatrix(DefaultSpreadsheetTable partab, DefaultSpreadsheetPanel parpan, int[] siz)
public SpreadsheetEntryMatrix(DefaultSpreadsheetTable partab, DefaultSpreadsheetPanel parpan, MatrixSetterGetter sg, int Nelements)
public SpreadsheetEntryMatrix(MatrixSetterGetter sg)
public SpreadsheetEntryMatrix()
public SpreadsheetEntryMatrix(DefaultSpreadsheetTable partab, DefaultSpreadsheetPanel parpan, int Nelements)
public SpreadsheetEntryMatrix(DefaultSpreadsheetTable partab, DefaultSpreadsheetPanel parpan, MatrixSetterGetter sg, int[] Siz)
public void setQuiet(boolean x)
public boolean isQuiet()
public SpreadsheetEntryMatrix concat(SpreadsheetEntryMatrix B, int dim)
public int getSize(int dim)
public SpreadsheetEntryMatrix copy()
public void setSubMatrix(SpreadsheetEntryMatrix INPUT, Subscript[] subscripts)
public SpreadsheetEntryMatrix transpose()
public void addEntryListener(Subscript[] subscripts, DefaultSpreadsheetEntry ent)
public SpreadsheetEntryMatrix getSubMatrix(Subscript[] subscripts)
public static int subIntoIndex(int[] subindex, int[] SIZE)
public int subIntoIndex(int[] subindex)
public void rmhighsingletons()
public static boolean isEqualSize(SpreadsheetEntryMatrix X, SpreadsheetEntryMatrix Y)
public void setEntryAt(SpreadsheetEntry VALUE, int k)
public DblMatrix getValuesAsDblMatrix()
public java.lang.String[][] getValuesAsStringMatrix()
public static java.lang.String[][] getValuesAsStringMatrix(DblMatrix x)
public void addEntryListener(DefaultSpreadsheetEntry ent)
public SpreadsheetEntry getEntryAt(int k)
public java.lang.String toString()
toString
in class java.lang.Object
public void show()
show
in interface Displayable
public void show(java.lang.String s)
show
in interface Displayable
public int[] subscriptToIndex(Subscript[] SUB)
public static DblMatrix isNaN(SpreadsheetEntryMatrix X)
public static int[] subscriptToIndex(Subscript[] SUB, int[] SIZE)
Copyright © 2011, 2013. Daniel P. Dougherty