Blaze 3.9
Classes | 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/AddTrait.h>
#include <blaze/math/traits/DivTrait.h>
#include <blaze/math/traits/MapTrait.h>
#include <blaze/math/traits/MultTrait.h>
#include <blaze/math/traits/SubTrait.h>
#include <blaze/math/typetraits/HasLoad.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/IsPaddingEnabled.h>
#include <blaze/math/typetraits/IsScalar.h>
#include <blaze/math/typetraits/IsSIMDEnabled.h>
#include <blaze/math/typetraits/RequiresEvaluation.h>
#include <blaze/math/typetraits/UnderlyingScalar.h>
#include <blaze/system/HostDevice.h>
#include <blaze/system/Inline.h>
#include <blaze/util/Assert.h>
#include <blaze/util/EnableIf.h>
#include <blaze/util/FunctionTrace.h>
#include <blaze/util/IntegralConstant.h>
#include <blaze/util/mpl/If.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. More...
 
class  blaze::DMatMapExpr< MT, OP, SO >::ConstIterator
 Iterator over the elements of the dense matrix map expression. More...
 

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, typename ST , EnableIf_t< IsScalar_v< ST > > * = nullptr>
decltype(auto) blaze::min (const DenseMatrix< MT, SO > &dm, ST scalar)
 Computes the componentwise minimum of a dense matrix dm and a scalar. More...
 
template<typename ST , typename MT , bool SO, EnableIf_t< IsScalar_v< ST > > * = nullptr>
decltype(auto) blaze::min (ST scalar, const DenseMatrix< MT, SO > &dm)
 Computes the componentwise minimum of a scalar and a dense matrix dm. More...
 
template<typename MT , bool SO, typename ST , EnableIf_t< IsScalar_v< ST > > * = nullptr>
decltype(auto) blaze::max (const DenseMatrix< MT, SO > &dm, ST scalar)
 Computes the componentwise maximum of a dense matrix dm and a scalar. More...
 
template<typename ST , typename MT , bool SO, EnableIf_t< IsScalar_v< ST > > * = nullptr>
decltype(auto) blaze::max (ST scalar, const DenseMatrix< MT, SO > &dm)
 Computes the componentwise maximum of a scalar and a 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::sign (const DenseMatrix< MT, SO > &dm)
 Applies the sign() 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::arg (const DenseMatrix< MT, SO > &dm)
 Returns a matrix containing the phase angle 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 , EnableIf_t< IsScalar_v< ST > > * = nullptr>
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::log1p (const DenseMatrix< MT, SO > &dm)
 Computes the natural logarithm of x+1 for each single element of the dense matrix dm. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::lgamma (const DenseMatrix< MT, SO > &dm)
 Computes the natural logarithm of the absolute value of the gamma function 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...
 
template<typename MT , bool SO, typename ST , EnableIf_t< IsScalar_v< ST > > * = nullptr>
decltype(auto) blaze::operator+ (const DenseMatrix< MT, SO > &mat, ST scalar)
 Addition operator for the addition of a dense matrix and a scalar value ( $ A=B+s $). More...
 
template<typename ST , typename MT , bool SO, EnableIf_t< IsScalar_v< ST > > * = nullptr>
decltype(auto) blaze::operator+ (ST scalar, const DenseMatrix< MT, SO > &mat)
 Addition operator for the addition of a scalar value and a dense matrix ( $ A=s+B $). More...
 
template<typename MT , bool SO, typename ST , EnableIf_t< IsScalar_v< ST > > * = nullptr>
decltype(auto) blaze::operator- (const DenseMatrix< MT, SO > &mat, ST scalar)
 Subtraction operator for the subtraction of a dense matrix and a scalar value ( $ A=B-s $). More...
 
template<typename ST , typename MT , bool SO, EnableIf_t< IsScalar_v< ST > > * = nullptr>
decltype(auto) blaze::operator- (ST scalar, const DenseMatrix< MT, SO > &mat)
 Subtraction operator for the subtraction of a scalar value and a dense matrix ( $ A=s-B $). More...
 
template<typename ST , typename MT , bool SO, EnableIf_t< IsScalar_v< ST > > * = nullptr>
decltype(auto) blaze::operator/ (ST scalar, const DenseMatrix< MT, SO > &mat)
 Division operator for the division of a scalar value and a dense matrix ( $ A=s/B $). More...
 
template<typename MT , bool SO>
decltype(auto) blaze::operator<< (const DenseMatrix< MT, SO > &mat, int count)
 Left-shift operator for the uniform left-shift of a dense matrix. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::operator>> (const DenseMatrix< MT, SO > &mat, int count)
 Right-shift operator for the uniform right-shift of a dense matrix. More...
 
template<typename MT , bool SO, typename ST , EnableIf_t< IsScalar_v< ST > > * = nullptr>
decltype(auto) blaze::operator& (const DenseMatrix< MT, SO > &mat, ST scalar)
 Bitwise AND operator for the bitwise AND of a dense matrix and a scalar value. More...
 
template<typename MT , bool SO, typename ST , EnableIf_t< IsScalar_v< ST > > * = nullptr>
decltype(auto) blaze::operator| (const DenseMatrix< MT, SO > &mat, ST scalar)
 Bitwise OR operator for the bitwise OR of a dense matrix and a scalar value. More...
 
template<typename MT , bool SO, typename ST , EnableIf_t< IsScalar_v< ST > > * = nullptr>
decltype(auto) blaze::operator^ (const DenseMatrix< MT, SO > &mat, ST scalar)
 Bitwise XOR operator for the bitwise XOR of a dense matrix and a scalar value. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::operator! (const DenseMatrix< MT, SO > &mat)
 Logical NOT operator for the logical NOT of a dense matrix. More...
 

Detailed Description

Header file for the dense matrix map expression.

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