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.


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.


Generated on Thu Sep 18 12:33:39 2008 for RTOpPack: Extra C/C++ Code for Vector Reduction/Transformation Operators by doxygen 1.3.9.1