|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectArrayMat<T>
T
- public class ArrayMat<T>
ייצוג מטריצה בעזרת מערך חד מימדי לכל מקום במטריצה מתבצעת המרה למקום במערך החד מימדי
Constructor Summary | |
---|---|
ArrayMat(int row,
int col)
פעולה בונה מקבלת את מימדי המטריצה - הטבלה |
Method Summary | |
---|---|
T |
getMatrixItem(int row,
int column)
הפעולה מחזירה את הערך הנמצא במטריצה הנוכחית במקום המוגדר על ידי הפרמטרים |
int |
getNumCols()
פעולה המחזירה את מספר העמודות במטריצה הנוכחית |
int |
getNumRows()
הפעולה מחזירה את מספר השורות במטריצה הנוכחית |
void |
printCol(int col)
הפעולה מדפיסה את העמודה במטריצה הנוכחית |
void |
printRow(int row)
פעולה המדפיסה את השורה במטריצה הנוכחית |
void |
setMatrixItem(int row,
int column,
T value)
פעולה המעדכנת את הערך המתקבלת במקום המתאים לפי מספר השורה והעמודה הנחה : המקום חוקי |
java.lang.String |
toString()
הפעולה מחזירה את נתוני המטריצה הנוכחית |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArrayMat(int row, int col)
row
- column
- Method Detail |
---|
public int getNumRows()
public int getNumCols()
public void setMatrixItem(int row, int column, T value)
row
- column
- value
- public T getMatrixItem(int row, int column)
row
- column
-
public void printRow(int row)
row
- public void printCol(int col)
col
- public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |