|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
This file contains the definition of the DataType enum class. More...
#include <regex>#include <string>#include <vector>#include <numeric>#include <complex>#include <utility>#include <iomanip>#include <iostream>#include <stdexcept>#include <algorithm>#include <unordered_map>#include <initializer_list>#include "source_base/module_device/types.h"Go to the source code of this file.
Namespaces | |
| namespace | container |
Enumerations | |
| enum class | container::DataType { container::DT_INVALID = 0 , container::DT_FLOAT = 1 , container::DT_DOUBLE = 2 , container::DT_INT = 3 , container::DT_INT64 = 4 , container::DT_COMPLEX = 5 , container::DT_COMPLEX_DOUBLE = 6 } |
| Enumeration of data types for tensors. The DataType enum lists the supported data types for tensors. Each data type is identified by a unique value. The DT_INVALID value is reserved for invalid data types. More... | |
| enum class | container::DeviceType { container::UnKnown = 0 , container::CpuDevice = 1 , container::GpuDevice = 2 } |
| The type of memory used by an allocator. More... | |
Functions | |
| std::ostream & | container::operator<< (std::ostream &os, const DataType &data_type) |
| Overloaded operator<< for the Tensor class. | |
| std::ostream & | container::operator<< (std::ostream &os, const DeviceType &memory_type) |
| Overloaded operator<< for the Tensor class. | |
This file contains the definition of the DataType enum class.