|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.vector.doubles.IsVector
public class IsVector
This class collects the utility functions to validate input arguments for vector operations.
| Nested Class Summary | |
|---|---|
static class |
IsVector.SizeMismatch
This exception should be thrown when a vector operation is performed on two vectors with different sizes. |
static class |
IsVector.VectorAccessException
This exception should be thrown if any invalid access to a Vector instance is detected. |
| Method Summary | |
|---|---|
static void |
equalSize(Vector v1,
Vector v2)
Check if the input vectors are of the same size. |
static void |
validIndex(Vector v,
int index)
Check if the input index is a valid index Vector v. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void equalSize(Vector v1,
Vector v2)
v1 - a vectorv2 - a vector
IsVector.SizeMismatch - if sizes do not match
public static void validIndex(Vector v,
int index)
index is a valid index Vector v.
v - a vectorindex - the input index
IsVector.VectorAccessException - if the index is invalid
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||