fn_cor.hpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 template<typename T1>
00024 inline
00025 const Op<T1, op_cor>
00026 cor(const Base<typename T1::elem_type,T1>& X, const u32 norm_type = 0)
00027 {
00028 arma_extra_debug_sigprint();
00029
00030 arma_debug_check( (norm_type > 1), "cor(): norm_type must be 0 or 1");
00031
00032 return Op<T1, op_cor>(X.get_ref(), norm_type, 0);
00033 }
00034
00035
00036
00037 template<typename T1, typename T2>
00038 inline
00039 const Glue<T1,T2,glue_cor>
00040 cor(const Base<typename T1::elem_type,T1>& A, const Base<typename T1::elem_type,T2>& B, const u32 norm_type = 0)
00041 {
00042 arma_extra_debug_sigprint();
00043
00044 arma_debug_check( (norm_type > 1), "cor(): norm_type must be 0 or 1");
00045
00046 return Glue<T1, T2, glue_cor>(A.get_ref(), B.get_ref(), norm_type);
00047 }
00048
00049
00050
00051