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

#include <strp_tsr.h>

Collaboration diagram for CTF_int::strp_tsr:

Public Member Functions

void run (int const dir)
 strips out part of tensor to be operated on More...
 
void free_exp ()
 deallocates buffer More...
 
int64_t mem_fp ()
 returns the number of bytes of buffer space we need More...
 
strp_tsrclone ()
 copies strp_tsr object More...
 
 strp_tsr (strp_tsr *o)
 copies strp_tsr object More...
 
 ~strp_tsr ()
 
 strp_tsr ()
 

Data Fields

int alloced
 
int order
 
int64_t blk_sz
 
int * edge_len
 
int * strip_dim
 
int * strip_idx
 
char * A
 
char * buffer
 
algstrct const * sr_A
 

Detailed Description

Definition at line 14 of file strp_tsr.h.

Constructor & Destructor Documentation

CTF_int::strp_tsr::strp_tsr ( strp_tsr o)

copies strp_tsr object

Definition at line 8 of file strp_tsr.cxx.

References A, alloced, blk_sz, buffer, edge_len, order, strip_dim, and strip_idx.

CTF_int::strp_tsr::~strp_tsr ( )
inline

Definition at line 53 of file strp_tsr.h.

References CTF_int::cdealloc().

CTF_int::strp_tsr::strp_tsr ( )
inline

Definition at line 54 of file strp_tsr.h.

Referenced by clone().

Member Function Documentation

strp_tsr * CTF_int::strp_tsr::clone ( )

copies strp_tsr object

Definition at line 19 of file strp_tsr.cxx.

References strp_tsr().

Referenced by CTF_int::strp_ctr::strp_ctr(), CTF_int::strp_scl::strp_scl(), and CTF_int::strp_sum::strp_sum().

void CTF_int::strp_tsr::free_exp ( )

deallocates buffer

Definition at line 94 of file strp_tsr.cxx.

References alloced, buffer, and CTF_int::cdealloc().

Referenced by CTF_int::strp_sum::run(), and CTF_int::strp_ctr::run().

int64_t CTF_int::strp_tsr::mem_fp ( )

returns the number of bytes of buffer space we need

Returns
bytes needed

Definition at line 23 of file strp_tsr.cxx.

References blk_sz, edge_len, CTF_int::accumulatable::el_size, order, sr_A, and strip_dim.

Referenced by run().

void CTF_int::strp_tsr::run ( int const  dir)

strips out part of tensor to be operated on

Parameters
[in]dirwhether to strip or unstrip tensor

Definition at line 33 of file strp_tsr.cxx.

References A, CTF_int::alloc(), CTF_int::alloc_ptr(), alloced, ASSERT, blk_sz, buffer, CTF_int::cdealloc(), CTF_int::algstrct::copy(), DPRINTF, edge_len, CTF_int::accumulatable::el_size, mem_fp(), order, sr_A, strip_dim, strip_idx, TAU_FSTART, and TAU_FSTOP.

Referenced by CTF_int::strp_scl::run(), CTF_int::strp_sum::run(), and CTF_int::strp_ctr::run().

Field Documentation

char* CTF_int::strp_tsr::A
int CTF_int::strp_tsr::alloced

Definition at line 16 of file strp_tsr.h.

Referenced by free_exp(), run(), CTF_int::strip_diag(), and strp_tsr().

int64_t CTF_int::strp_tsr::blk_sz

Definition at line 18 of file strp_tsr.h.

Referenced by mem_fp(), run(), CTF_int::strip_diag(), CTF_int::strp_ctr::strp_ctr(), and strp_tsr().

char* CTF_int::strp_tsr::buffer
int* CTF_int::strp_tsr::edge_len

Definition at line 19 of file strp_tsr.h.

Referenced by mem_fp(), run(), CTF_int::strip_diag(), and strp_tsr().

algstrct const* CTF_int::strp_tsr::sr_A

Definition at line 24 of file strp_tsr.h.

Referenced by mem_fp(), run(), and CTF_int::strip_diag().

int* CTF_int::strp_tsr::strip_dim
int* CTF_int::strp_tsr::strip_idx

Definition at line 21 of file strp_tsr.h.

Referenced by run(), CTF_int::strip_diag(), and strp_tsr().


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