Blaze  3.6
Classes | Namespaces | Functions
SMatMapExpr.h File Reference

Header file for the sparse matrix map expression. More...

#include <iterator>
#include <utility>
#include <blaze/math/Aliases.h>
#include <blaze/math/constraints/RequiresEvaluation.h>
#include <blaze/math/constraints/SparseMatrix.h>
#include <blaze/math/constraints/StorageOrder.h>
#include <blaze/math/Exception.h>
#include <blaze/math/expressions/Computation.h>
#include <blaze/math/expressions/Forward.h>
#include <blaze/math/expressions/MatMapExpr.h>
#include <blaze/math/expressions/SparseMatrix.h>
#include <blaze/math/Functors.h>
#include <blaze/math/shims/Serial.h>
#include <blaze/math/sparse/ValueIndexPair.h>
#include <blaze/math/traits/MapTrait.h>
#include <blaze/math/traits/MultTrait.h>
#include <blaze/math/typetraits/IsComputation.h>
#include <blaze/math/typetraits/IsExpression.h>
#include <blaze/math/typetraits/RequiresEvaluation.h>
#include <blaze/math/typetraits/UnderlyingBuiltin.h>
#include <blaze/math/typetraits/UnderlyingNumeric.h>
#include <blaze/util/Assert.h>
#include <blaze/util/EnableIf.h>
#include <blaze/util/FunctionTrace.h>
#include <blaze/util/mpl/If.h>
#include <blaze/util/Types.h>
#include <blaze/util/typetraits/IsBuiltin.h>
#include <blaze/util/typetraits/IsNumeric.h>
#include <blaze/util/typetraits/IsSame.h>
#include <blaze/util/typetraits/RemoveReference.h>

Go to the source code of this file.

Classes

class  blaze::SMatMapExpr< MT, OP, SO >
 Expression object for the sparse matrix map() function.The SMatMapExpr class represents the compile time expression for the evaluation of a custom operation on each element of a sparse matrix via the map() function. More...
 
class  blaze::SMatMapExpr< MT, OP, SO >::ConstIterator
 Iterator over the elements of the sparse matrix map expression. More...
 

Namespaces

 blaze
 Namespace of the Blaze C++ math library.
 

Functions

template<typename MT , bool SO, typename OP >
decltype(auto) blaze::map (const SparseMatrix< MT, SO > &sm, OP op)
 Evaluates the given custom operation on each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO, typename OP >
decltype(auto) blaze::forEach (const SparseMatrix< MT, SO > &sm, OP op)
 Evaluates the given custom operation on each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::abs (const SparseMatrix< MT, SO > &sm)
 Applies the abs() function to each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::sign (const SparseMatrix< MT, SO > &sm)
 Applies the sign() function to each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::floor (const SparseMatrix< MT, SO > &sm)
 Applies the floor() function to each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::ceil (const SparseMatrix< MT, SO > &sm)
 Applies the ceil() function to each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::trunc (const SparseMatrix< MT, SO > &sm)
 Applies the trunc() function to each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::round (const SparseMatrix< MT, SO > &sm)
 Applies the round() function to each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::conj (const SparseMatrix< MT, SO > &sm)
 Returns a matrix containing the complex conjugate of each single element of sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::ctrans (const SparseMatrix< MT, SO > &sm)
 Returns the conjugate transpose matrix of sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::real (const SparseMatrix< MT, SO > &sm)
 Returns a matrix containing the real parts of each single element of sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::imag (const SparseMatrix< MT, SO > &sm)
 Returns a matrix containing the imaginary parts of each single element of sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::sqrt (const SparseMatrix< MT, SO > &sm)
 Computes the square root of each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::invsqrt (const SparseMatrix< MT, SO > &sm)
 Computes the inverse square root of each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::cbrt (const SparseMatrix< MT, SO > &sm)
 Computes the cubic root of each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::invcbrt (const SparseMatrix< MT, SO > &sm)
 Computes the inverse cubic root of each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO, typename DT >
decltype(auto) blaze::clamp (const SparseMatrix< MT, SO > &sm, const DT &min, const DT &max)
 Restricts each single element of the sparse matrix sm to the range $[min..max]$. More...
 
template<typename MT , bool SO, typename ST , EnableIf_t< IsNumeric_v< ST > > * = nullptr>
decltype(auto) blaze::pow (const SparseMatrix< MT, SO > &sm, ST exp)
 Computes the exponential value for each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::exp (const SparseMatrix< MT, SO > &sm)
 Computes $ e^x $ for each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::exp2 (const SparseMatrix< MT, SO > &sm)
 Computes $ 2^x $ for each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::exp10 (const SparseMatrix< MT, SO > &sm)
 Computes $ 10^x $ for each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::log (const SparseMatrix< MT, SO > &sm)
 Computes the natural logarithm for each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::log2 (const SparseMatrix< MT, SO > &sm)
 Computes the binary logarithm for each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::log10 (const SparseMatrix< MT, SO > &sm)
 Computes the common logarithm for each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::sin (const SparseMatrix< MT, SO > &sm)
 Computes the sine for each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::asin (const SparseMatrix< MT, SO > &sm)
 Computes the inverse sine for each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::sinh (const SparseMatrix< MT, SO > &sm)
 Computes the hyperbolic sine for each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::asinh (const SparseMatrix< MT, SO > &sm)
 Computes the inverse hyperbolic sine for each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::cos (const SparseMatrix< MT, SO > &sm)
 Computes the cosine for each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::acos (const SparseMatrix< MT, SO > &sm)
 Computes the inverse cosine for each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::cosh (const SparseMatrix< MT, SO > &sm)
 Computes the hyperbolic cosine for each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::acosh (const SparseMatrix< MT, SO > &sm)
 Computes the inverse hyperbolic cosine for each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::tan (const SparseMatrix< MT, SO > &sm)
 Computes the tangent for each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::atan (const SparseMatrix< MT, SO > &sm)
 Computes the inverse tangent for each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::tanh (const SparseMatrix< MT, SO > &sm)
 Computes the hyperbolic tangent for each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::atanh (const SparseMatrix< MT, SO > &sm)
 Computes the inverse hyperbolic tangent for each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::erf (const SparseMatrix< MT, SO > &sm)
 Computes the error function for each non-zero element of the sparse matrix sm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::erfc (const SparseMatrix< MT, SO > &sm)
 Computes the complementary error function for each non-zero element of the sparse matrix sm. More...
 

Detailed Description

Header file for the sparse matrix map expression.

Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved

This file is part of the Blaze library. You can redistribute it and/or modify it under the terms of the New (Revised) BSD License. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the names of the Blaze development group nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.