Classes | Namespaces | Functions
DVecForEachExpr.h File Reference

Header file for the dense vector for-each expression. More...

#include <iterator>
#include <utility>
#include <blaze/math/Aliases.h>
#include <blaze/math/constraints/DenseVector.h>
#include <blaze/math/constraints/TransposeFlag.h>
#include <blaze/math/Exception.h>
#include <blaze/math/expressions/Computation.h>
#include <blaze/math/expressions/DenseVector.h>
#include <blaze/math/expressions/Forward.h>
#include <blaze/math/expressions/VecForEachExpr.h>
#include <blaze/math/Functors.h>
#include <blaze/math/shims/Serial.h>
#include <blaze/math/SIMD.h>
#include <blaze/math/traits/CTransExprTrait.h>
#include <blaze/math/traits/ForEachExprTrait.h>
#include <blaze/math/traits/ForEachTrait.h>
#include <blaze/math/traits/SubvectorExprTrait.h>
#include <blaze/math/typetraits/IsAligned.h>
#include <blaze/math/typetraits/IsComputation.h>
#include <blaze/math/typetraits/IsExpression.h>
#include <blaze/math/typetraits/IsPadded.h>
#include <blaze/math/typetraits/RequiresEvaluation.h>
#include <blaze/math/typetraits/Size.h>
#include <blaze/math/typetraits/UnderlyingNumeric.h>
#include <blaze/system/Inline.h>
#include <blaze/util/Assert.h>
#include <blaze/util/constraints/Reference.h>
#include <blaze/util/EnableIf.h>
#include <blaze/util/IntegralConstant.h>
#include <blaze/util/logging/FunctionTrace.h>
#include <blaze/util/mpl/And.h>
#include <blaze/util/mpl/If.h>
#include <blaze/util/mpl/Not.h>
#include <blaze/util/Template.h>
#include <blaze/util/Types.h>
#include <blaze/util/typetraits/HasMember.h>
#include <blaze/util/typetraits/IsSame.h>

Go to the source code of this file.

Classes

class  blaze::DVecForEachExpr< VT, OP, TF >
 Expression object for the dense vector forEach() function.The DVecForEachExpr class represents the compile time expression for the evaluation of a custom operation on each element of a dense vector via the forEach() function. More...
 
class  blaze::DVecForEachExpr< VT, OP, TF >::ConstIterator
 Iterator over the elements of the dense vector. More...
 

Namespaces

 blaze
 Namespace of the Blaze C++ math library.
 

Functions

template<typename VT , bool TF, typename OP >
const DVecForEachExpr< VT, OP, TF > blaze::forEach (const DenseVector< VT, TF > &dv, OP op)
 Evaluates the given custom operation on each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Abs, TF > blaze::abs (const DenseVector< VT, TF > &dv)
 Applies the abs() function to each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Floor, TF > blaze::floor (const DenseVector< VT, TF > &dv)
 Applies the floor() function to each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Ceil, TF > blaze::ceil (const DenseVector< VT, TF > &dv)
 Applies the ceil() function to each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Conj, TF > blaze::conj (const DenseVector< VT, TF > &dv)
 Returns a vector containing the complex conjugate of each single element of dv. More...
 
template<typename VT , bool TF>
const CTransExprTrait_< VT > blaze::ctrans (const DenseVector< VT, TF > &dv)
 Returns the conjugate transpose vector of dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Real, TF > blaze::real (const DenseVector< VT, TF > &dv)
 Returns a vector containing the real part of each single element of dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Imag, TF > blaze::imag (const DenseVector< VT, TF > &dv)
 Returns a vector containing the imaginary part of each single element of dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Sqrt, TF > blaze::sqrt (const DenseVector< VT, TF > &dv)
 Computes the square root of each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, InvSqrt, TF > blaze::invsqrt (const DenseVector< VT, TF > &dv)
 Computes the inverse square root of each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Cbrt, TF > blaze::cbrt (const DenseVector< VT, TF > &dv)
 Computes the cubic root of each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, InvCbrt, TF > blaze::invcbrt (const DenseVector< VT, TF > &dv)
 Computes the inverse cubic root of each single element of the dense vector dv. More...
 
template<typename VT , bool TF, typename DT >
const DVecForEachExpr< VT, Clip< DT >, TF > blaze::clip (const DenseVector< VT, TF > &dv, const DT &min, const DT &max)
 Restricts each single element of the dense vector dv to the range $[min..max]$. More...
 
template<typename VT , bool TF, typename ET >
const DVecForEachExpr< VT, Pow< ET >, TF > blaze::pow (const DenseVector< VT, TF > &dv, ET exp)
 Computes the exponential value for each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Exp, TF > blaze::exp (const DenseVector< VT, TF > &dv)
 Computes $ e^x $ for each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Log, TF > blaze::log (const DenseVector< VT, TF > &dv)
 Computes the natural logarithm for each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Log10, TF > blaze::log10 (const DenseVector< VT, TF > &dv)
 Computes the common logarithm for each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Sin, TF > blaze::sin (const DenseVector< VT, TF > &dv)
 Computes the sine for each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Asin, TF > blaze::asin (const DenseVector< VT, TF > &dv)
 Computes the inverse sine for each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Sinh, TF > blaze::sinh (const DenseVector< VT, TF > &dv)
 Computes the hyperbolic sine for each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Asinh, TF > blaze::asinh (const DenseVector< VT, TF > &dv)
 Computes the inverse hyperbolic sine for each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Cos, TF > blaze::cos (const DenseVector< VT, TF > &dv)
 Computes the cosine for each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Acos, TF > blaze::acos (const DenseVector< VT, TF > &dv)
 Computes the inverse cosine for each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Cosh, TF > blaze::cosh (const DenseVector< VT, TF > &dv)
 Computes the hyperbolic cosine for each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Acosh, TF > blaze::acosh (const DenseVector< VT, TF > &dv)
 Computes the inverse hyperbolic cosine for each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Tan, TF > blaze::tan (const DenseVector< VT, TF > &dv)
 Computes the tangent for each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Atan, TF > blaze::atan (const DenseVector< VT, TF > &dv)
 Computes the inverse tangent for each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Tanh, TF > blaze::tanh (const DenseVector< VT, TF > &dv)
 Computes the hyperbolic tangent for each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Atanh, TF > blaze::atanh (const DenseVector< VT, TF > &dv)
 Computes the inverse hyperbolic tangent for each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Erf, TF > blaze::erf (const DenseVector< VT, TF > &dv)
 Computes the error function for each single element of the dense vector dv. More...
 
template<typename VT , bool TF>
const DVecForEachExpr< VT, Erfc, TF > blaze::erfc (const DenseVector< VT, TF > &dv)
 Computes the complementary error function for each single element of the dense vector dv. More...
 

Detailed Description

Header file for the dense vector for-each expression.

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