メインページ   クラス階層   構成   ファイル一覧   構成メンバ   ファイルメンバ  

MArray.cc の解説

#include "MArray.h"
#include "Array-util.h"
#include "lo-error.h"
#include "MArray-defs.h"

MArray.ccのインクルード依存関係図

Include dependency graph

このグラフは、どのファイルから直接、間接的にインクルードされているかを示しています。

Included by dependency graph

ソースコードを見る。

マクロ定義

#define MARRAY_AS_OP(OP)
#define MARRAY_SA_OP(OP)
#define MARRAY_AA_OP(FCN, OP)

関数

template<class T> MArray< T > & operator+= (MArray< T > &a, const T &s)
template<class T> MArray< T > & operator-= (MArray< T > &a, const T &s)
template<class T> MArray< T > & operator+= (MArray< T > &a, const MArray< T > &b)
template<class T> MArray< T > & operator-= (MArray< T > &a, const MArray< T > &b)
template<class T> MArray< T > operator+ (const MArray< T > &a)
template<class T> MArray< T > operator- (const MArray< T > &a)


マクロ定義の解説

#define MARRAY_AA_OP FCN,
OP   
 

値:

template <class T> \
  MArray<T> \
  FCN (const MArray<T>& a, const MArray<T>& b) \
  { \
    int l = a.length (); \
    int bl = b.length (); \
    if (l != bl) \
      { \
        gripe_nonconformant (#FCN, l, bl); \
        return MArray<T> (); \
      } \
    if (l == 0) \
      return MArray<T> (); \
    MArray<T> result (l); \
    T *r = result.fortran_vec (); \
    const T *x = a.data (); \
    const T *y = b.data (); \
    DO_VV_OP (r, l, x, OP, y); \
    return result; \
  }

MArray.cc133 行で定義されています。

#define MARRAY_AS_OP OP   
 

値:

template <class T> \
  MArray<T> \
  operator OP (const MArray<T>& a, const T& s) \
  { \
    MArray<T> result (a.length ()); \
    T *r = result.fortran_vec (); \
    int l = a.length (); \
    const T *v = a.data (); \
    DO_VS_OP (r, l, v, OP, s); \
    return result; \
  }

MArray.cc93 行で定義されています。

#define MARRAY_SA_OP OP   
 

値:

template <class T> \
  MArray<T> \
  operator OP (const T& s, const MArray<T>& a) \
  { \
    MArray<T> result (a.length ()); \
    T *r = result.fortran_vec (); \
    int l = a.length (); \
    const T *v = a.data (); \
    DO_SV_OP (r, l, s, OP, v); \
    return result; \
  }

MArray.cc113 行で定義されています。


関数の解説

template<class T>
MArray<T> operator+ const MArray< T > &    a
 

MArray.cc164 行で定義されています。

template<class T>
MArray<T>& operator+= MArray< T > &    a,
const MArray< T > &    b
 

MArray.cc61 行で定義されています。

参照 b, DO_VV_OP2, gripe_nonconformant(), と Array< T >::length().

template<class T>
MArray<T>& operator+= MArray< T > &    a,
const T &    s
 

MArray.cc43 行で定義されています。

参照 DO_VS_OP2.

template<class T>
MArray<T> operator- const MArray< T > &    a
 

MArray.cc171 行で定義されています。

参照 Array< T >::data(), Array< T >::fortran_vec(), Array< T >::length(), と NEG_V.

template<class T>
MArray<T>& operator-= MArray< T > &    a,
const MArray< T > &    b
 

MArray.cc77 行で定義されています。

参照 b, DO_VV_OP2, gripe_nonconformant(), と Array< T >::length().

template<class T>
MArray<T>& operator-= MArray< T > &    a,
const T &    s
 

MArray.cc51 行で定義されています。

参照 DO_VS_OP2.


Wed Dec 29 12:12:33 2004に生成されました。 doxygen1.2.18
SEO [PR] 爆速!無料ブログ 無料ホームページ開設 無料ライブ放送