casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
casa::ArrayBase_global_functions_Array_general_global_functions Struct Reference

General global functions for Arrays. More...

#include <ArrayBase.h>

List of all members.

Public Member Functions

size_t ArrayVolume (uInt Ndim, const Int *Shape)
 What is the volume of an N-dimensional array.
size_t ArrayIndexOffset (uInt Ndim, const ssize_t *Shape, const ssize_t *Origin, const ssize_t *Inc, const IPosition &Index)
 What is the linear index into an "Ndim" dimensional array of the given "Shape", "Origin", and "Increment" for a given IPosition Index.
size_t ArrayIndexOffset (uInt Ndim, const ssize_t *Shape, const ssize_t *Inc, const IPosition &Index)

Detailed Description

General global functions for Arrays.

<h3>Review Status</h3><dl><dt>Reviewed By:<dd>UNKNOWN<dt>Date Reviewed:<dd>before2004/08/25<dt>Test programs:<dd>tArray</dl> 

Prerequisite

Synopsis

These are generally useful global functions which operate on all Arrays.

Definition at line 247 of file ArrayBase.h.


Member Function Documentation

size_t casa::ArrayBase_global_functions_Array_general_global_functions::ArrayIndexOffset ( uInt  Ndim,
const ssize_t *  Shape,
const ssize_t *  Origin,
const ssize_t *  Inc,
const IPosition Index 
)

What is the linear index into an "Ndim" dimensional array of the given "Shape", "Origin", and "Increment" for a given IPosition Index.

An Array helper function.

size_t casa::ArrayBase_global_functions_Array_general_global_functions::ArrayIndexOffset ( uInt  Ndim,
const ssize_t *  Shape,
const ssize_t *  Inc,
const IPosition Index 
)

What is the volume of an N-dimensional array.

Shape[0]*Shape[1]*...*Shape[N-1]. An Array helper function.


The documentation for this struct was generated from the following file: