|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object NonNegativeVector
This class implements nonnegative real vectors.
Constructor Summary | |
NonNegativeVector(int n)
Creates an n vector with float
coordinates. |
Method Summary | |
float |
scalarProduct(NonNegativeVector y)
Computes the scalar product of the vector with the vector y . |
NonNegativeVector |
scale(float r)
Divides all coordinates of the vector by the factor r . |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NonNegativeVector(int n)
n
vector with float
coordinates.
Method Detail |
public float scalarProduct(NonNegativeVector y)
y
.
public NonNegativeVector scale(float r)
r
.
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |