00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #if !defined (octave_MArray_defs_h)
00026 #define octave_MArray_defs_h 1
00027
00028 #include "mx-inlines.cc"
00029
00030
00031 #define MARRAY_OP_ASSIGN_DEFS(A_T, E_T, RHS_T, API) \
00032 MARRAY_OP_ASSIGN_DECLS (A_T, E_T, template, API, , RHS_T)
00033
00034 #define MARRAY_OP_ASSIGN_DEFS1(A_T, E_T, RHS_T, API) \
00035 MARRAY_OP_ASSIGN_DECLS1 (A_T, E_T, template, API, , RHS_T)
00036
00037
00038 #define MARRAY_UNOP_DEFS(A_T, E_T, API) \
00039 MARRAY_UNOP_DECLS (A_T, E_T, template, API, )
00040
00041
00042 #define MARRAY_BINOP_DEFS(A_T, E_T, API) \
00043 MARRAY_BINOP_DECLS (A_T, E_T, template, API, , A_T<E_T>, E_T) \
00044 MARRAY_BINOP_DECLS (A_T, E_T, template, API, , E_T, A_T<E_T>) \
00045 MARRAY_AA_BINOP_DECLS (A_T, E_T, template, API, )
00046
00047 #define MDIAGARRAY2_BINOP_DEFS(A_T, E_T, API) \
00048 MDIAGARRAY2_DAS_BINOP_DECLS (A_T, E_T, template, API, , A_T<E_T>, E_T) \
00049 MDIAGARRAY2_SDA_BINOP_DECLS (A_T, E_T, template, API, , E_T, A_T<E_T>) \
00050 MDIAGARRAY2_DADA_BINOP_DECLS (A_T, E_T, template, API, )
00051
00052
00053
00054
00055 #define INSTANTIATE_MARRAY_FRIENDS(T, API) \
00056 MARRAY_OP_ASSIGN_DEFS1 (MArray, T, T, API) \
00057 MARRAY_OP_ASSIGN_DEFS (MArray, T, MArray<T>, API) \
00058 MARRAY_UNOP_DEFS (MArray, T, API) \
00059 MARRAY_BINOP_DEFS (MArray, T, API)
00060
00061
00062 #define INSTANTIATE_MARRAY2_FRIENDS(T, API) \
00063 MARRAY_OP_ASSIGN_DEFS1 (MArray2, T, T, API) \
00064 MARRAY_OP_ASSIGN_DEFS (MArray2, T, MArray2<T>, API) \
00065 MARRAY_UNOP_DEFS (MArray2, T, API) \
00066 MARRAY_BINOP_DEFS (MArray2, T, API)
00067
00068
00069 #define INSTANTIATE_MARRAYN_FRIENDS(T, API) \
00070 MARRAY_OP_ASSIGN_DEFS1 (MArrayN, T, T, API) \
00071 MARRAY_OP_ASSIGN_DEFS (MArrayN, T, MArrayN<T>, API) \
00072 MARRAY_UNOP_DEFS (MArrayN, T, API) \
00073 MARRAY_BINOP_DEFS (MArrayN, T, API)
00074
00075
00076 #define INSTANTIATE_MDIAGARRAY2_FRIENDS(T, API) \
00077 MARRAY_UNOP_DEFS (MDiagArray2, T, API) \
00078 MDIAGARRAY2_BINOP_DEFS (MDiagArray2, T, API)
00079
00080
00081
00082 #endif