IgANet
IgANets - Isogeometric Analysis Networks
Loading...
Searching...
No Matches
iganet::IgADataset< true > Class Reference

#include </home/runner/work/iganet/iganet/include/igabase.hpp>

Inheritance diagram for iganet::IgADataset< true >:
iganet::IgADatasetBase

Public Member Functions

torch::data::Example get (std::size_t index) override
 Returns the data set at location index.
 
torch::optional< std::size_t > size () const override
 

Private Attributes

std::vector< torch::Tensor > f_
 Vector of tensors representing the reference data.
 
std::vector< torch::Tensor > G_
 Vector of tensors representing the geometry maps.
 
std::vector< torch::Tensor > u_
 Vector of tensors representing the solution data.
 

Additional Inherited Members

- Protected Member Functions inherited from iganet::IgADatasetBase
template<typename T >
void read_from_xml (std::string location, T &obj, std::vector< torch::Tensor > &v)
 Reads a function space from file.
 

Member Function Documentation

◆ add_geometryMap() [1/6]

template<typename T >
void iganet::IgADataset< true >::add_geometryMap ( T &&  obj,
const pugi::xml_document &  doc,
int  id = 0,
std::string  label = "" 
)
inline

Adds a geometry map from XML object.

◆ add_geometryMap() [2/6]

template<typename T >
void iganet::IgADataset< true >::add_geometryMap ( T &&  obj,
const pugi::xml_node &  root,
int  id = 0,
std::string  label = "" 
)
inline

Adds a geometry map from XML node.

◆ add_geometryMap() [3/6]

template<typename T >
void iganet::IgADataset< true >::add_geometryMap ( T &&  obj,
std::string  location 
)
inline

Adds a geometry map from file.

◆ add_geometryMap() [4/6]

template<typename T >
void iganet::IgADataset< true >::add_geometryMap ( T &  obj,
const pugi::xml_document &  doc,
int  id = 0,
std::string  label = "" 
)
inline

Adds a geometry map from XML object.

◆ add_geometryMap() [5/6]

template<typename T >
void iganet::IgADataset< true >::add_geometryMap ( T &  obj,
const pugi::xml_node &  root,
int  id = 0,
std::string  label = "" 
)
inline

Adds a geometry map from XML node.

◆ add_geometryMap() [6/6]

template<typename T >
void iganet::IgADataset< true >::add_geometryMap ( T &  obj,
std::string  location 
)
inline

Adds a geometry map from file.

◆ add_referenceData() [1/8]

template<typename T >
void iganet::IgADataset< true >::add_referenceData ( T &&  obj,
const pugi::xml_document &  doc,
int  id = 0,
std::string  label = "" 
)
inline

Adds a reference data set from XML object.

◆ add_referenceData() [2/8]

template<typename T >
void iganet::IgADataset< true >::add_referenceData ( T &&  obj,
const pugi::xml_node &  root,
int  id = 0,
std::string  label = "" 
)
inline

Adds a reference data set from XML node.

◆ add_referenceData() [3/8]

template<typename T , typename Func >
void iganet::IgADataset< true >::add_referenceData ( T &&  obj,
Func  func 
)
inline

Adds a reference data set from XML node.

◆ add_referenceData() [4/8]

template<typename T >
void iganet::IgADataset< true >::add_referenceData ( T &&  obj,
std::string  location 
)
inline

Adds a reference data set from file.

◆ add_referenceData() [5/8]

template<typename T >
void iganet::IgADataset< true >::add_referenceData ( T &  obj,
const pugi::xml_document &  doc,
int  id = 0,
std::string  label = "" 
)
inline

Adds a reference data set from XML object.

◆ add_referenceData() [6/8]

template<typename T >
void iganet::IgADataset< true >::add_referenceData ( T &  obj,
const pugi::xml_node &  root,
int  id = 0,
std::string  label = "" 
)
inline

Adds a reference data set from XML node.

◆ add_referenceData() [7/8]

template<typename T , typename Func >
void iganet::IgADataset< true >::add_referenceData ( T &  obj,
Func  func 
)
inline

Adds a reference data set from XML node.

◆ add_referenceData() [8/8]

template<typename T >
void iganet::IgADataset< true >::add_referenceData ( T &  obj,
std::string  location 
)
inline

Adds a reference data set from file.

◆ add_solution() [1/6]

template<typename T >
void iganet::IgADataset< true >::add_solution ( T &&  obj,
const pugi::xml_document &  doc,
int  id = 0,
std::string  label = "" 
)
inline

Adds a solution from XML object.

◆ add_solution() [2/6]

template<typename T >
void iganet::IgADataset< true >::add_solution ( T &&  obj,
const pugi::xml_node &  root,
int  id = 0,
std::string  label = "" 
)
inline

Adds a solution from XML node.

◆ add_solution() [3/6]

template<typename T >
void iganet::IgADataset< true >::add_solution ( T &&  obj,
std::string  location 
)
inline

Adds a solution from file.

◆ add_solution() [4/6]

template<typename T >
void iganet::IgADataset< true >::add_solution ( T &  obj,
const pugi::xml_document &  doc,
int  id = 0,
std::string  label = "" 
)
inline

Adds a solution from XML object.

◆ add_solution() [5/6]

template<typename T >
void iganet::IgADataset< true >::add_solution ( T &  obj,
const pugi::xml_node &  root,
int  id = 0,
std::string  label = "" 
)
inline

Adds a solution from XML node.

◆ add_solution() [6/6]

template<typename T >
void iganet::IgADataset< true >::add_solution ( T &  obj,
std::string  location 
)
inline

Adds a solution from file.

◆ get()

torch::data::Example iganet::IgADataset< true >::get ( std::size_t  index)
inlineoverride

Returns the data set at location index.

◆ size()

torch::optional< std::size_t > iganet::IgADataset< true >::size ( ) const
inlineoverride

Member Data Documentation

◆ f_

std::vector<torch::Tensor> iganet::IgADataset< true >::f_
private

Vector of tensors representing the reference data.

◆ G_

std::vector<torch::Tensor> iganet::IgADataset< true >::G_
private

Vector of tensors representing the geometry maps.

◆ u_

std::vector<torch::Tensor> iganet::IgADataset< true >::u_
private

Vector of tensors representing the solution data.


The documentation for this class was generated from the following file: