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