Namespaces | Functions
Subvector.h File Reference

Header file for the implementation of the Subvector view. More...

#include <blaze/math/Aliases.h>
#include <blaze/math/AlignmentFlag.h>
#include <blaze/math/Exception.h>
#include <blaze/math/expressions/CrossExpr.h>
#include <blaze/math/expressions/VecEvalExpr.h>
#include <blaze/math/expressions/VecMapExpr.h>
#include <blaze/math/expressions/VecScalarDivExpr.h>
#include <blaze/math/expressions/VecScalarMultExpr.h>
#include <blaze/math/expressions/VecSerialExpr.h>
#include <blaze/math/expressions/Vector.h>
#include <blaze/math/expressions/VecTransExpr.h>
#include <blaze/math/expressions/VecVecAddExpr.h>
#include <blaze/math/expressions/VecVecDivExpr.h>
#include <blaze/math/expressions/VecVecMapExpr.h>
#include <blaze/math/expressions/VecVecMultExpr.h>
#include <blaze/math/expressions/VecVecSubExpr.h>
#include <blaze/math/shims/IsDefault.h>
#include <blaze/math/shims/Serial.h>
#include <blaze/math/traits/AddTrait.h>
#include <blaze/math/traits/CrossTrait.h>
#include <blaze/math/traits/DivTrait.h>
#include <blaze/math/traits/MultTrait.h>
#include <blaze/math/traits/SubTrait.h>
#include <blaze/math/traits/SubvectorTrait.h>
#include <blaze/math/typetraits/HasConstDataAccess.h>
#include <blaze/math/typetraits/HasMutableDataAccess.h>
#include <blaze/math/typetraits/IsAligned.h>
#include <blaze/math/views/subvector/BaseTemplate.h>
#include <blaze/math/views/subvector/Dense.h>
#include <blaze/math/views/subvector/Sparse.h>
#include <blaze/util/FunctionTrace.h>
#include <blaze/util/IntegralConstant.h>
#include <blaze/util/TrueType.h>
#include <blaze/util/Types.h>
#include <blaze/util/typetraits/RemoveReference.h>

Go to the source code of this file.

Namespaces

 blaze
 Namespace of the Blaze C++ math library.
 

Functions

template<typename VT , bool TF>
decltype(auto) blaze::subvector (Vector< VT, TF > &vector, size_t index, size_t size)
 Creating a view on a specific subvector of the given vector. More...
 
template<typename VT , bool TF>
decltype(auto) blaze::subvector (const Vector< VT, TF > &vector, size_t index, size_t size)
 Creating a view on a specific subvector of the given constant vector. More...
 
template<typename VT , bool TF>
decltype(auto) blaze::subvector (Vector< VT, TF > &&vector, size_t index, size_t size)
 Creating a view on a specific subvector of the given temporary vector. More...
 
template<bool AF, typename VT , bool TF>
Subvector< VT, AF > blaze::subvector (Vector< VT, TF > &vector, size_t index, size_t size)
 Creating a view on a specific subvector of the given vector. More...
 
template<bool AF, typename VT , bool TF>
const Subvector< const VT, AF > blaze::subvector (const Vector< VT, TF > &vector, size_t index, size_t size)
 Creating a view on a specific subvector of the given constant vector. More...
 
template<bool AF, typename VT , bool TF>
Subvector< VT, AF > blaze::subvector (Vector< VT, TF > &&vector, size_t index, size_t size)
 Creating a view on a specific subvector of the given temporary vector. More...
 
Subvector operators
template<typename VT , bool AF, bool TF, bool DF>
void blaze::reset (Subvector< VT, AF, TF, DF > &sv)
 Resetting the given subvector. More...
 
template<typename VT , bool AF, bool TF, bool DF>
void blaze::reset (Subvector< VT, AF, TF, DF > &&sv)
 Resetting the given temporary subvector. More...
 
template<typename VT , bool AF, bool TF, bool DF>
void blaze::clear (Subvector< VT, AF, TF, DF > &sv)
 Clearing the given subvector. More...
 
template<typename VT , bool AF, bool TF, bool DF>
void blaze::clear (Subvector< VT, AF, TF, DF > &&sv)
 Clearing the given temporary subvector. More...
 
template<bool RF, typename VT , bool AF, bool TF, bool DF>
bool blaze::isDefault (const Subvector< VT, AF, TF, DF > &sv)
 Returns whether the given subvector is in default state. More...
 
template<typename VT , bool AF, bool TF, bool DF>
bool blaze::isIntact (const Subvector< VT, AF, TF, DF > &sv) noexcept
 Returns whether the invariants of the given subvector vector are intact. More...
 
template<typename VT , bool AF, bool TF, bool DF>
bool blaze::isSame (const Subvector< VT, AF, TF, DF > &a, const Vector< VT, TF > &b) noexcept
 Returns whether the given vector and subvector represent the same observable state. More...
 
template<typename VT , bool AF, bool TF, bool DF>
bool blaze::isSame (const Vector< VT, TF > &a, const Subvector< VT, AF, TF, DF > &b) noexcept
 Returns whether the given vector and subvector represent the same observable state. More...
 
template<typename VT , bool AF, bool TF, bool DF>
bool blaze::isSame (const Subvector< VT, AF, TF, DF > &a, const Subvector< VT, AF, TF, DF > &b) noexcept
 Returns whether the two given subvectors represent the same observable state. More...
 

Detailed Description

Header file for the implementation of the Subvector view.

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