Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
CTF_int::ConstPairIterator Class Reference

#include <algstrct.h>

Collaboration diagram for CTF_int::ConstPairIterator:

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
 

Detailed Description

Definition at line 380 of file algstrct.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

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().

ConstPairIterator CTF_int::ConstPairIterator::operator[] ( int  n) const

indexing moves by

Parameters
[in]npairs

Definition at line 760 of file algstrct.cxx.

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

Parameters
[in,out]bufdata to set
[in]nnumber 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

Parameters
[in,out]bufpair 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().

Field Documentation

char const* CTF_int::ConstPairIterator::ptr
algstrct const* CTF_int::ConstPairIterator::sr

Definition at line 382 of file algstrct.h.


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