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

Variable Index

 o n
 o shape

Constructor Index

 o RnSpc()
 o RnSpc(int)
Constructs a one-dimensional RnSpc (i.e.
 o RnSpc(int[])
 o RnSpc(RnSpc)
copy constructor

Method Index

 o 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.
 o equals(Object)
Compares two Objects for equality.
 o getShape()
 o hasMember(Vector)
 o newMember()
 o size()
 o toString()
Returns a string representation of the object.
 o vecIndex(int[])

Variables

 o shape
 protected int shape[]
 o n
 protected int n

Constructors

 o RnSpc
 protected RnSpc()
 o RnSpc
 protected RnSpc(RnSpc src)
copy constructor

 o RnSpc
 public RnSpc(int shape[])
 o RnSpc
 public RnSpc(int n1)
Constructs a one-dimensional RnSpc (i.e. a space of column vectors)

Methods

 o 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.

 o equals
 public boolean equals(Object obj2)
Compares two Objects for equality.

Overrides:
equals in class Object
 o getShape
 public int[] getShape()
 o 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).
 o vecIndex
 public int vecIndex(int index[])
Returns:
The (1D) integer index for an array which corresponds to index
 o newMember
 public Vector newMember()
 o hasMember
 public boolean hasMember(Vector v)
 o 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