Rheolef  7.2
an efficient C++ finite element environment
 
Loading...
Searching...
No Matches
csr< T, sequential >

Detailed Description

template<class T>
class rheolef::csr< T, sequential >

Definition at line 323 of file csr.h.

+ Inheritance diagram for csr< T, sequential >:

Public Types

typedef csr_rep< T, sequentialrep
 
typedef smart_pointer< repbase
 
typedef rep::memory_type memory_type
 
typedef rep::size_type size_type
 
typedef rep::element_type element_type
 
typedef rep::iterator iterator
 
typedef rep::const_iterator const_iterator
 
typedef rep::data_iterator data_iterator
 
typedef rep::const_data_iterator const_data_iterator
 
- Public Types inherited from smart_pointer< csr_rep< T, sequential > >
typedef csr_rep< T, sequentialhandled_type
 
typedef base::internal internal
 

Public Member Functions

 csr ()
 
template<class A >
 csr (const asr< T, sequential, A > &a)
 
void resize (size_type loc_nrow1=0, size_type loc_ncol1=0, size_type loc_nnz1=0)
 
void resize (const distributor &row_ownership, const distributor &col_ownership, size_type nnz1=0)
 
 csr (const std::initializer_list< details::csr_concat_value< T, sequential > > &init_list)
 
 csr (const std::initializer_list< details::csr_concat_line< T, sequential > > &init_list)
 
const distributorrow_ownership () const
 
const distributorcol_ownership () const
 
size_type dis_nrow () const
 
size_type dis_ncol () const
 
size_type dis_nnz () const
 
size_type dis_ext_nnz () const
 
bool is_symmetric () const
 
void set_symmetry (bool is_symm) const
 
void set_symmetry_by_check (const T &tol=std::numeric_limits< T >::epsilon()) const
 
bool is_definite_positive () const
 
void set_definite_positive (bool is_defpos) const
 
size_type pattern_dimension () const
 
void set_pattern_dimension (size_type dim) const
 
T max_abs () const
 
size_type nrow () const
 
size_type ncol () const
 
size_type nnz () const
 
size_type row_first_index () const
 
size_type row_last_index () const
 
size_type col_first_index () const
 
size_type col_last_index () const
 
const_iterator begin () const
 
const_iterator end () const
 
iterator begin_nonconst ()
 
iterator end_nonconst ()
 
size_type ext_nnz () const
 
const_iterator ext_begin () const
 
const_iterator ext_end () const
 
iterator ext_begin_nonconst ()
 
iterator ext_end_nonconst ()
 
size_type jext2dis_j (size_type jext) const
 
int constraint_process_rank () const
 
void mult (const vec< element_type, sequential > &x, vec< element_type, sequential > &y) const
 
vec< element_type, sequentialoperator* (const vec< element_type, sequential > &x) const
 
void trans_mult (const vec< element_type, sequential > &x, vec< element_type, sequential > &y) const
 
vec< element_type, sequentialtrans_mult (const vec< element_type, sequential > &x) const
 
csr< T, sequentialoperator+ (const csr< T, sequential > &b) const
 
csr< T, sequentialoperator- (const csr< T, sequential > &b) const
 
csr< T, sequentialoperator* (const csr< T, sequential > &b) const
 
csr< T, sequential > & operator*= (const T &lambda)
 
void dump (const std::string &name) const
 
- Public Member Functions inherited from smart_pointer< csr_rep< T, sequential > >
 smart_pointer (csr_rep< T, sequential > *p=0)
 
 smart_pointer (void *count, internal i)
 
 smart_pointer (const smart_pointer< csr_rep< T, sequential > > &x)
 
smart_pointer< csr_rep< T, sequential > > & operator= (const smart_pointer< csr_rep< T, sequential > > &x)
 
 ~smart_pointer ()
 
- Public Member Functions inherited from smart_pointer_base< T, C >
 smart_pointer_base (T *p=0)
 
 smart_pointer_base (const smart_pointer_base< T, C > &)
 
 smart_pointer_base (void *count, internal)
 
