![]() |
Header file for the Vector CRTP base class. More...
#include <blaze/util/Assert.h>
#include <blaze/util/logging/FunctionTrace.h>
#include <blaze/util/typetraits/IsSame.h>
Go to the source code of this file.
Classes | |
struct | blaze::Vector< typename, bool > |
Base class for N-dimensional vectors.The Vector class is a base class for all arbitrarily sized (N-dimensional) dense and sparse vector classes within the Blaze library. It provides an abstraction from the actual type of the vector, but enables a conversion back to this type via the 'Curiously Recurring Template Pattern' (CRTP). More... | |
Namespaces | |
blaze | |
Namespace of the Blaze C++ math library. | |
Functions | |
template<typename VT , bool TF> | |
size_t | blaze::size (Vector< VT, TF > &v) |
Returns the current size/dimension of the vector. More... | |
template<typename VT , bool TF> | |
size_t | blaze::capacity (Vector< VT, TF > &v) |
Returns the maximum capacity of the vector. More... | |
template<typename VT , bool TF> | |
size_t | blaze::nonZeros (Vector< VT, TF > &v) |
Returns the number of non-zero elements in the vector. More... | |
Vector global functions | |
template<typename VT , bool TF> | |
size_t | blaze::size (const Vector< VT, TF > &v) |
template<typename VT , bool TF> | |
size_t | blaze::capacity (const Vector< VT, TF > &v) |
template<typename VT , bool TF> | |
size_t | blaze::nonZeros (const Vector< VT, TF > &v) |
template<typename VT1 , bool TF1, typename VT2 , bool TF2> | |
void | blaze::assign (Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) |
Default implementation of the assignment of a vector to a vector. More... | |
template<typename VT1 , bool TF1, typename VT2 , bool TF2> | |
void | blaze::addAssign (Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) |
Default implementation of the addition assignment of a vector to a vector. More... | |
template<typename VT1 , bool TF1, typename VT2 , bool TF2> | |
void | blaze::subAssign (Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) |
Default implementation of the subtraction assignment of a vector to a vector. More... | |
template<typename VT1 , bool TF1, typename VT2 , bool TF2> | |
void | blaze::multAssign (Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) |
Default implementation of the multiplication assignment of a vector to a vector. More... | |
template<typename VT1 , bool TF1, typename VT2 , bool TF2> | |
bool | blaze::isSame (const Vector< VT1, TF1 > &a, const Vector< VT2, TF2 > &b) |
Returns whether the two given vectors represent the same observable state. More... | |
Header file for the Vector CRTP base class.
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:
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.