IgANet
IgANets - Isogeometric Analysis Networks
Loading...
Searching...
No Matches
core.hpp File Reference

Core components. More...

#include <config.hpp>
#include <array>
#include <fstream>
#include <iostream>
#include <tuple>
#include <vector>
#include <utils/getenv.hpp>
#include <torch/csrc/api/include/torch/types.h>
#include <torch/torch.h>
#include <sysinfo.hpp>

Go to the source code of this file.

Classes

class  iganet::logging::NullOStream
 Dummy output stream. More...
 
class  iganet::logging::NullStreamBuffer
 Dummy stream buffer. More...
 

Namespaces

namespace  iganet
 
namespace  iganet::literals
 
namespace  iganet::logging
 
namespace  std
 STL namespace.
 
namespace  std::detail
 

Typedefs

using iganet::short_t = short int
 

Enumerations

enum class  iganet::log : short_t {
  iganet::none = 0 , iganet::fatal = 1 , iganet::error = 2 , iganet::warning = 3 ,
  iganet::info = 4 , iganet::debug = 5 , iganet::verbose = 6
}
 Enumerator for specifying the logging level. More...
 

Functions

void iganet::finalize (std::ostream &os=Log(log::info))
 Finalizes the library.
 
void iganet::init (std::ostream &os=Log(log::info))
 Initializes the library.
 
std::string iganet::memory_summary (c10::DeviceIndex device=0)
 Return a human-readable printout of the current memory allocator statistics for a given device.
 
template<typename T , std::size_t N>
std::ostream & std::operator<< (std::ostream &os, const std::array< T, N > &obj)
 Print (as string) an std::array of generic objects.
 
template<typename... Ts>
std::ostream & std::operator<< (std::ostream &os, const std::tuple< Ts... > &obj)
 Print (as string) an std::tuple of generic objects.
 
template<typename... Ts, std::size_t... Is>
std::ostream & std::detail::output_tuple (std::ostream &os, const std::tuple< Ts... > &obj, std::index_sequence< Is... >)
 

Variables

struct { 
 
enum log level = log::info
 Log level.
 
logging::NullOStream nullStream
 Dummy output stream.
 
std::ofstream outputFile
 Output file.
 
std::ostream & outputStream = std::cout
 Output stream.
 
iganet::Log 
 Logger.
 

Detailed Description

Core components.

Author
Matthias Moller

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.