Mercurial > hg > segmenter-vamp-plugin
view armadillo-3.900.4/include/armadillo_bits/unwrap_spmat.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 source
// Copyright (C) 2012 NICTA (www.nicta.com.au) // Copyright (C) 2012 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 unwrap_spmat //! @{ template<typename T1> struct unwrap_spmat { typedef typename T1::elem_type eT; inline unwrap_spmat(const T1& A) : M(A) { arma_extra_debug_sigprint(); } const SpMat<eT> M; }; template<typename eT> struct unwrap_spmat< SpMat<eT> > { inline unwrap_spmat(const SpMat<eT>& A) : M(A) { arma_extra_debug_sigprint(); } const SpMat<eT>& M; }; template<typename eT> struct unwrap_spmat< SpRow<eT> > { inline unwrap_spmat(const SpRow<eT>& A) : M(A) { arma_extra_debug_sigprint(); } const SpRow<eT>& M; }; template<typename eT> struct unwrap_spmat< SpCol<eT> > { inline unwrap_spmat(const SpCol<eT>& A) : M(A) { arma_extra_debug_sigprint(); } const SpCol<eT>& M; }; template<typename T1, typename spop_type> struct unwrap_spmat< SpOp<T1, spop_type> > { typedef typename T1::elem_type eT; inline unwrap_spmat(const SpOp<T1, spop_type>& A) : M(A) { arma_extra_debug_sigprint(); } const SpMat<eT> M; }; template<typename T1, typename T2, typename spglue_type> struct unwrap_spmat< SpGlue<T1, T2, spglue_type> > { typedef typename T1::elem_type eT; inline unwrap_spmat(const SpGlue<T1, T2, spglue_type>& A) : M(A) { arma_extra_debug_sigprint(); } const SpMat<eT> M; }; template<typename out_eT, typename T1, typename spop_type> struct unwrap_spmat< mtSpOp<out_eT, T1, spop_type> > { inline unwrap_spmat(const mtSpOp<out_eT, T1, spop_type>& A) : M(A) { arma_extra_debug_sigprint(); } const SpMat<out_eT> M; }; //! @}