![]() |
Blaze 3.9
|
Header file for the sparse vector reduce expression. More...
#include <blaze/math/Aliases.h>
#include <blaze/math/expressions/SparseVector.h>
#include <blaze/math/functors/Add.h>
#include <blaze/math/functors/Max.h>
#include <blaze/math/functors/Min.h>
#include <blaze/math/functors/Mult.h>
#include <blaze/util/Assert.h>
#include <blaze/util/FunctionTrace.h>
#include <blaze/util/Types.h>
Go to the source code of this file.
Functions | |
template<typename VT , bool TF, typename OP > | |
decltype(auto) | blaze::reduce (const SparseVector< VT, TF > &sv, OP op) |
Performs a custom reduction operation on the given sparse vector. More... | |
template<typename VT , bool TF> | |
decltype(auto) | blaze::sum (const SparseVector< VT, TF > &sv) |
Reduces the given sparse vector by means of addition. More... | |
template<typename VT , bool TF> | |
decltype(auto) | blaze::prod (const SparseVector< VT, TF > &sv) |
Reduces the given sparse vector by means of multiplication. More... | |
template<typename VT , bool TF> | |
decltype(auto) | blaze::min (const SparseVector< VT, TF > &sv) |
Returns the smallest element of the sparse vector. More... | |
template<typename VT , bool TF> | |
decltype(auto) | blaze::max (const SparseVector< VT, TF > &sv) |
Returns the largest element of the sparse vector. More... | |
template<typename VT , bool TF> | |
size_t | blaze::argmin (const SparseVector< VT, TF > &sv) |
Returns the index of the first smallest non-zero element of the sparse vector. More... | |
template<typename VT , bool TF> | |
size_t | blaze::argmax (const SparseVector< VT, TF > &sv) |
Returns the index of the first largest non-zero element of the sparse vector. More... | |
Header file for the sparse vector reduce 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:
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.