All Packages Class Hierarchy This Package Previous Next Index
Class juice.example.RnSpc
java.lang.Object
|
+----juice.example.RnSpc
- public class RnSpc
- extends Object
- implements Space
An RnSpc is a vector space of arrays (of some dimension) of real numbers.
- See Also:
- RnVec
-
n
-
-
shape
-
-
RnSpc()
-
-
RnSpc(int)
- Constructs a one-dimensional RnSpc (i.e.
-
RnSpc(int[])
-
-
RnSpc(RnSpc)
- copy constructor
-
copy()
- Constructs an RnSpc which is a subspace of superSpace.
Any dimension, i, in which subShape[i] == superSpace.shape[i]
is included as a dimension in the new RnSpc.
All other dimensions are collapsed.
-
equals(Object)
- Compares two Objects for equality.
-
getShape()
-
-
hasMember(Vector)
-
-
newMember()
-
-
size()
-
-
toString()
- Returns a string representation of the object.
-
vecIndex(int[])
-
shape
protected int shape[]
n
protected int n
RnSpc
protected RnSpc()
RnSpc
protected RnSpc(RnSpc src)
- copy constructor
RnSpc
public RnSpc(int shape[])
RnSpc
public RnSpc(int n1)
- Constructs a one-dimensional RnSpc (i.e. a space of column vectors)
copy
public JamObject copy()
- Constructs an RnSpc which is a subspace of superSpace.
Any dimension, i, in which subShape[i] == superSpace.shape[i]
is included as a dimension in the new RnSpc.
All other dimensions are collapsed.
equals
public boolean equals(Object obj2)
- Compares two Objects for equality.
- Overrides:
- equals in class Object
getShape
public int[] getShape()
size
public int size()
- Returns:
- The total number of components in a vector member of this space.
(That is the basis-dimension of this space).
vecIndex
public int vecIndex(int index[])
- Returns:
- The (1D) integer index for an array which corresponds to index
newMember
public Vector newMember()
hasMember
public boolean hasMember(Vector v)
toString
public String toString()
- Returns a string representation of the object.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index