|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlinearalgebra.VectorSpace
public class VectorSpace
Field Summary | |
---|---|
private NumericMatrixInterface |
invL
|
private NumericMatrixInterface |
L
|
private NumericMatrixInterface |
m
|
private int[] |
m_basisColumns
|
private int[] |
m_basisRows
|
private int |
m_nDimension
|
private int |
m_nRank
|
private PermutationMatrix |
p
|
private NumericMatrixInterface |
U
|
Constructor Summary | |
---|---|
VectorSpace(NumericMatrixInterface m)
|
|
VectorSpace(NumericVectorInterface[] columns)
|
Method Summary | |
---|---|
boolean |
areIndependentColumns()
Returns true if all non-trivial combinations of all column vectors are non-zero. |
boolean |
areOrthogonalColumns()
|
int[] |
getBasisColumns()
Returns the columns for the column basis |
int[] |
getBasisRows()
|
int |
getColumnCount()
Returns the number of column vectors used to define this space. |
VectorSpaceInterface |
getColumnSpace()
A basis for a vector space is the set of column vectors such that all vectors are linearly independent and the set spans the space. |
VectorInterface |
getColumnVector(int colIndex)
Returns one of the column vectors of the space. |
int |
getDimension()
All bases of this space have the same number of vectors. |
private NumericMatrixInterface |
getInverseL()
|
private NumericMatrixInterface |
getL()
|
VectorSpaceInterface |
getLeftNullspace()
|
NumericMatrixInterface |
getMatrix()
|
private NumericMatrixInterface |
getMatrixColumns(NumericMatrixInterface m2,
int[] colList)
|
private NumericMatrixInterface |
getMatrixRows(NumericMatrixInterface m2,
int[] rowList)
|
VectorSpaceInterface |
getNullspace()
|
private PermutationMatrix |
getP()
|
int |
getRank()
Returns the number of non-zero pivots in U after the system A describing the vector space has been factored into A=LU. |
VectorSpaceInterface |
getRowSpace()
Returns the space spanned by all of the rows |
VectorSpaceInterface |
getSubspace(VectorInterface v)
|
private NumericMatrixInterface |
getU()
|
boolean |
hasExistence()
There is 1 to infinite solutions. |
boolean |
hasUniqueness()
There is 0 or 1 solution At most one solution. |
boolean |
isInconsistent()
For the system ax=b describing this space, if a=0 and b!=0 there are an zero number of solutions. |
boolean |
isMember(NumericVectorInterface v)
The space is defined by the system ax=b. |
boolean |
isNonsingular()
For the system ax=b that describes the space, return true if a!=0. |
boolean |
isOrthogonal(VectorSpaceInterface vs)
|
boolean |
isSubspace(VectorSpaceInterface v)
Returns true if all vectors in v are contained in this space. |
boolean |
isUnderdetermined()
For the system ax=b describing this space, if a=0 and b=0 there are an infinite number of solutions. |
boolean |
normalizeColumns()
|
boolean |
spansSpace(VectorSpaceInterface v)
Checks if all of the vectors in v can be described by a linear combination of the vectors in this space. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private NumericMatrixInterface m
private int[] m_basisColumns
private int[] m_basisRows
private int m_nRank
private int m_nDimension
private NumericMatrixInterface L
private NumericMatrixInterface U
private PermutationMatrix p
private NumericMatrixInterface invL
Constructor Detail |
---|
public VectorSpace(NumericMatrixInterface m)
public VectorSpace(NumericVectorInterface[] columns)
Method Detail |
---|
public NumericMatrixInterface getMatrix()
getMatrix
in interface VectorSpaceInterface
public boolean areIndependentColumns()
VectorSpaceInterface
areIndependentColumns
in interface VectorSpaceInterface
public boolean areOrthogonalColumns()
areOrthogonalColumns
in interface VectorSpaceInterface
public boolean normalizeColumns()
normalizeColumns
in interface VectorSpaceInterface
public int[] getBasisColumns()
VectorSpaceInterface
getBasisColumns
in interface VectorSpaceInterface
public int[] getBasisRows()
private NumericMatrixInterface getMatrixRows(NumericMatrixInterface m2, int[] rowList)
private NumericMatrixInterface getMatrixColumns(NumericMatrixInterface m2, int[] colList)
public int getColumnCount()
VectorSpaceInterface
getColumnCount
in interface VectorSpaceInterface
public VectorInterface getColumnVector(int colIndex)
VectorSpaceInterface
getColumnVector
in interface VectorSpaceInterface
public int getRank()
VectorSpaceInterface
getRank
in interface VectorSpaceInterface
public int getDimension()
VectorSpaceInterface
getDimension
in interface VectorSpaceInterface
public VectorSpaceInterface getSubspace(VectorInterface v)
getSubspace
in interface VectorSpaceInterface
public boolean isInconsistent()
VectorSpaceInterface
isInconsistent
in interface VectorSpaceInterface
public boolean isMember(NumericVectorInterface v)
VectorSpaceInterface
isMember
in interface VectorSpaceInterface
v
- The vector to check for membership.public boolean isNonsingular()
VectorSpaceInterface
isNonsingular
in interface VectorSpaceInterface
public boolean isSubspace(VectorSpaceInterface v)
VectorSpaceInterface
isSubspace
in interface VectorSpaceInterface
public boolean isUnderdetermined()
VectorSpaceInterface
isUnderdetermined
in interface VectorSpaceInterface
public boolean spansSpace(VectorSpaceInterface v)
VectorSpaceInterface
spansSpace
in interface VectorSpaceInterface
v
- A vector space that may span this space.
public final VectorSpaceInterface getRowSpace()
VectorSpaceInterface
getRowSpace
in interface VectorSpaceInterface
public VectorSpaceInterface getNullspace()
getNullspace
in interface VectorSpaceInterface
public VectorSpaceInterface getColumnSpace()
VectorSpaceInterface
getColumnSpace
in interface VectorSpaceInterface
public VectorSpaceInterface getLeftNullspace()
getLeftNullspace
in interface VectorSpaceInterface
public java.lang.String toString()
toString
in class java.lang.Object
private NumericMatrixInterface getU()
private PermutationMatrix getP()
private NumericMatrixInterface getL()
private NumericMatrixInterface getInverseL()
public boolean hasExistence()
VectorSpaceInterface
hasExistence
in interface VectorSpaceInterface
public boolean hasUniqueness()
VectorSpaceInterface
hasUniqueness
in interface VectorSpaceInterface
public boolean isOrthogonal(VectorSpaceInterface vs)
isOrthogonal
in interface VectorSpaceInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |