Loading...
Searching...
No Matches
vectorbase.h
Go to the documentation of this file.
50 * Class VectorBase provides dense linear algebra vectors. Internally, VectorBase wraps std::vector.
52 * After construction, the values of a VectorBase can be accessed with the subscript operator[](). Safety is provided by
53 * qchecking of array bound when accessing elements with the subscript operator[]() (only when compiled without \c
56 * A VectorBase is distinguished from a simple array of %Reals or %Rationals by providing a set of mathematical
59 * The following mathematical operations are provided by class VectorBase (VectorBase \p a, \p b; R \p x):
81 * When using any of these operations, the vectors involved must be of the same dimension. Also an SVectorBase \c b is
96 // ------------------------------------------------------------------------------------------------------------------
107 // ------------------------------------------------------------------------------------------------------------------
112 /** There is no default constructor since the storage for a VectorBase must be provided externally. Storage must be
113 * passed as a memory block val at construction. It must be large enough to fit at least dimen values.
211 VectorBase<R>& scaleAssign(const int* scaleExp, const VectorBase<R>& vec, bool negateExp = false)
239 /** Assigning an SVectorBase to a VectorBase using operator=() will set all values to 0 except the nonzeros of \p vec.
246 /** Assigning an SSVectorBase to a VectorBase using operator=() will set all values to 0 except the nonzeros of \p
249 /**@todo do we need this also in non-template version, because SSVectorBase can be automatically cast to VectorBase? */
265 // ------------------------------------------------------------------------------------------------------------------
303 // ------------------------------------------------------------------------------------------------------------------
484 // ------------------------------------------------------------------------------------------------------------------
489 /** This function serves for using a VectorBase in an C-style function. It returns a pointer to the first value of
500 /** This function serves for using a VectorBase in an C-style function. It returns a pointer to the first value of
Definition rational.h:237 Definition stablesum.h:36 VectorBase< R > & assign(const SVectorBase< S > &vec) Assign values of vec. Definition basevectors.h:86 VectorBase< R > & operator=(const VectorBase< S > &vec) Assignment operator. Definition vectorbase.h:157 R length() const Floating point approximation of euclidian norm (without any approximation guarantee). Definition vectorbase.h:445 VectorBase< R > & scaleAssign(const int *scaleExp, const VectorBase< R > &vec, bool negateExp=false) scale and assign Definition vectorbase.h:211 const VectorBase< R > operator-(const VectorBase< R > &vec) const Definition vectorbase.h:571 VectorBase< R > & operator=(const VectorBase< R > &vec) Assignment operator. Definition vectorbase.h:174 void reDim(int newdim, const bool setZero=true) Resets VectorBase's dimension to newdim. Definition vectorbase.h:541 VectorBase< R > & operator=(const VectorBase< R > &&vec) Move assignment operator. Definition vectorbase.h:187 VectorBase(const VectorBase< R > &&vec) noexcept Definition vectorbase.h:144 friend VectorBase< R > operator-(const VectorBase< R > &vec) Definition vectorbase.h:605 VectorBase< R > & scaleAssign(int scaleExp, const VectorBase< R > &vec) scale and assign Definition vectorbase.h:194 VectorBase< R > & multSub(const S &x, const SVectorBase< T > &vec) Subtraction of scaled vector. Definition basevectors.h:297 friend bool operator==(const VectorBase< R > &vec1, const VectorBase< R > &vec2) Equality operator. Definition vectorbase.h:290 const VectorBase< R > operator+(const VectorBase< R > &v) const Definition vectorbase.h:588 VectorBase< R > & multAdd(const S &x, const VectorBase< T > &vec) Addition of scaled vector. Definition vectorbase.h:458 Everything should be within this namespace. Debugging, floating point type and parameter definitions.
|