template
class
LinearMap<class,int>
(Return to index)
Linear map with values of type T in N variables.
The copy constructor, destructor, and assignment operator generated
by the compiler do the correct thing, and are not defined for speed.
Type: |
Instantiable |
Include file: |
./FixedAlgebra/LinearMap.hh |
Synopsis (including inherited members):
- Public members:
-
LinearMap
()
;
-
LinearMap
(const FVps<T,N>&)
;
-
LinearMap
(const FMatrix<T,N,N>&)
;
-
LinearMap
(const FVector<T,N>&)
;
-
const LinearFun<T,N>& getComponent
(int)const
;
-
void setComponent
(int,const LinearFun<T,N>&)
;
-
LinearFun<T,N>& operator[]
(int)
;
-
const LinearFun<T,N>& operator[]
(int)const
;
-
LinearMap operator+
()const
;
-
LinearMap operator-
()const
;
-
LinearMap& operator*=
(const LinearFun<T,N>&)
;
-
LinearMap& operator/=
(const LinearFun<T,N>&)
;
-
LinearMap& operator*=
(const T&)
;
-
LinearMap& operator/=
(const T&)
;
-
LinearMap& operator+=
(const LinearMap&)
;
-
LinearMap& operator-=
(const LinearMap&)
;
-
LinearMap& operator+=
(const FVector<T,N>&)
;
-
LinearMap& operator-=
(const FVector<T,N>&)
;
-
std::istream& get
(std::istream&)
;
-
std::ostream& put
(std::ostream&)const
;
-
LinearMap inverse
()const
;
-
void identity
()
;
-
FVector<T,N> constantTerm
(const FVector<T,N>&)const
;
-
FVector<T,N> constantTerm
()const
;
-
FMatrix<T,N,N> linearTerms
()const
;
-
LinearMap substitute
(const FMatrix<T,N,N>&)const
;
-
LinearMap substitute
(const LinearMap&)const
;
-
LinearMap substituteInto
(const FMatrix<T,N,N>&)const
;
- Protected Members:
-
LinearFun<T,N> data
;
Documentation:
- Public members:
-
LinearMap
()
;
- Default constructor.
Construct identity map.
-
LinearMap
(const FVps<T,N>&)
;
- Convert from general map.
-
LinearMap
(const FMatrix<T,N,N>&)
;
- Convert from matrix.
The constant part is set to zero.
The linear part is filled from M.
-
LinearMap
(const FVector<T,N>&)
;
- Convert from vector.
The constant part is filled from V.
The linear part is set to the identity.
-
FVector<T,N> constantTerm
(const FVector<T,N>&)const
;
- Evaluate map at point P.
-
FVector<T,N> constantTerm
()const
;
- Evaluate map at origin.
/ This is equivalent to extracting constant part.
-
std::istream& get
(std::istream&)
;
- Get a LinearMap from stream is.
-
const LinearFun<T,N>& getComponent
(int)const
;
- Get component.
Return value of component n.
Throw RangeError, if n is out of range.
-
void identity
()
;
- Set to identity.
-
LinearMap inverse
()const
;
- Inverse.
-
FMatrix<T,N,N> linearTerms
()const
;
- Extract linear terms at origin.
This is equivalent to extracting linear part.
-
LinearMap& operator*=
(const LinearFun<T,N>&)
;
- Multiply and assign.
-
LinearMap& operator*=
(const T&)
;
- Multiply and assign.
-
LinearMap operator+
()const
;
- Unary plus.
-
LinearMap& operator+=
(const LinearMap&)
;
- Add.
-
LinearMap& operator+=
(const FVector<T,N>&)
;
- Add and assign.
-
LinearMap operator-
()const
;
- Unary minus.
-
LinearMap& operator-=
(const LinearMap&)
;
- Subtract.
-
LinearMap& operator-=
(const FVector<T,N>&)
;
- Subtract and assign.
-
LinearMap& operator/=
(const LinearFun<T,N>&)
;
- Divide and assign.
Throw DivideError if constant part of rhs is zero.
-
LinearMap& operator/=
(const T&)
;
- Divide and assign.
Throw DivideError if rhs is zero.
-
LinearFun<T,N>& operator[]
(int)
;
- Get component.
Return reference to component n.
Result is undefined, if index is out of range.
-
const LinearFun<T,N>& operator[]
(int)const
;
- Get Component.
Return constant reference to component n.
Result is undefined, if index is out of range.
-
std::ostream& put
(std::ostream&)const
;
- Put a LinearMap to stream os.
-
void setComponent
(int,const LinearFun<T,N>&)
;
- Set component.
Assign value of component n.
Throw RangeError, if n is out of range.
-
LinearMap substitute
(const FMatrix<T,N,N>&)const
;
- Substitute matrix into map.
-
LinearMap substitute
(const LinearMap&)const
;
- Substitute map into map.
-
LinearMap substituteInto
(const FMatrix<T,N,N>&)const
;
- Substitute map into matrix.
- Protected members:
Documentation generated by fci on Mon Feb 7 11:41:43 2000