RTOp_ROp_get_ele.h File Reference

#include "RTOp.h"

Include dependency graph for RTOp_ROp_get_ele.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Detailed Description

Reduction operator for looking up the value of an element.

targ_obj <- v[0](i)

This operator is only defined to allow one vector argument (num_vecs == 1) v[0] but it can handle sparse and dense vectors. Using a reduction operator to lookup and an element will be reasonably efficient for some types of vector subclasses (i.e. dense and sparse serial and parallel vectors) but very slow for others (i.e. out-of-core vectors). It would be better for vector subclasses to implement this operation directly but if they don't you can use this operation to lookup an element. Of course the user should not abuse this operation in order to access a bunch of elements in a vector. To do so would be very inefficient. This is what reduction operators where designed to avoid.

Definition in file RTOp_ROp_get_ele.h.


Function Documentation

int RTOp_ROp_get_ele_construct RTOp_index_type  i,
struct RTOp_RTOp op
 

Definition at line 99 of file RTOp_ROp_get_ele.c.

int RTOp_ROp_get_ele_set_i RTOp_index_type  i,
struct RTOp_RTOp op
 

Definition at line 107 of file RTOp_ROp_get_ele.c.

int RTOp_ROp_get_ele_destroy struct RTOp_RTOp op  ) 
 

Definition at line 113 of file RTOp_ROp_get_ele.c.

RTOp_value_type RTOp_ROp_get_ele_val RTOp_ReductTarget  targ_obj  ) 
 

Definition at line 120 of file RTOp_ROp_get_ele.c.


Variable Documentation

const struct RTOp_RTOp_vtbl_t RTOp_ROp_get_ele_vtbl
 

Definition at line 86 of file RTOp_ROp_get_ele.c.


Generated on Thu Sep 18 12:36:01 2008 for MOOCHO (Single Doxygen Collection) by doxygen 1.3.9.1