shark::blas::permutation_matrix Struct Reference

#include <shark/LinAlg/BLAS/permutation.hpp>

+ Inheritance diagram for shark::blas::permutation_matrix:

Public Member Functions

 permutation_matrix (size_type size)
 
 permutation_matrix (vector< std::size_t > const &init)
 
permutation_matrixoperator= (permutation_matrix const &m)
 
- Public Member Functions inherited from shark::blas::vector< std::size_t >
 vector ()
 Constructor of a vector By default it is empty, i.e. size()==0. More...
 
 vector (size_type size)
 Constructor of a vector with a predefined size By default, its elements are initialized to 0. More...
 
 vector (Iter begin, Iter end)
 Constructs the vector from a predefined range. More...
 
 vector (const array_type &data)
 Constructor of a vector by copying from another container This type has the generic name array_typ within the vector definition. More...
 
 vector (size_type size, const value_type &init)
 Constructor of a vector with a predefined size and a unique initial value. More...
 
 vector (vector const &v)
 Copy-constructor of a vector. More...
 
 vector (vector_expression< E > const &e)
 Copy-constructor of a vector from a vector_expression Depending on the vector_expression, this constructor can have the cost of the computations of the expression (trivial to say it, but it is to take into account in your complexity calculations). More...
 
size_type size () const
 Return the size of the vector. More...
 
pointer storage ()
 Returns the pointer to the beginning of the vector storage. More...
 
const_pointer storage () const
 Returns the pointer to the beginning of the vector storage. More...
 
difference_type stride () const
 Returns the stride between the elements in storage() More...
 
size_type max_size () const
 Return the maximum size of the data container. Return the upper bound (maximum size) on the data container. Depending on the container, it can be bigger than the current size of the vector. More...
 
bool empty () const
 Return true if the vector is empty (size==0) More...
 
void resize (size_type size)
 Resize the vector. More...
 
const_reference operator() (index_type i) const
 Return a const reference to the element \(i\) Return a const reference to the element \(i\). With some compilers, this notation will be faster than operator[]. More...
 
reference operator() (index_type i)
 Return a reference to the element \(i\) Return a reference to the element \(i\). With some compilers, this notation will be faster than operator[]. More...
 
const_reference operator[] (index_type i) const
 Return a const reference to the element \(i\). More...
 
reference operator[] (index_type i)
 Return a reference to the element \(i\). More...
 
reference front ()
 Returns the first element of the vector. More...
 
const_reference front () const
 Returns the first element of the vector. More...
 
reference back ()
 Returns the last element of the vector. More...
 
const_reference back () const
 Returns the last element of the vector. More...
 
void push_back (value_type const &element)
 resizes the vector by appending a new element to the end. this invalidates storage More...
 
void clear ()
 Clear the vector, i.e. set all values to the zero value. More...
 
vectoroperator= (vector const &v)
 Assign a full vector (RHS-vector) to the current vector (LHS-vector) Assign a full vector (RHS-vector) to the current vector (LHS-vector). This method does not create any temporary. More...
 
vectoroperator= (vector_container< C > const &v)
 Assign a full vector (RHS-vector) to the current vector (LHS-vector) Assign a full vector (RHS-vector) to the current vector (LHS-vector). This method does not create any temporary. More...
 
vectoroperator= (vector_expression< E > const &e)
 Assign the result of a vector_expression to the vector Assign the result of a vector_expression to the vector. More...
 
const_iterator cbegin () const
 return an iterator on the first element of the vector More...
 
const_iterator cend () const
 return an iterator after the last element of the vector More...
 
const_iterator begin () const
 return an iterator on the first element of the vector More...
 
iterator begin ()
 Return an iterator on the first element of the vector. More...
 
const_iterator end () const
 return an iterator after the last element of the vector More...
 
iterator end ()
 Return an iterator at the end of the vector. More...
 
iterator set_element (iterator pos, index_type index, value_type value)
 
iterator clear_element (iterator pos)
 
iterator clear_range (iterator start, iterator end)
 
void reserve (size_type)
 
void serialize (Archive &ar, const unsigned int file_version)
 
- Public Member Functions inherited from shark::blas::vector_container< vector< std::size_t > >
const container_type & operator() () const
 
container_type & operator() ()
 
- Public Member Functions inherited from shark::blas::vector_expression< E >
const expression_type & operator() () const
 
expression_type & operator() ()
 

Additional Inherited Members

- Public Types inherited from shark::blas::vector< std::size_t >
typedef array_type::const_reference const_reference
 
typedef array_type::reference reference
 
typedef std::size_t * pointer
 
typedef const std::size_t * const_pointer
 
typedef index_type const * const_index_pointer
 
typedef index_type index_pointer
 
typedef dense_tag storage_category
 
typedef elementwise_tag evaluation_category
 
typedef dense_storage_iterator< value_type > iterator
 
typedef dense_storage_iterator< value_type const > const_iterator
 

Detailed Description

Definition at line 34 of file permutation.hpp.

Constructor & Destructor Documentation

§ permutation_matrix() [1/2]

shark::blas::permutation_matrix::permutation_matrix ( size_type  size)
inlineexplicit

Definition at line 36 of file permutation.hpp.

References shark::blas::vector< std::size_t >::size().

§ permutation_matrix() [2/2]

shark::blas::permutation_matrix::permutation_matrix ( vector< std::size_t > const &  init)
inlineexplicit

Definition at line 41 of file permutation.hpp.

Member Function Documentation

§ operator=()

permutation_matrix& shark::blas::permutation_matrix::operator= ( permutation_matrix const &  m)
inline

Definition at line 44 of file permutation.hpp.

References shark::blas::vector< T >::operator=().


The documentation for this struct was generated from the following file: