basevectors.h
Go to the documentation of this file.
23 /* undefine SOPLEX_DEBUG flag from including files; if SOPLEX_DEBUG should be defined in this file, do so below */ 44 // --------------------------------------------------------------------------------------------------------------------- 46 // --------------------------------------------------------------------------------------------------------------------- 49 /** Assigning an SVectorBase to a VectorBase using operator=() will set all values to 0 except the nonzeros of \p vec. 93 /** Assigning an SSVectorBase to a VectorBase using operator=() will set all values to 0 except the nonzeros of \p vec. 308 VectorBase<Rational>& VectorBase<Rational>::multAdd(const Rational& x, const SVectorBase<Rational>& vec) 325 VectorBase<Rational>& VectorBase<Rational>::multSub(const Rational& x, const SVectorBase<Rational>& vec) 367 // --------------------------------------------------------------------------------------------------------------------- 369 // --------------------------------------------------------------------------------------------------------------------- 391 // --------------------------------------------------------------------------------------------------------------------- 393 // --------------------------------------------------------------------------------------------------------------------- 507 SSVectorBase<R>& SSVectorBase<R>::assign2product(const SSVectorBase<S>& x, const SVSetBase<T>& A) 538 SSVectorBase<R>& SSVectorBase<R>::assign2product4setup(const SVSetBase<S>& A, const SSVectorBase<T>& x) 549 else if( isSetup() && (double(x.size()) * A.memSize() <= shortProductFactor * dim() * A.num()) ) 571 SSVectorBase<R>& SSVectorBase<R>::assign2product1(const SVSetBase<S>& A, const SSVectorBase<T>& x) 606 SSVectorBase<R>& SSVectorBase<R>::assign2productShort(const SVSetBase<S>& A, const SSVectorBase<T>& x) 717 SSVectorBase<R>& SSVectorBase<R>::assign2productFull(const SVSetBase<S>& A, const SSVectorBase<T>& x) 760 SSVectorBase<R>& SSVectorBase<R>::assign2productAndSetup(const SVSetBase<S>& A, SSVectorBase<T>& x) 895 // --------------------------------------------------------------------------------------------------------------------- 897 // --------------------------------------------------------------------------------------------------------------------- 1006 // --------------------------------------------------------------------------------------------------------------------- 1008 // --------------------------------------------------------------------------------------------------------------------- 1078 // --------------------------------------------------------------------------------------------------------------------- 1080 // --------------------------------------------------------------------------------------------------------------------- 1087 std::ostream& operator<<(std::ostream& s, const VectorBase<R>& vec) 1310 std::ostream& operator<<(std::ostream& os, const SVectorBase<R>& v) 1339 std::ostream& operator<<(std::ostream& os, const SVSetBase<R>& s) bool isNotZero(Real a, Real eps=Param::epsilon()) returns true iff |a| > eps Definition: spxdefines.h:413 void reDim(int newdim, const bool setZero=true) Resets DVectorBase's dimension to newdim. Definition: dvectorbase.h:249 DVectorBase< R > operator+(const VectorBase< R > &v, const VectorBase< R > &w) Addition. Definition: basevectors.h:1121 DSVectorBase< R > & operator=(const SVectorBase< S > &vec) Assignment operator. Definition: dsvectorbase.h:149 std::istream & operator>>(std::istream &s, DVectorBase< R > &vec) Input operator. Definition: basevectors.h:1260 SVectorBase< R > & operator=(const VectorBase< S > &vec) Assignment operator. Definition: basevectors.h:905 VectorBase< R > & operator=(const VectorBase< S > &vec) Assignment operator. Definition: vectorbase.h:111 Dynamic dense vectors.Class DVectorBase is a derived class of VectorBase adding automatic memory mana... Definition: dvectorbase.h:48 Dense vector.Class VectorBase provides dense linear algebra vectors. It does not provide memory manag... Definition: dsvectorbase.h:28 Nonzero< R > & element(int n) Reference to the n 'th nonzero element. Definition: svectorbase.h:218 Set of sparse vectors. Dynamic sparse vectors.Class DSVectorBase implements dynamic sparse vectors, i.e. SVectorBases with a... Definition: dsvectorbase.h:42 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 Dynamic sparse vectors. Semi sparse vector.This class implements semi-sparse vectors. Such are DVectorBases where the indices... Definition: dsvectorbase.h:29 int index(int n) const Returns index of the n 'th nonzero element. Definition: ssvectorbase.h:174 Wrapper for GMP types. Debugging, floating point type and parameter definitions. VectorBase< R > & multAdd(const S &x, const VectorBase< T > &vec) Addition of scaled vector. Definition: vectorbase.h:369 Everything should be within this namespace. Dense vector. Sparse vectors. Semi sparse vector. Sparse vectors.Class SVectorBase provides packed sparse vectors. Such are a sparse vectors... Definition: dvectorbase.h:31 bool isZero(Real a, Real eps=Param::epsilon()) returns true iff |a| <= eps Definition: spxdefines.h:407 VectorBase< R > & assign(const SVectorBase< S > &vec) Assign values of vec. Definition: basevectors.h:80 Sparse vector set.Class SVSetBase provides a set of sparse vectors SVectorBase. All SVectorBases in a... Definition: ssvectorbase.h:33 VectorBase< R > & multSub(const S &x, const SVectorBase< T > &vec) Subtraction of scaled vector. Definition: basevectors.h:290 Dynamic dense vectors. |