Extents
basic_extents<size_type>
Description
The template class basic_extents
specifies dimension extents of a
tensor instance.
Example
#include <boost/numeric/ublas/tensor/extents.hpp>
int main () {
using namespace boost::numeric::ublas;
shape s{4,3,2};
for (auto i = 0u; i < s.size(); ++i) {
std::cout << s.at(i) << std::endl;
}
}
Definition
Defined in the header tensor/extents.hpp.
Public base classes
None.
Specialization
using shape = basic_extents<std::size_t>
Template parameters
Parameter |
Description |
|
Unsigned integer type. |
Member types
Member type | Description |
---|---|
|
Type |
|
Unsigned integer such as |
|
Reference type which is |
|
Constant reference type which is
|
|
Pointer type which is |
|
Constant reference type which is |
Member Functions
Member Function | Description |
---|---|
|
Constructs an empty instance of |
|
Constructs an instance copying the content of |
|
Constructs an instance moving the content of |
|
Constructs an instance from |
|
Constructs an instance from the range specified by |
|
Constructs an instance from |
|
Constructs an instance from |
|
Assigns the elements of |
|
Returns true if the elements are |
|
Returns true if the elements are |
|
Returns true if the elements are |
|
Returns true if it is not a scalar, vector or matrix. |
|
Returns a |
|
Returns a |
|
Returns a |
|
Returns a |
|
Returns a |
|
Returns a |
|
Returns true if the container has no elements. |
|
Returns the number of elements. |
|
Returns true if size()>1 and all elements are greater than one. |
|
Returns the multiplication of all entries. |
|
Returns a new instance where entries equal to one are eliminated. |
|
Returns true if all elements are equal. |
|
Returns true if some elements are not equal. |
|
Returns an |
|
Returns a |
|
Returns a const reference to the private member sequence container holding all elements. |
Copyright (©) 2018 Cem Bassoy
Copyright (©) 2021 Shikhar Vashistha
Use, modification and distribution are subject to the Boost Software
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt ).