Classes | Namespaces | Functions
DMatMapExpr.h File Reference

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

#include <iterator>
#include <utility>
#include <blaze/math/Aliases.h>
#include <blaze/math/constraints/DenseMatrix.h>
#include <blaze/math/constraints/RequiresEvaluation.h>
#include <blaze/math/constraints/StorageOrder.h>
#include <blaze/math/Exception.h>
#include <blaze/math/expressions/Computation.h>
#include <blaze/math/expressions/DenseMatrix.h>
#include <blaze/math/expressions/Forward.h>
#include <blaze/math/expressions/MatMapExpr.h>
#include <blaze/math/Functors.h>
#include <blaze/math/shims/Serial.h>
#include <blaze/math/SIMD.h>
#include <blaze/math/traits/MultTrait.h>
#include <blaze/math/traits/UnaryMapTrait.h>
#include <blaze/math/typetraits/IsAligned.h>
#include <blaze/math/typetraits/IsExpression.h>
#include <blaze/math/typetraits/IsHermitian.h>
#include <blaze/math/typetraits/IsLower.h>
#include <blaze/math/typetraits/IsPadded.h>
#include <blaze/math/typetraits/IsStrictlyLower.h>
#include <blaze/math/typetraits/IsStrictlyUpper.h>
#include <blaze/math/typetraits/IsSymmetric.h>
#include <blaze/math/typetraits/IsUniLower.h>
#include <blaze/math/typetraits/IsUniUpper.h>
#include <blaze/math/typetraits/IsUpper.h>
#include <blaze/math/typetraits/RequiresEvaluation.h>
#include <blaze/math/typetraits/Size.h>
#include <blaze/math/typetraits/UnderlyingBuiltin.h>
#include <blaze/math/typetraits/UnderlyingNumeric.h>
#include <blaze/system/Inline.h>
#include <blaze/util/Assert.h>
#include <blaze/util/EnableIf.h>
#include <blaze/util/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/IsBuiltin.h>
#include <blaze/util/typetraits/IsNumeric.h>
#include <blaze/util/typetraits/IsSame.h>

Go to the source code of this file.

Classes

class  blaze::DMatMapExpr< MT, OP, SO >
 Expression object for the dense matrix map() function.The DMatMapExpr class represents the compile time expression for the evaluation of a custom operation on each element of a dense matrix via the map() function. More...
 
class  blaze::DMatMapExpr< MT, OP, SO >::ConstIterator
 Iterator over the elements of the dense 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 DenseMatrix< MT, SO > &dm, OP op)
 Evaluates the given custom operation on each single element of the dense matrix dm. More...
 
template<typename MT , bool SO, typename OP >
decltype(auto) blaze::forEach (const DenseMatrix< MT, SO > &dm, OP op)
 Evaluates the given custom operation on each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::abs (const DenseMatrix< MT, SO > &dm)
 Applies the abs() function to each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::floor (const DenseMatrix< MT, SO > &dm)
 Applies the floor() function to each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::ceil (const DenseMatrix< MT, SO > &dm)
 Applies the ceil() function to each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::trunc (const DenseMatrix< MT, SO > &dm)
 Applies the trunc() function to each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::round (const DenseMatrix< MT, SO > &dm)
 Applies the round() function to each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::conj (const DenseMatrix< MT, SO > &dm)
 Returns a matrix containing the complex conjugate of each single element of dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::ctrans (const DenseMatrix< MT, SO > &dm)
 Returns the conjugate transpose matrix of dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::real (const DenseMatrix< MT, SO > &dm)
 Returns a matrix containing the real part of each single element of dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::imag (const DenseMatrix< MT, SO > &dm)
 Returns a matrix containing the imaginary part of each single element of dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::sqrt (const DenseMatrix< MT, SO > &dm)
 Computes the square root of each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::invsqrt (const DenseMatrix< MT, SO > &dm)
 Computes the inverse square root of each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::cbrt (const DenseMatrix< MT, SO > &dm)
 Computes the cubic root of each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::invcbrt (const DenseMatrix< MT, SO > &dm)
 Computes the inverse cubic root of each single element of the dense matrix dm. More...
 
template<typename MT , bool SO, typename DT >
decltype(auto) blaze::clamp (const DenseMatrix< MT, SO > &dm, const DT &min, const DT &max)
 Restricts each single element of the dense matrix dm to the range $[min..max]$. More...
 
template<typename MT , bool SO, typename ST , typename = EnableIf_< IsNumeric<ST> >>
decltype(auto) blaze::pow (const DenseMatrix< MT, SO > &dm, ST exp)
 Computes the exponential value for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::exp (const DenseMatrix< MT, SO > &dm)
 Computes $ e^x $ for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::exp2 (const DenseMatrix< MT, SO > &dm)
 Computes $ 2^x $ for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::exp10 (const DenseMatrix< MT, SO > &dm)
 Computes $ 10^x $ for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::log (const DenseMatrix< MT, SO > &dm)
 Computes the natural logarithm for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::log2 (const DenseMatrix< MT, SO > &dm)
 Computes the binary logarithm for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::log10 (const DenseMatrix< MT, SO > &dm)
 Computes the common logarithm for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::sin (const DenseMatrix< MT, SO > &dm)
 Computes the sine for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::asin (const DenseMatrix< MT, SO > &dm)
 Computes the inverse sine for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::sinh (const DenseMatrix< MT, SO > &dm)
 Computes the hyperbolic sine for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::asinh (const DenseMatrix< MT, SO > &dm)
 Computes the inverse hyperbolic sine for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::cos (const DenseMatrix< MT, SO > &dm)
 Computes the cosine for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::acos (const DenseMatrix< MT, SO > &dm)
 Computes the inverse cosine for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::cosh (const DenseMatrix< MT, SO > &dm)
 Computes the hyperbolic cosine for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::acosh (const DenseMatrix< MT, SO > &dm)
 Computes the inverse hyperbolic cosine for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::tan (const DenseMatrix< MT, SO > &dm)
 Computes the tangent for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::atan (const DenseMatrix< MT, SO > &dm)
 Computes the inverse tangent for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::tanh (const DenseMatrix< MT, SO > &dm)
 Computes the hyperbolic tangent for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::atanh (const DenseMatrix< MT, SO > &dm)
 Computes the inverse hyperbolic tangent for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::erf (const DenseMatrix< MT, SO > &dm)
 Computes the error function for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::erfc (const DenseMatrix< MT, SO > &dm)
 Computes the complementary error function for each single element of the dense matrix dm. More...
 

Detailed Description

Header file for the dense matrix 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.