STXXL
1.4.1
|
external column-vector container for matrix multiplication
ValueType | type of contained objects (POD with no references to internal memory) |
Public Types | |
typedef vector_type::size_type | size_type |
typedef vector< ValueType > | vector_type |
Public Types inherited from stxxl::vector< ValueType > | |
enum | constants |
typedef ValueType | value_type |
The type of elements stored in the vector. More... | |
typedef value_type & | reference |
reference to value_type More... | |
typedef const value_type & | const_reference |
constant reference to value_type More... | |
typedef value_type * | pointer |
pointer to value_type More... | |
typedef const value_type * | const_pointer |
constant pointer to value_type More... | |
typedef SizeType | size_type |
an unsigned 64-bit integral type More... | |
typedef stxxl::int64 | difference_type |
typedef PagerType | pager_type |
typedef AllocStr | alloc_strategy_type |
typedef vector_iterator < value_type, alloc_strategy_type, size_type, difference_type, block_size, pager_type, page_size > | iterator |
iterator used to iterate through a vector, see More Notes. More... | |
typedef const_vector_iterator < value_type, alloc_strategy_type, size_type, difference_type, block_size, pager_type, page_size > | const_iterator |
constant iterator used to iterate through a vector, see More Notes. More... | |
typedef std::reverse_iterator < iterator > | reverse_iterator |
typedef std::reverse_iterator < const_iterator > | const_reverse_iterator |
typedef vector_bufwriter < iterator > | bufwriter_type |
vector_bufwriter compatible with this vector More... | |
typedef vector_bufreader < const_iterator > | bufreader_type |
vector_bufreader compatible with this vector More... | |
typedef vector_bufreader_reverse < const_iterator > | bufreader_reverse_type |
vector_bufreader compatible with this vector More... | |
typedef bid_vector | bids_container_type |
typedef bids_container_type::iterator | bids_container_iterator |
typedef bids_container_type::const_iterator | const_bids_container_iterator |
typedef typed_block< BlockSize, ValueType > | block_type |
type of the block used in disk-memory transfers More... | |
typedef double_blocked_index < SizeType, PageSize, block_type::size > | blocked_index_type |
double-index type to reference individual elements in a block More... | |
Public Member Functions | |
column_vector (size_type n=0) | |
column_vector | operator* (const ValueType scalar) const |
column_vector & | operator*= (const ValueType scalar) |
column_vector | operator+ (const column_vector &right) const |
column_vector & | operator+= (const column_vector &right) |
column_vector | operator- (const column_vector &right) const |
column_vector & | operator-= (const column_vector &right) |
void | set_zero () |
Public Member Functions inherited from stxxl::vector< ValueType > | |
vector (size_type n=0, unsigned_type npages=pager_type().size()) | |
Constructs external vector with n elements. More... | |
vector (file *from, size_type size=size_type(-1), unsigned_type npages=pager_type().size()) | |
Construct vector from a file. More... | |
vector (const vector &obj) | |
copy-constructor More... | |
~vector () | |
void | swap (vector &obj) |
swap content More... | |
void | allocate_page_cache () const |
Allocate page cache, must be called to allow access to elements. More... | |
void | deallocate_page_cache () const |
allows to free the cache, but you may not access any element until call allocate_page_cache() again More... | |
void | export_files (std::string filename_prefix) |
Export data such that it is persistent on the file system. Resulting files will be numbered ascending. More... | |
file * | get_file () const |
Get the file associated with this vector, or NULL. More... | |
size_type | size () const |
return the size of the vector. More... | |
bool | empty () const |
true if the vector's size is zero. More... | |
size_type | capacity () const |
Return the number of elelemtsn for which external memory has been allocated. capacity() is always greator than or equal to size(). More... | |
size_type | raw_capacity () const |
Returns the number of bytes that the vector has allocated on disks. More... | |
void | reserve (size_type n) |
Reserves at least n elements in external memory. More... | |
void | resize (size_type n) |
Resize vector contents to n items. More... | |
void | resize (size_type n, bool shrink_capacity) |
Resize vector contents to n items, and allow the allocated external memory to shrink. Internal memory allocation remains unchanged. More... | |
void | clear () |
Erases all of the elements and deallocates all external memory that is occupied. More... | |
void | flush () const |
Flushes the cache pages to the external memory. More... | |
void | push_back (const_reference obj) |
Append a new element at the end. More... | |
void | pop_back () |
Removes the last element (without returning it, see back()). More... | |
reference | back () |
Returns a reference to the last element, see More Notes. More... | |
const_reference | back () const |
Returns a constant reference to the last element, see More Notes. More... | |
reference | front () |
Returns a reference to the first element, see More Notes. More... | |
const_reference | front () const |
Returns a constant reference to the first element, see More Notes. More... | |
vector & | operator= (const vector &obj) |
assignment operator More... | |
iterator | begin () |
returns an iterator pointing to the beginning of the vector, see More Notes. More... | |
const_iterator | begin () const |
returns a const_iterator pointing to the beginning of the vector, see More Notes. More... | |
const_iterator | cbegin () const |
returns a const_iterator pointing to the beginning of the vector, see More Notes. More... | |
iterator | end () |
returns an iterator pointing beyond the end of the vector, see More Notes. More... | |
const_iterator | end () const |
returns a const_iterator pointing beyond the end of the vector, see More Notes. More... | |
const_iterator | cend () const |
returns a const_iterator pointing beyond the end of the vector, see More Notes. More... | |
reverse_iterator | rbegin () |
returns a reverse_iterator pointing to the end of the vector. More... | |
const_reverse_iterator | rbegin () const |
returns a reverse_iterator pointing to the end of the vector. More... | |
const_reverse_iterator | crbegin () const |
returns a reverse_iterator pointing to the end of the vector. More... | |
reverse_iterator | rend () |
returns a reverse_iterator pointing beyond the beginning of the vector. More... | |
const_reverse_iterator | rend () const |
returns a reverse_iterator pointing beyond the beginning of the vector. More... | |
const_reverse_iterator | crend () const |
returns a reverse_iterator pointing beyond the beginning of the vector. More... | |
reference | operator[] (size_type offset) |
access the element at the given vector's offset More... | |
const_reference | operator[] (size_type offset) const |
access the element at the given vector's offset More... | |
reference | at (size_type offset) |
access the element at the given vector's offset More... | |
const_reference | at (size_type offset) const |
access the element at the given vector's offset More... | |
bool | is_element_cached (size_type offset) const |
return true if the given vector offset is in cache More... | |
void | set_content (const ForwardIterator &bid_begin, const ForwardIterator &bid_end, size_type n) |
Set the blocks and the size of this container explicitly. The vector must be completely empty before. More... | |
unsigned_type | numpages () const |
Number of pages used by the pager. More... | |
typedef vector_type::size_type stxxl::column_vector< ValueType >::size_type |
typedef vector<ValueType> stxxl::column_vector< ValueType >::vector_type |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 61 of file matrix.h.
References stxxl::vector< ValueType, PageSize, PagerType, BlockSize, AllocStr, SizeType >::size().
|
inline |
Definition at line 87 of file matrix.h.
References stxxl::vector< ValueType, PageSize, PagerType, BlockSize, AllocStr, SizeType >::size().
|
inline |
Definition at line 70 of file matrix.h.
References stxxl::vector< ValueType, PageSize, PagerType, BlockSize, AllocStr, SizeType >::size().
|
inline |
Definition at line 95 of file matrix.h.
References stxxl::vector< ValueType, PageSize, PagerType, BlockSize, AllocStr, SizeType >::size().
|
inline |
Definition at line 110 of file matrix.h.
Referenced by stxxl::matrix< ValueType, BlockSideLength >::operator*().