org.apache.commons.math.linear
Class ArrayFieldVectorTest.FieldVectorTestImpl<T extends org.apache.commons.math.FieldElement<T>>
java.lang.Object
org.apache.commons.math.linear.ArrayFieldVectorTest.FieldVectorTestImpl<T>
- All Implemented Interfaces:
- Serializable, org.apache.commons.math.linear.FieldVector<T>
- Enclosing class:
- ArrayFieldVectorTest
public static class ArrayFieldVectorTest.FieldVectorTestImpl<T extends org.apache.commons.math.FieldElement<T>>
- extends Object
- implements org.apache.commons.math.linear.FieldVector<T>, Serializable
- See Also:
- Serialized Form
Field Summary |
protected T[] |
data
Entries of the vector. |
Method Summary |
org.apache.commons.math.linear.FieldVector<T> |
add(org.apache.commons.math.linear.FieldVector<T> v)
|
org.apache.commons.math.linear.FieldVector<T> |
add(T[] v)
|
org.apache.commons.math.linear.FieldVector<T> |
append(org.apache.commons.math.linear.FieldVector<T> v)
|
org.apache.commons.math.linear.FieldVector<T> |
append(T d)
|
org.apache.commons.math.linear.FieldVector<T> |
append(T[] a)
|
org.apache.commons.math.linear.FieldVector<T> |
copy()
|
T |
dotProduct(org.apache.commons.math.linear.FieldVector<T> v)
|
T |
dotProduct(T[] v)
|
org.apache.commons.math.linear.FieldVector<T> |
ebeDivide(org.apache.commons.math.linear.FieldVector<T> v)
|
org.apache.commons.math.linear.FieldVector<T> |
ebeDivide(T[] v)
|
org.apache.commons.math.linear.FieldVector<T> |
ebeMultiply(org.apache.commons.math.linear.FieldVector<T> v)
|
org.apache.commons.math.linear.FieldVector<T> |
ebeMultiply(T[] v)
|
T[] |
getData()
|
int |
getDimension()
|
T |
getEntry(int index)
|
org.apache.commons.math.Field<T> |
getField()
|
org.apache.commons.math.linear.FieldVector<T> |
getSubVector(int index,
int n)
|
org.apache.commons.math.linear.FieldVector<T> |
mapAdd(T d)
|
org.apache.commons.math.linear.FieldVector<T> |
mapAddToSelf(T d)
|
org.apache.commons.math.linear.FieldVector<T> |
mapDivide(T d)
|
org.apache.commons.math.linear.FieldVector<T> |
mapDivideToSelf(T d)
|
org.apache.commons.math.linear.FieldVector<T> |
mapInv()
|
org.apache.commons.math.linear.FieldVector<T> |
mapInvToSelf()
|
org.apache.commons.math.linear.FieldVector<T> |
mapMultiply(T d)
|
org.apache.commons.math.linear.FieldVector<T> |
mapMultiplyToSelf(T d)
|
org.apache.commons.math.linear.FieldVector<T> |
mapSubtract(T d)
|
org.apache.commons.math.linear.FieldVector<T> |
mapSubtractToSelf(T d)
|
org.apache.commons.math.linear.FieldMatrix<T> |
outerProduct(org.apache.commons.math.linear.FieldVector<T> v)
|
org.apache.commons.math.linear.FieldMatrix<T> |
outerProduct(T[] v)
|
org.apache.commons.math.linear.FieldVector<T> |
projection(org.apache.commons.math.linear.FieldVector<T> v)
|
org.apache.commons.math.linear.FieldVector<T> |
projection(T[] v)
|
void |
set(T value)
|
void |
setEntry(int index,
T value)
|
void |
setSubVector(int index,
org.apache.commons.math.linear.FieldVector<T> v)
|
void |
setSubVector(int index,
T[] v)
|
org.apache.commons.math.linear.FieldVector<T> |
subtract(org.apache.commons.math.linear.FieldVector<T> v)
|
org.apache.commons.math.linear.FieldVector<T> |
subtract(T[] v)
|
T[] |
toArray()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
data
protected T extends org.apache.commons.math.FieldElement<T>[] data
- Entries of the vector.
ArrayFieldVectorTest.FieldVectorTestImpl
public ArrayFieldVectorTest.FieldVectorTestImpl(T[] d)
getField
public org.apache.commons.math.Field<T> getField()
- Specified by:
getField
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
copy
public org.apache.commons.math.linear.FieldVector<T> copy()
- Specified by:
copy
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
add
public org.apache.commons.math.linear.FieldVector<T> add(org.apache.commons.math.linear.FieldVector<T> v)
throws IllegalArgumentException
- Specified by:
add
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
- Throws:
IllegalArgumentException
add
public org.apache.commons.math.linear.FieldVector<T> add(T[] v)
throws IllegalArgumentException
- Specified by:
add
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
- Throws:
IllegalArgumentException
subtract
public org.apache.commons.math.linear.FieldVector<T> subtract(org.apache.commons.math.linear.FieldVector<T> v)
throws IllegalArgumentException
- Specified by:
subtract
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
- Throws:
IllegalArgumentException
subtract
public org.apache.commons.math.linear.FieldVector<T> subtract(T[] v)
throws IllegalArgumentException
- Specified by:
subtract
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
- Throws:
IllegalArgumentException
mapAdd
public org.apache.commons.math.linear.FieldVector<T> mapAdd(T d)
- Specified by:
mapAdd
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
mapAddToSelf
public org.apache.commons.math.linear.FieldVector<T> mapAddToSelf(T d)
- Specified by:
mapAddToSelf
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
mapSubtract
public org.apache.commons.math.linear.FieldVector<T> mapSubtract(T d)
- Specified by:
mapSubtract
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
mapSubtractToSelf
public org.apache.commons.math.linear.FieldVector<T> mapSubtractToSelf(T d)
- Specified by:
mapSubtractToSelf
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
mapMultiply
public org.apache.commons.math.linear.FieldVector<T> mapMultiply(T d)
- Specified by:
mapMultiply
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
mapMultiplyToSelf
public org.apache.commons.math.linear.FieldVector<T> mapMultiplyToSelf(T d)
- Specified by:
mapMultiplyToSelf
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
mapDivide
public org.apache.commons.math.linear.FieldVector<T> mapDivide(T d)
- Specified by:
mapDivide
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
mapDivideToSelf
public org.apache.commons.math.linear.FieldVector<T> mapDivideToSelf(T d)
- Specified by:
mapDivideToSelf
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
mapInv
public org.apache.commons.math.linear.FieldVector<T> mapInv()
- Specified by:
mapInv
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
mapInvToSelf
public org.apache.commons.math.linear.FieldVector<T> mapInvToSelf()
- Specified by:
mapInvToSelf
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
ebeMultiply
public org.apache.commons.math.linear.FieldVector<T> ebeMultiply(org.apache.commons.math.linear.FieldVector<T> v)
throws IllegalArgumentException
- Specified by:
ebeMultiply
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
- Throws:
IllegalArgumentException
ebeMultiply
public org.apache.commons.math.linear.FieldVector<T> ebeMultiply(T[] v)
throws IllegalArgumentException
- Specified by:
ebeMultiply
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
- Throws:
IllegalArgumentException
ebeDivide
public org.apache.commons.math.linear.FieldVector<T> ebeDivide(org.apache.commons.math.linear.FieldVector<T> v)
throws IllegalArgumentException
- Specified by:
ebeDivide
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
- Throws:
IllegalArgumentException
ebeDivide
public org.apache.commons.math.linear.FieldVector<T> ebeDivide(T[] v)
throws IllegalArgumentException
- Specified by:
ebeDivide
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
- Throws:
IllegalArgumentException
getData
public T[] getData()
- Specified by:
getData
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
dotProduct
public T dotProduct(org.apache.commons.math.linear.FieldVector<T> v)
throws IllegalArgumentException
- Specified by:
dotProduct
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
- Throws:
IllegalArgumentException
dotProduct
public T dotProduct(T[] v)
throws IllegalArgumentException
- Specified by:
dotProduct
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
- Throws:
IllegalArgumentException
projection
public org.apache.commons.math.linear.FieldVector<T> projection(org.apache.commons.math.linear.FieldVector<T> v)
throws IllegalArgumentException
- Specified by:
projection
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
- Throws:
IllegalArgumentException
projection
public org.apache.commons.math.linear.FieldVector<T> projection(T[] v)
throws IllegalArgumentException
- Specified by:
projection
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
- Throws:
IllegalArgumentException
outerProduct
public org.apache.commons.math.linear.FieldMatrix<T> outerProduct(org.apache.commons.math.linear.FieldVector<T> v)
throws IllegalArgumentException
- Specified by:
outerProduct
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
- Throws:
IllegalArgumentException
outerProduct
public org.apache.commons.math.linear.FieldMatrix<T> outerProduct(T[] v)
throws IllegalArgumentException
- Specified by:
outerProduct
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
- Throws:
IllegalArgumentException
getEntry
public T getEntry(int index)
throws org.apache.commons.math.linear.MatrixIndexException
- Specified by:
getEntry
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
- Throws:
org.apache.commons.math.linear.MatrixIndexException
getDimension
public int getDimension()
- Specified by:
getDimension
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
append
public org.apache.commons.math.linear.FieldVector<T> append(org.apache.commons.math.linear.FieldVector<T> v)
- Specified by:
append
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
append
public org.apache.commons.math.linear.FieldVector<T> append(T d)
- Specified by:
append
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
append
public org.apache.commons.math.linear.FieldVector<T> append(T[] a)
- Specified by:
append
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
getSubVector
public org.apache.commons.math.linear.FieldVector<T> getSubVector(int index,
int n)
throws org.apache.commons.math.linear.MatrixIndexException
- Specified by:
getSubVector
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
- Throws:
org.apache.commons.math.linear.MatrixIndexException
setEntry
public void setEntry(int index,
T value)
throws org.apache.commons.math.linear.MatrixIndexException
- Specified by:
setEntry
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
- Throws:
org.apache.commons.math.linear.MatrixIndexException
setSubVector
public void setSubVector(int index,
org.apache.commons.math.linear.FieldVector<T> v)
throws org.apache.commons.math.linear.MatrixIndexException
- Specified by:
setSubVector
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
- Throws:
org.apache.commons.math.linear.MatrixIndexException
setSubVector
public void setSubVector(int index,
T[] v)
throws org.apache.commons.math.linear.MatrixIndexException
- Specified by:
setSubVector
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
- Throws:
org.apache.commons.math.linear.MatrixIndexException
set
public void set(T value)
- Specified by:
set
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
toArray
public T[] toArray()
- Specified by:
toArray
in interface org.apache.commons.math.linear.FieldVector<T extends org.apache.commons.math.FieldElement<T>>
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.