smart_pointer_base< T, C > & operator= (const smart_pointer_base< T, C > &)
 
 ~smart_pointer_base ()
 
const Tpointer () const
 
const Tdata () const
 
const Toperator-> () const
 
const Toperator* () const
 
Tpointer ()
 
Tdata ()
 
Toperator-> ()
 
Toperator* ()
 
int reference_counter () const
 
counter * get_count () const
 

Member Typedef Documentation

◆ rep

template<class T >
typedef csr_rep<T,sequential> rep

Definition at line 328 of file csr.h.

◆ base

template<class T >
typedef smart_pointer<rep> base

Definition at line 329 of file csr.h.

◆ memory_type

template<class T >
typedef rep::memory_type memory_type

Definition at line 330 of file csr.h.

◆ size_type

template<class T >
typedef rep::size_type size_type

Definition at line 331 of file csr.h.

◆ element_type

template<class T >
typedef rep::element_type element_type

Definition at line 332 of file csr.h.

◆ iterator

template<class T >
typedef rep::iterator iterator

Definition at line 333 of file csr.h.

◆ const_iterator

template<class T >
typedef rep::const_iterator const_iterator

Definition at line 334 of file csr.h.

◆ data_iterator

template<class T >
typedef rep::data_iterator data_iterator

Definition at line 335 of file csr.h.

◆ const_data_iterator

Definition at line 336 of file csr.h.

Constructor & Destructor Documentation

◆ csr() [1/4]

template<class T >
csr ( )

Definition at line 340 of file csr.h.

◆ csr() [2/4]

template<class T >
template<class A >
csr ( const asr< T, sequential, A > &  a)
explicit

Definition at line 342 of file csr.h.

◆ csr() [3/4]

template<class T >
csr ( const std::initializer_list< details::csr_concat_value< T, sequential > > &  init_list)

◆ csr() [4/4]

template<class T >
csr ( const std::initializer_list< details::csr_concat_line< T, sequential > > &  init_list)

Member Function Documentation

◆ resize() [1/2]

template<class T >
void resize ( size_type  loc_nrow1 = 0,
size_type  loc_ncol1 = 0,
size_type  loc_nnz1 = 0 
)

Definition at line 343 of file csr.h.

◆ resize() [2/2]

template<class T >
void resize ( const distributor row_ownership,
const distributor col_ownership,
size_type  nnz1 = 0 
)

Definition at line 345 of file csr.h.

◆ row_ownership()

template<class T >
const distributor & row_ownership ( ) const

Definition at line 356 of file csr.h.

◆ col_ownership()

template<class T >
const distributor & col_ownership ( ) const

Definition at line 357 of file csr.h.

◆ dis_nrow()

template<class T >
size_type dis_nrow ( ) const

Definition at line 358 of file csr.h.

◆ dis_ncol()

template<class T >
size_type dis_ncol ( ) const

Definition at line 359 of file csr.h.

◆ dis_nnz()

template<class T >
size_type dis_nnz ( ) const

Definition at line 360 of file csr.h.

◆ dis_ext_nnz()

template<class T >
size_type dis_ext_nnz ( ) const

Definition at line 361 of file csr.h.

◆ is_symmetric()

template<class T >
bool is_symmetric ( ) const

Definition at line 362 of file csr.h.

◆ set_symmetry()

template<class T >
void set_symmetry ( bool  is_symm) const

Definition at line 363 of file csr.h.

◆ set_symmetry_by_check()

template<class T >
void set_symmetry_by_check ( const T tol = std::numeric_limits<T>::epsilon()) const

Definition at line 364 of file csr.h.

◆ is_definite_positive()

template<class T >
bool is_definite_positive ( ) const

Definition at line 366 of file csr.h.

◆ set_definite_positive()

template<class T >
void set_definite_positive ( bool  is_defpos) const

