vectorbase.h
Go to the documentation of this file.
36 * Class VectorBase provides dense linear algebra vectors. It does not provide memory management for the %array of 37 * values. Instead, the constructor requires a pointer to a memory block large enough to fit the desired dimension of 40 * After construction, the values of a VectorBase can be accessed with the subscript operator[](). Safety is provided by 41 * qchecking of array bound when accessing elements with the subscript operator[]() (only when compiled without \c 44 * A VectorBase is distinguished from a simple array of %Reals or %Rationals by providing a set of mathematical 45 * operations. Since VectorBase does not provide any memory management features, no operations are available that would 48 * The following mathematical operations are provided by class VectorBase (VectorBase \p a, \p b; R \p x): 70 * When using any of these operations, the vectors involved must be of the same dimension. Also an SVectorBase \c b is 78 // ------------------------------------------------------------------------------------------------------------------ 93 // ------------------------------------------------------------------------------------------------------------------ 98 /** There is no default constructor since the storage for a VectorBase must be provided externally. Storage must be 99 * passed as a memory block val at construction. It must be large enough to fit at least dimen values. 143 /** Assigning an SVectorBase to a VectorBase using operator=() will set all values to 0 except the nonzeros of \p vec. 150 /** Assigning an SSVectorBase to a VectorBase using operator=() will set all values to 0 except the nonzeros of \p 153 /**@todo do we need this also in non-template version, because SSVectorBase can be automatically cast to VectorBase? */ 169 // ------------------------------------------------------------------------------------------------------------------ 214 // ------------------------------------------------------------------------------------------------------------------ 393 // ------------------------------------------------------------------------------------------------------------------ 398 /** This function serves for using a VectorBase in an C-style function. It returns a pointer to the first value of 409 /** This function serves for using a VectorBase in an C-style function. It returns a pointer to the first value of 432 // ------------------------------------------------------------------------------------------------------------------
Rational & addProduct(const Rational &r, const Rational &s) add product of two rationals Definition: rational.cpp:3372 VectorBase< R > & operator=(const VectorBase< S > &vec) Assignment operator. Definition: vectorbase.h:111 Dense vector.Class VectorBase provides dense linear algebra vectors. It does not provide memory manag... Definition: dsvectorbase.h:28 Wrapper for GMP type mpq_class.We wrap mpq_class so that we can replace it by a double type if GMP is... Definition: rational.h:45 Semi sparse vector.This class implements semi-sparse vectors. Such are DVectorBases where the indices... Definition: dsvectorbase.h:29 friend bool operator==(const VectorBase< R > &vec1, const VectorBase< R > &vec2) Equality operator. Definition: vectorbase.h:194 Real length() const Floating point approximation of euclidian norm (without any approximation guarantee). Definition: vectorbase.h:356 VectorBase< R > & multAdd(const S &x, const VectorBase< T > &vec) Addition of scaled vector. Definition: vectorbase.h:369 Everything should be within this namespace. Sparse vectors.Class SVectorBase provides packed sparse vectors. Such are a sparse vectors... Definition: dvectorbase.h:31 VectorBase< R > & assign(const SVectorBase< S > &vec) Assign values of vec. Definition: basevectors.h:80 VectorBase< R > & multSub(const S &x, const SVectorBase< T > &vec) Subtraction of scaled vector. Definition: basevectors.h:290 VectorBase< R > & operator=(const VectorBase< R > &vec) Assignment operator. Definition: vectorbase.h:127 |