Chris@49: // Copyright (C) 2008-2010 NICTA (www.nicta.com.au) Chris@49: // Copyright (C) 2008-2010 Conrad Sanderson Chris@49: // Chris@49: // This Source Code Form is subject to the terms of the Mozilla Public Chris@49: // License, v. 2.0. If a copy of the MPL was not distributed with this Chris@49: // file, You can obtain one at http://mozilla.org/MPL/2.0/. Chris@49: Chris@49: Chris@49: Chris@49: Chris@49: //! \addtogroup operator_cube_times Chris@49: //! @{ Chris@49: Chris@49: Chris@49: Chris@49: //! BaseCube * scalar Chris@49: template Chris@49: arma_inline Chris@49: const eOpCube Chris@49: operator* Chris@49: ( Chris@49: const BaseCube& X, Chris@49: const typename T1::elem_type k Chris@49: ) Chris@49: { Chris@49: arma_extra_debug_sigprint(); Chris@49: Chris@49: return eOpCube(X.get_ref(), k); Chris@49: } Chris@49: Chris@49: Chris@49: Chris@49: //! scalar * BaseCube Chris@49: template Chris@49: arma_inline Chris@49: const eOpCube Chris@49: operator* Chris@49: ( Chris@49: const typename T1::elem_type k, Chris@49: const BaseCube& X Chris@49: ) Chris@49: { Chris@49: arma_extra_debug_sigprint(); Chris@49: Chris@49: return eOpCube(X.get_ref(), k); Chris@49: } Chris@49: Chris@49: Chris@49: Chris@49: //! non-complex BaseCube * complex scalar (experimental) Chris@49: template Chris@49: arma_inline Chris@49: const mtOpCube, T1, op_cx_scalar_times> Chris@49: operator* Chris@49: ( Chris@49: const BaseCube& X, Chris@49: const std::complex& k Chris@49: ) Chris@49: { Chris@49: arma_extra_debug_sigprint(); Chris@49: Chris@49: return mtOpCube, T1, op_cx_scalar_times>('j', X.get_ref(), k); Chris@49: } Chris@49: Chris@49: Chris@49: Chris@49: //! complex scalar * non-complex BaseCube (experimental) Chris@49: template Chris@49: arma_inline Chris@49: const mtOpCube, T1, op_cx_scalar_times> Chris@49: operator* Chris@49: ( Chris@49: const std::complex& k, Chris@49: const BaseCube& X Chris@49: ) Chris@49: { Chris@49: arma_extra_debug_sigprint(); Chris@49: Chris@49: return mtOpCube, T1, op_cx_scalar_times>('j', X.get_ref(), k); Chris@49: } Chris@49: Chris@49: Chris@49: Chris@49: //! @}