RTOp_ROp_num_nonzeros.h File Reference

#include "RTOp.h"

Include dependency graph for RTOp_ROp_num_nonzeros.h:

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

Go to the source code of this file.
int RTOp_ROp_num_nonzeros_construct (struct RTOp_RTOp *op)
int RTOp_ROp_num_nonzeros_destroy (struct RTOp_RTOp *op)
RTOp_index_type RTOp_ROp_num_nonzeros_val (RTOp_ReductTarget targ_obj)
RTOp_RTOp_vtbl_t RTOp_ROp_num_nonzeros_vtbl

Detailed Description

Reduction operator for counting the number of nonzero elements in a vector.

targ_obj <- size( { i | v[0](i) != 0.0, i=1...n } )

This operator is only defined to allow one vector argument (num_vecs == 1) v[0] but it can handle a dense or sparse vector. This operator will not count any explicit elments with <tt>v[0](i) == 0.0 in sparse or dense format. Therefore, this is the exact number of nonzero elements reguardless of storage format.

Definition in file RTOp_ROp_num_nonzeros.h.

Function Documentation

int RTOp_ROp_num_nonzeros_construct ( struct RTOp_RTOp op  ) 

Definition at line 105 of file RTOp_ROp_num_nonzeros.c.

int RTOp_ROp_num_nonzeros_destroy ( struct RTOp_RTOp op  ) 

Definition at line 112 of file RTOp_ROp_num_nonzeros.c.

RTOp_index_type RTOp_ROp_num_nonzeros_val ( RTOp_ReductTarget  targ_obj  ) 

Definition at line 119 of file RTOp_ROp_num_nonzeros.c.

Variable Documentation

struct RTOp_RTOp_vtbl_t RTOp_ROp_num_nonzeros_vtbl

Definition at line 92 of file RTOp_ROp_num_nonzeros.c.

Generated on Tue Jul 13 09:34:44 2010 for MOOCHO (Single Doxygen Collection) by  doxygen 1.4.7