// SPDX-License-Identifier: Apache-2.0 // // Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au) // Copyright 2008-2016 National ICT Australia (NICTA) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // ------------------------------------------------------------------------ //! \addtogroup SpSubview_col_list //! @{ template class SpSubview_col_list : public SpBase< eT, SpSubview_col_list > { public: typedef eT elem_type; typedef typename get_pod_type::result pod_type; static constexpr bool is_row = false; static constexpr bool is_col = false; static constexpr bool is_xvec = false; const SpMat& m; const quasi_unwrap U_ci; protected: arma_inline SpSubview_col_list(const SpMat& in_m, const Base& in_ci); public: inline ~SpSubview_col_list(); inline SpSubview_col_list() = delete; template inline void for_each(functor F); template inline void for_each(functor F) const; template inline void transform(functor F); inline void replace(const eT old_val, const eT new_val); inline void clean(const pod_type threshold); inline void fill(const eT val); inline void zeros(); inline void ones(); inline void operator+= (const eT val); inline void operator-= (const eT val); inline void operator*= (const eT val); inline void operator/= (const eT val); template inline void operator= (const Base& x); template inline void operator+=(const Base& x); template inline void operator-=(const Base& x); template inline void operator%=(const Base& x); template inline void operator/=(const Base& x); inline void operator= (const SpSubview_col_list& x); template inline void operator= (const SpSubview_col_list& x); template inline void operator= (const SpBase& x); template inline void operator+= (const SpBase& x); template inline void operator-= (const SpBase& x); template inline void operator%= (const SpBase& x); template inline void operator/= (const SpBase& x); inline static void extract(SpMat& out, const SpSubview_col_list& in); inline static void plus_inplace(SpMat& out, const SpSubview_col_list& in); inline static void minus_inplace(SpMat& out, const SpSubview_col_list& in); inline static void schur_inplace(SpMat& out, const SpSubview_col_list& in); inline static void div_inplace(SpMat& out, const SpSubview_col_list& in); friend class SpMat; }; //! @}