Mercurial > hg > segmenter-vamp-plugin
diff armadillo-3.900.4/include/armadillo_bits/fn_trig.hpp @ 49:1ec0e2823891
Switch to using subrepo copies of qm-dsp, nnls-chroma, vamp-plugin-sdk; update Armadillo version; assume build without external BLAS/LAPACK
author | Chris Cannam |
---|---|
date | Thu, 13 Jun 2013 10:25:24 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/armadillo-3.900.4/include/armadillo_bits/fn_trig.hpp Thu Jun 13 10:25:24 2013 +0100 @@ -0,0 +1,343 @@ +// Copyright (C) 2009-2010 NICTA (www.nicta.com.au) +// Copyright (C) 2009-2010 Conrad Sanderson +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + + +//! \addtogroup fn_trig +//! @{ + +// +// trigonometric functions: +// cos family: cos, acos, cosh, acosh +// sin family: sin, asin, sinh, asinh +// tan family: tan, atan, tanh, atanh + + +// +// cos + +template<typename T1> +arma_inline +const eOp<T1, eop_cos> +cos(const Base<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOp<T1, eop_cos>(A.get_ref()); + } + + + +template<typename T1> +arma_inline +const eOpCube<T1, eop_cos> +cos(const BaseCube<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOpCube<T1, eop_cos>(A.get_ref()); + } + + + +// +// acos + +template<typename T1> +arma_inline +const eOp<T1, eop_acos> +acos(const Base<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOp<T1, eop_acos>(A.get_ref()); + } + + + +template<typename T1> +arma_inline +const eOpCube<T1, eop_acos> +acos(const BaseCube<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOpCube<T1, eop_acos>(A.get_ref()); + } + + + +// +// cosh + +template<typename T1> +arma_inline +const eOp<T1, eop_cosh> +cosh(const Base<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOp<T1, eop_cosh>(A.get_ref()); + } + + + +template<typename T1> +arma_inline +const eOpCube<T1, eop_cosh> +cosh(const BaseCube<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOpCube<T1, eop_cosh>(A.get_ref()); + } + + + +// +// acosh + +template<typename T1> +arma_inline +const eOp<T1, eop_acosh> +acosh(const Base<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOp<T1, eop_acosh>(A.get_ref()); + } + + + +template<typename T1> +arma_inline +const eOpCube<T1, eop_acosh> +acosh(const BaseCube<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOpCube<T1, eop_acosh>(A.get_ref()); + } + + + +// +// sin + +template<typename T1> +arma_inline +const eOp<T1, eop_sin> +sin(const Base<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOp<T1, eop_sin>(A.get_ref()); + } + + + +template<typename T1> +arma_inline +const eOpCube<T1, eop_sin> +sin(const BaseCube<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOpCube<T1, eop_sin>(A.get_ref()); + } + + + +// +// asin + +template<typename T1> +arma_inline +const eOp<T1, eop_asin> +asin(const Base<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOp<T1, eop_asin>(A.get_ref()); + } + + + +template<typename T1> +arma_inline +const eOpCube<T1, eop_asin> +asin(const BaseCube<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOpCube<T1, eop_asin>(A.get_ref()); + } + + + +// +// sinh + +template<typename T1> +arma_inline +const eOp<T1, eop_sinh> +sinh(const Base<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOp<T1, eop_sinh>(A.get_ref()); + } + + + +template<typename T1> +arma_inline +const eOpCube<T1, eop_sinh> +sinh(const BaseCube<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOpCube<T1, eop_sinh>(A.get_ref()); + } + + + +// +// asinh + +template<typename T1> +arma_inline +const eOp<T1, eop_asinh> +asinh(const Base<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOp<T1, eop_asinh>(A.get_ref()); + } + + + +template<typename T1> +arma_inline +const eOpCube<T1, eop_asinh> +asinh(const BaseCube<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOpCube<T1, eop_asinh>(A.get_ref()); + } + + + +// +// tan + +template<typename T1> +arma_inline +const eOp<T1, eop_tan> +tan(const Base<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOp<T1, eop_tan>(A.get_ref()); + } + + + +template<typename T1> +arma_inline +const eOpCube<T1, eop_tan> +tan(const BaseCube<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOpCube<T1, eop_tan>(A.get_ref()); + } + + + +// +// atan + +template<typename T1> +arma_inline +const eOp<T1, eop_atan> +atan(const Base<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOp<T1, eop_atan>(A.get_ref()); + } + + + +template<typename T1> +arma_inline +const eOpCube<T1, eop_atan> +atan(const BaseCube<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOpCube<T1, eop_atan>(A.get_ref()); + } + + + +// +// tanh + +template<typename T1> +arma_inline +const eOp<T1, eop_tanh> +tanh(const Base<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOp<T1, eop_tanh>(A.get_ref()); + } + + + +template<typename T1> +arma_inline +const eOpCube<T1, eop_tanh> +tanh(const BaseCube<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOpCube<T1, eop_tanh>(A.get_ref()); + } + + + +// +// atanh + +template<typename T1> +arma_inline +const eOp<T1, eop_atanh> +atanh(const Base<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOp<T1, eop_atanh>(A.get_ref()); + } + + + +template<typename T1> +arma_inline +const eOpCube<T1, eop_atanh> +atanh(const BaseCube<typename T1::elem_type,T1>& A) + { + arma_extra_debug_sigprint(); + + return eOpCube<T1, eop_atanh>(A.get_ref()); + } + + + +//! @}