|
Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
|
#include <algstrct.h>

Public Member Functions | |
| ConstPairIterator (PairIterator const &pi) | |
| conversion constructor for iterator to constant buffer of pairs More... | |
| ConstPairIterator (algstrct const *sr_, char const *ptr_) | |
| constructor for iterator of constant buffer of pairs More... | |
| ConstPairIterator | operator[] (int n) const |
| indexing moves by More... | |
| int64_t | k () const |
| returns key of pair at head of ptr More... | |
| char const * | d () const |
| returns value of pair at head of ptr More... | |
| void | read (char *buf, int64_t n=1) const |
| sets data to what this operator points to More... | |
| void | read_val (char *buf) const |
| sets value to the value pointed by the iterator More... | |
| void | permute (int64_t n, int order, int const *old_lens, int64_t const *new_lda, PairIterator wA) |
| permutes keys of n pairs More... | |
| void | pin (int64_t n, int order, int const *lens, int const *divisor, PairIterator pi_new) |
| pins keys of n pairs More... | |
Data Fields | |
| algstrct const * | sr |
| char const * | ptr |
Definition at line 380 of file algstrct.h.
| CTF_int::ConstPairIterator::ConstPairIterator | ( | PairIterator const & | pi | ) |
conversion constructor for iterator to constant buffer of pairs
Definition at line 752 of file algstrct.cxx.
References CTF_int::PairIterator::ptr, and CTF_int::PairIterator::sr.
| CTF_int::ConstPairIterator::ConstPairIterator | ( | algstrct const * | sr_, |
| char const * | ptr_ | ||
| ) |
constructor for iterator of constant buffer of pairs
Definition at line 756 of file algstrct.cxx.
| char const * CTF_int::ConstPairIterator::d | ( | ) | const |
returns value of pair at head of ptr
Definition at line 768 of file algstrct.cxx.
Referenced by CTF_int::spA_dnB_seq_sum().
| int64_t CTF_int::ConstPairIterator::k | ( | ) | const |
returns key of pair at head of ptr
Definition at line 764 of file algstrct.cxx.
Referenced by CTF_int::bucket_by_pe(), CTF_int::bucket_by_virt(), CTF_int::depad_tsr(), CTF_int::PairIterator::lower_bound(), permute(), pin(), CTF_int::tensor::read_local(), CTF_int::tensor::read_local_nnz(), CTF_int::COO_Matrix::set_data(), CTF_int::sp_write(), and CTF_int::spspsum().
| ConstPairIterator CTF_int::ConstPairIterator::operator[] | ( | int | n | ) | const |
| void CTF_int::ConstPairIterator::permute | ( | int64_t | n, |
| int | order, | ||
| int const * | old_lens, | ||
| int64_t const * | new_lda, | ||
| PairIterator | wA | ||
| ) |
permutes keys of n pairs
Definition at line 829 of file algstrct.cxx.
References k(), and CTF_int::PairIterator::write_val().
Referenced by ctf.core.tensor::__setitem__(), and CTF_int::tspsum_permute::run().
| void CTF_int::ConstPairIterator::pin | ( | int64_t | n, |
| int | order, | ||
| int const * | lens, | ||
| int const * | divisor, | ||
| PairIterator | pi_new | ||
| ) |
pins keys of n pairs
Definition at line 849 of file algstrct.cxx.
References CTF_int::alloc_ptr(), CTF_int::cdealloc(), k(), TAU_FSTART, and TAU_FSTOP.
Referenced by CTF_int::spctr_pin_keys::run(), and CTF_int::tspsum_pin_keys::run().
| void CTF_int::ConstPairIterator::read | ( | char * | buf, |
| int64_t | n = 1 |
||
| ) | const |
sets data to what this operator points to
| [in,out] | buf | data to set |
| [in] | n | number of pairs to set |
Definition at line 772 of file algstrct.cxx.
Referenced by ctf.core.tensor::__getitem__().
| void CTF_int::ConstPairIterator::read_val | ( | char * | buf | ) | const |
sets value to the value pointed by the iterator
| [in,out] | buf | pair to set |
Definition at line 776 of file algstrct.cxx.
Referenced by CTF_int::tensor::read_local(), CTF_int::tensor::read_local_nnz(), CTF_int::COO_Matrix::set_data(), CTF_int::sp_read(), CTF_int::sp_write(), and CTF_int::spspsum().
| char const* CTF_int::ConstPairIterator::ptr |
Definition at line 383 of file algstrct.h.
Referenced by CTF_int::PairIterator::lower_bound(), CTF_int::spA_dnB_dnC_ctrloop(), and CTF_int::PairIterator::write().
| algstrct const* CTF_int::ConstPairIterator::sr |
Definition at line 382 of file algstrct.h.