Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.atnf.csiro.au/computing/software/casacore/casacore-1.2.0/doc/html/structcasa_1_1TabVecMath__global__functions__miscellaneous.html
Дата изменения: Unknown
Дата индексирования: Tue Feb 15 00:40:04 2011
Кодировка:

Поисковые слова: annular solar eclipse
casacore: casa::TabVecMath_global_functions_miscellaneous Struct Reference
Public Member Functions

casa::TabVecMath_global_functions_miscellaneous Struct Reference
[Tables_module]

Miscellaneous table vector operations. More...

#include <TabVecMath.h>

List of all members.

Public Member Functions

template<class T >
void minMax (T &min, T &max, const ROTableVector< T > &)
 This sets min and max to the min and max of the vector to avoid having to do two passes with max() and min() separately.
template<class T >
min (const ROTableVector< T > &)
 The minimum element of the table vector.
template<class T >
max (const ROTableVector< T > &)
 The maximum element of the table vector.
template<class T >
void indgen (TableVector< T > &, Int start, Int inc)
 Fills all elements of the table vector with a sequence starting with "start" and incrementing by "inc" for each element.
template<class T >
void indgen (TableVector< T > &, Int start)
 Fills all elements of the table vector with a sequence starting with "start" incremented by one for each position in the table vector.
template<class T >
void indgen (TableVector< T > &)
 Fills all elements of the table vector with a sequence starting with 0 and ending with nelements() - 1.
template<class T >
sum (const ROTableVector< T > &)
 Sum of all the elements of a table vector.
template<class T >
product (const ROTableVector< T > &)
 Product of all the elements of a table vector.

Detailed Description

Miscellaneous table vector operations.

Intended use:

Public interface

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

Synopsis

Fill a table vector or calculate the sum, product, minimum or maximum of its elements.

Definition at line 229 of file TabVecMath.h.


Member Function Documentation

template<class T >
void casa::TabVecMath_global_functions_miscellaneous::indgen ( TableVector< T > &  ,
Int  start,
Int  inc 
) [inline]

Fills all elements of the table vector with a sequence starting with "start" and incrementing by "inc" for each element.

template<class T >
void casa::TabVecMath_global_functions_miscellaneous::indgen ( TableVector< T > &  ,
Int  start 
) [inline]

Fills all elements of the table vector with a sequence starting with "start" incremented by one for each position in the table vector.

template<class T >
void casa::TabVecMath_global_functions_miscellaneous::indgen ( TableVector< T > &   )  [inline]

Fills all elements of the table vector with a sequence starting with 0 and ending with nelements() - 1.

template<class T >
T casa::TabVecMath_global_functions_miscellaneous::max ( const ROTableVector< T > &   )  [inline]

The maximum element of the table vector.

Requires that the type "T" has comparison operators.

template<class T >
T casa::TabVecMath_global_functions_miscellaneous::min ( const ROTableVector< T > &   )  [inline]

The minimum element of the table vector.

Requires that the type "T" has comparison operators.

template<class T >
void casa::TabVecMath_global_functions_miscellaneous::minMax ( T &  min,
T &  max,
const ROTableVector< T > &   
) [inline]

This sets min and max to the min and max of the vector to avoid having to do two passes with max() and min() separately.

Requires that the type "T" has comparison operators.

template<class T >
T casa::TabVecMath_global_functions_miscellaneous::product ( const ROTableVector< T > &   )  [inline]

Product of all the elements of a table vector.


Warning: product can easily overflow;

template<class T >
T casa::TabVecMath_global_functions_miscellaneous::sum ( const ROTableVector< T > &   )  [inline]

Sum of all the elements of a table vector.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines