CS代考 tnt_array1d.h Source File

tnt_array1d.h Source File

Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

Copyright By PowCoder代写 加微信 powcoder

tnt_array1d.h
Go to the documentation of this file.00001 /*
00003 * Template Numerical Toolkit (TNT)
00005 * Mathematical and Computational Sciences Division
00006 * National Institute of Technology,
00007 * Gaithersburg, MD USA
00010 * This software was developed at the National Institute of Standards and
00011 * Technology (NIST) by employees of the Federal Government in the course
00012 * of their official duties. Pursuant to title 17 Section 105 of the
00013 * United States Code, this software is not subject to copyright protection
00014 * and is in the public domain. NIST assumes no responsibility whatsoever for
00015 * its use by other parties, and makes no guarantees, expressed or implied,
00016 * about its quality, reliability, or any other characteristic.
00022 #ifndef TNT_ARRAY1D_H
00023 #define TNT_ARRAY1D_H
00025 #include
00026 #include
00028 #ifdef TNT_BOUNDS_CHECK
00029 #include
00030 #endif
00035 namespace TNT
00061 template
00062 class Array1D
00065 private:
00067 /* Define private data members here. */
00069 public:
00071 typedef T value_type;
00078 Array1D();
00092 explicit Array1D(int n);
00105 Array1D(int n, const T &a);
00117 Array1D(int n, T *a);
00126 inline Array1D(const Array1D &A);
00150 inline operator T*();
00171 inline operator const T*();
00177 inline Array1D & operator=(const T &a);
00183 inline Array1D & operator=(const Array1D &A);
00196 inline Array1D & ref(const Array1D &A);
00205 Array1D copy() const;
00232 Array1D & inject(const Array1D & A);
00240 inline T& operator[](int i);
00247 inline const T& operator[](int i) const;
00254 inline int dim1() const;
00260 inline int dim() const;
00266 ~Array1D();
00269 /* EXTEND INTERFACE: ADD OTHER FUNCTIONS HERE */
00274 } /* namespace TNT */
00276 #endif
00277 /* TNT_ARRAY1D_H */

Generated at Thu Jun 26 17:26:14 2003 for Template Numerical Toolkit (TNT) by

1.2.5 written by Dimitri van Heesch,
© 1997-2001

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com