|
linbox
|
#include <blas-vector.h>
Data Structures | |
| struct | rebind |
| Rebind operator. More... | |
Public Types | |
| typedef _Field | Field |
| typedef Field::Element | Element |
| Element type. | |
| typedef Element | value_type |
| typedef Field::Element_ptr | Element_ptr |
| Element type. | |
| typedef Element_ptr | pointer |
| typedef Field::ConstElement_ptr | ConstElement_ptr |
| Element type. | |
| typedef _Storage | Storage |
Actually a std::vector<Element> (or alike.) | |
| typedef Storage::reference | reference |
| typedef Storage::const_reference | const_reference |
| typedef BlasVector< _Field, _Storage > | Self_t |
| Self type. | |
| typedef Self_t | vectorType |
| vector type | |
| typedef BlasSubvector< Self_t > | subVectorType |
| SubVector type. | |
| typedef BlasSubvector< const Self_t > | constSubVectorType |
| const SubVector type | |
| typedef Storage::iterator | iterator |
| typedef Storage::const_iterator | const_iterator |
| typedef std::reverse_iterator< iterator > | reverse_iterator |
| typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
Public Member Functions | |
| void | resize (size_t n) |
| void | resize (size_t n, const Element &val) |
| BlasVector (const _Field &F) | |
| Allocates a new \( 0 \) vector (shaped and ready). | |
| BlasVector (const Self_t &V) | |
| Copy Constructor of a vector (copying data). | |
| template<class SizeType, typename std::enable_if< std::is_arithmetic< SizeType >::value, int >::type = 0> | |
| BlasVector (const _Field &F, const SizeType &m) | |
| Allocates a new \( m \) zero vector (shaped and ready). | |
| template<class SizeType, typename std::enable_if< std::is_arithmetic< SizeType >::value, int >::type = 0> | |
| BlasVector (const _Field &F, const SizeType &m, const Element &e) | |
| template<typename ConstIterator, typename std::enable_if<!std::is_arithmetic< ConstIterator >::value, int >::type = 0> | |
| BlasVector (const _Field &F, const ConstIterator &jt, const size_t m) | |
| Create a BlasVector from an iterator of elements. | |
| template<class VectorBase, typename std::enable_if<!std::is_arithmetic< VectorBase >::value, int >::type = 0> | |
| BlasVector (const _Field &F, const VectorBase &V) | |
| Create a BlasVector from a container of elements. | |
| template<class OtherVector> | |
| BlasVector (const OtherVector &V, const _Field &F) | |
| Create a BlasVector from another vector defined over a different field (use homomorphism if it exists) | |
| Self_t & | operator= (const Self_t &A) |
| operator = (copying data) | |
| template<class _Vector> | |
| Self_t & | operator= (const _Vector &A) |
| operator = (copying data from different vector type) | |
| template<class _Vector> | |
| Self_t & | copy (const _Vector &A) |
| const _Field & | field () const |
| size_t | size () const |
| size_t | max_size () const |
| ConstElement_ptr | getPointer () const |
| _ | |
| Element_ptr | getPointer () |
| ConstElement_ptr | getConstPointer () const |
| const Storage & | getRep () const |
| size_t | getInc () const |
| Get the increment in the vector. | |
| void | push_back (const Element &e) |
| add an element at the end of the vector (possibly invalidate existing iterators) | |
| void | clear (void) |
| void | reserve (const size_t &m) |
| void | setEntry (size_t i, const Element &a_i) |
| reference | refEntry (size_t i) |
| const_reference | getEntry (size_t i) const |
| Element & | getEntry (Element &x, size_t i) const |
| std::ostream & | write (std::ostream &os, Tag::FileFormat fmt=Tag::FileFormat::Pretty) const |
| std::istream & | read (std::istream &is, Tag::FileFormat fmt=Tag::FileFormat::Pretty) |
| iterator | begin (void) |
| const_iterator | begin (void) const |
| iterator | end (void) |
| const_iterator | end (void) const |
| reverse_iterator | rbegin (void) |
| const_reverse_iterator | rbegin (void) const |
| reverse_iterator | rend (void) |
| const_reverse_iterator | rend (void) const |
| iterator | Begin (void) |
| const_iterator | Begin (void) const |
| iterator | End (void) |
| const_iterator | End (void) const |
| reference | operator[] (size_t n) |
| const_reference | operator[] (size_t n) const |
| reference | at (size_t n) |
| const_reference | at (size_t n) const |
| reference | front (void) |
| const_reference | front (void) const |
| reference | back (void) |
| const_reference | back (void) const |
| bool | empty () const |
| void | random () |
| template<class RandIter> | |
| void | random (RandIter r) |
Protected Attributes | |
| size_t | _size =0 |
| Storage | _rep |
| Element_ptr | _ptr |
| const Field & | _field |
| typedef _Field Field |
| typedef Element value_type |
| typedef Field::Element_ptr Element_ptr |
Element type.
| typedef Element_ptr pointer |
| typedef Field::ConstElement_ptr ConstElement_ptr |
Element type.
| typedef _Storage Storage |
Actually a std::vector<Element> (or alike.)
| typedef Storage::reference reference |
| typedef Storage::const_reference const_reference |
| typedef BlasVector<_Field,_Storage> Self_t |
Self type.
| typedef Self_t vectorType |
vector type
| typedef BlasSubvector<Self_t> subVectorType |
SubVector type.
| typedef BlasSubvector<const Self_t> constSubVectorType |
const SubVector type
| typedef Storage::iterator iterator |
| typedef Storage::const_iterator const_iterator |
| typedef std::reverse_iterator<iterator> reverse_iterator |
| typedef std::reverse_iterator<const_iterator> const_reverse_iterator |
|
inline |
Allocates a new \( 0 \) vector (shaped and ready).
|
inline |
Copy Constructor of a vector (copying data).
| V | vector to be copied. |
|
inline |
Allocates a new \( m \) zero vector (shaped and ready).
| F | |
| m | vector dimension |
|
inline |
|
inline |
Create a BlasVector from an iterator of elements.
| F | Field of the created vector |
| it | iterator to be copied from |
| m | vector dimension |
| inc | increment value for iterating |
|
inline |
Create a BlasVector from a container of elements.
| F | Field of the created vector |
| V | iterator to be copied from |
|
inline |
Create a BlasVector from another vector defined over a different field (use homomorphism if it exists)
|
inline |
|
inline |
operator = (copying data)
|
inline |
operator = (copying data from different vector type)
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
_
Get access to the vector data.
|
inline |
|
inline |
|
inline |
|
inline |
Get the increment in the vector.
|
inline |
add an element at the end of the vector (possibly invalidate existing iterators)
| e | element to add |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |