26 #if ! defined (octave_oct_norm_h)
27 #define octave_oct_norm_h 1
29 #include "octave-config.h"
33 #define DECLARE_XNORM_FUNCS(PREFIX, RTYPE) \
34 class PREFIX##Matrix; \
35 class PREFIX##ColumnVector; \
36 class PREFIX##RowVector; \
38 extern OCTAVE_API RTYPE \
39 xnorm (const PREFIX##ColumnVector&, RTYPE p = 2); \
40 extern OCTAVE_API RTYPE \
41 xnorm (const PREFIX##RowVector&, RTYPE p = 2); \
42 extern OCTAVE_API RTYPE \
43 xnorm (const PREFIX##Matrix&, RTYPE p = 2); \
44 extern OCTAVE_API RTYPE \
45 xfrobnorm (const PREFIX##Matrix&);
55 #define DECLARE_COLROW_NORM_FUNCS(PREFIX, RPREFIX, RTYPE) \
56 extern OCTAVE_API RPREFIX##RowVector \
57 xcolnorms (const PREFIX##Matrix&, RTYPE p = 2); \
58 extern OCTAVE_API RPREFIX##ColumnVector \
59 xrownorms (const PREFIX##Matrix&, RTYPE p = 2); \
std::complex< double > Complex
std::complex< float > FloatComplex
#define DECLARE_XNORM_FUNCS(PREFIX, RTYPE)
#define DECLARE_COLROW_NORM_FUNCS(PREFIX, RPREFIX, RTYPE)