tnt_fortran_array1d_utils.h Source File

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

# tnt_fortran_array1d_utils.h

Go to the documentation of this file.

    00001 /*
    00002 *
    00003 * Template Numerical Toolkit (TNT)
    00004 *
    00005 * Mathematical and Computational Sciences Division
    00006 * National Institute of Technology,
    00007 * Gaithersburg, MD USA
    00008 *
    00009 *
    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.
    00017 *
    00018 */
    00019
    00020 #ifndef TNT_FORTRAN_ARRAY1D_UTILS_H
    00021 #define TNT_FORTRAN_ARRAY1D_UTILS_H
    00022
    00023 #include <iostream>
    00024
    00025 namespace TNT
    00026 {
    00027
    00028
    00036 template <class T>
    00037 std::ostream& operator<<(std::ostream &s, const Fortran_Array1D<T> &A);
    00038
    00053 template <class T>
    00054 std::istream& operator>>(std::istream &s, Fortran_Array1D<T> &A);
    00055
    00056
    00057
    00058
    00059
    00060
    00061
    00062
    00074 template <class T>
    00075 Fortran_Array1D<T> operator+(const Fortran_Array1D<T> &A, const Fortran_Array1D<T> &B);
    00076
    00077
    00089 template <class T>
    00090 Fortran_Array1D<T> operator-(const Fortran_Array1D<T> &A, const Fortran_Array1D<T> &B);
    00091
    00092
    00104 template <class T>
    00105 Fortran_Array1D<T> operator*(const Fortran_Array1D<T> &A, const Fortran_Array1D<T> &B);
    00106
    00118 template <class T>
    00119 Fortran_Array1D<T> operator/(const Fortran_Array1D<T> &A, const Fortran_Array1D<T> &B);
    00120
    00121
    00122
    00123
    00124
    00125
    00126
    00138 template <class T>
    00139 Fortran_Array1D<T>&  operator+=(Fortran_Array1D<T> &A, const Fortran_Array1D<T> &B);
    00140
    00141
    00153 template <class T>
    00154 Fortran_Array1D<T>&  operator-=(Fortran_Array1D<T> &A, const Fortran_Array1D<T> &B);
    00155
    00156
    00168 template <class T>
    00169 Fortran_Array1D<T>&  operator*=(Fortran_Array1D<T> &A, const Fortran_Array1D<T> &B);
    00170
    00182 template <class T>
    00183 Fortran_Array1D<T>&  operator/=(Fortran_Array1D<T> &A, const Fortran_Array1D<T> &B);
    00184
    00185
    00186
    00187
    00188
    00189
    00190
    00191
    00192
    00193
    00194 } // namespace TNT
    00195
    00196 #endif