Definition at line 367 of file csr.h.

◆ pattern_dimension()

template<class T >
size_type pattern_dimension ( ) const

Definition at line 368 of file csr.h.

◆ set_pattern_dimension()

template<class T >
void set_pattern_dimension ( size_type  dim) const

Definition at line 369 of file csr.h.

◆ max_abs()

template<class T >
T max_abs ( ) const

Definition at line 370 of file csr.h.

◆ nrow()

template<class T >
size_type nrow ( ) const

Definition at line 373 of file csr.h.

◆ ncol()

template<class T >
size_type ncol ( ) const

Definition at line 374 of file csr.h.

◆ nnz()

template<class T >
size_type nnz ( ) const

Definition at line 375 of file csr.h.

◆ row_first_index()

template<class T >
size_type row_first_index ( ) const

Definition at line 378 of file csr.h.

◆ row_last_index()

template<class T >
size_type row_last_index ( ) const

Definition at line 379 of file csr.h.

◆ col_first_index()

template<class T >
size_type col_first_index ( ) const

Definition at line 380 of file csr.h.

◆ col_last_index()

template<class T >
size_type col_last_index ( ) const

Definition at line 381 of file csr.h.

◆ begin()

template<class T >
const_iterator begin ( ) const

Definition at line 383 of file csr.h.

◆ end()

template<class T >
const_iterator end ( ) const

Definition at line 384 of file csr.h.

◆ begin_nonconst()

template<class T >
iterator begin_nonconst ( )

Definition at line 385 of file csr.h.

◆ end_nonconst()

template<class T >
iterator end_nonconst ( )

Definition at line 386 of file csr.h.

◆ ext_nnz()

template<class T >
size_type ext_nnz ( ) const

Definition at line 389 of file csr.h.

◆ ext_begin()

template<class T >
const_iterator ext_begin ( ) const

Definition at line 390 of file csr.h.

◆ ext_end()

template<class T >
const_iterator ext_end ( ) const

Definition at line 391 of file csr.h.

◆ ext_begin_nonconst()

template<class T >
iterator ext_begin_nonconst ( )

Definition at line 392 of file csr.h.

◆ ext_end_nonconst()

template<class T >
iterator ext_end_nonconst ( )

Definition at line 393 of file csr.h.

◆ jext2dis_j()

template<class T >
size_type jext2dis_j ( size_type  jext) const

Definition at line 394 of file csr.h.

◆ constraint_process_rank()

template<class T >
int constraint_process_rank ( ) const

◆ mult()

template<class T >
void mult ( const vec< element_type, sequential > &  x,
vec< element_type, sequential > &  y 
) const

Definition at line 401 of file csr.h.

◆ operator*() [1/2]

template<class T >
vec< element_type, sequential > operator* ( const vec< element_type, sequential > &  x) const

Definition at line 404 of file csr.h.

◆ trans_mult() [1/2]

template<class T >
void trans_mult ( const vec< element_type, sequential > &  x,
vec< element_type, sequential > &  y 
) const

Definition at line 409 of file csr.h.

◆ trans_mult() [2/2]

template<class T >
vec< element_type, sequential > trans_mult ( const vec< element_type, sequential > &  x) const

Definition at line 412 of file csr.h.

◆ operator+()

template<class T >
csr< T, sequential > operator+ ( const csr< T, sequential > &  b) const

Definition at line 654 of file csr.h.

◆ operator-()

template<class T >
csr< T, sequential > operator- ( const csr< T, sequential > &  b) const

Definition at line 662 of file csr.h.

◆ operator*() [2/2]

template<class T >
csr< T, sequential > operator* ( const csr< T, sequential > &  b) const

Definition at line 692 of file csr.h.

◆ operator*=()

template<class T >
csr< T, sequential > & operator*= ( const T lambda)

Definition at line 423 of file csr.h.

◆ dump()

template<class T >
void dump ( const std::string &  name) const

Definition at line 429 of file csr.h.


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