Classes | Namespaces | Functions
SVecMapExpr.h File Reference

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

#include <iterator>
#include <utility>
#include <blaze/math/Aliases.h>
#include <blaze/math/constraints/RequiresEvaluation.h>
#include <blaze/math/constraints/SparseVector.h>
#include <blaze/math/constraints/TransposeFlag.h>
#include <blaze/math/Exception.h>
#include <blaze/math/expressions/Computation.h>
#include <blaze/math/expressions/Forward.h>
#include <blaze/math/expressions/SparseVector.h>
#include <blaze/math/expressions/VecMapExpr.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/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::SVecMapExpr< VT, OP, TF >
 Expression object for the sparse vector map() function.The SVecMapExpr class represents the compile time expression for the evaluation of a custom operation on each element of a sparse vector via the map() function. More...
 
class  blaze::SVecMapExpr< VT, OP, TF >::ConstIterator
 Iterator over the elements of the sparse vector map expression. More...
 

Namespaces

 blaze
 Namespace of the Blaze C++ math library.
 

Functions

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

Detailed Description

Header file for the sparse vector map expression.

Copyright (C) 2012-2018 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.