Wildmeshing Toolkit
|
Namespaces | |
detail | |
Classes | |
class | AutoDiffRAII |
class | PositionMapEvaluator |
Functions | |
double | Tet_AMIPS_energy_aux (const std::array< double, 12 > &T) |
void | Tet_AMIPS_jacobian (const std::array< double, 12 > &T, Eigen::Vector3d &result_0) |
void | Tet_AMIPS_hessian (const std::array< double, 12 > &T, Eigen::Matrix3d &result_0) |
double | Tet_AMIPS_energy (const std::array< double, 12 > &T) |
template<typename Derived > | |
auto | amips (const Eigen::MatrixBase< Derived > &B) |
template<typename V0Type , typename V1Type , typename V2Type > | |
auto | amips (const Eigen::MatrixBase< V0Type > &v0, const Eigen::MatrixBase< V1Type > &v1, const Eigen::MatrixBase< V2Type > &v2) |
template<typename DScalarType , int Rows = Eigen::Dynamic, int Cols = Eigen::Dynamic> | |
auto | make_DScalar_matrix (int rows=0, int cols=0) |
template<typename DScalarType , typename Derived > | |
auto | as_DScalar (const Eigen::MatrixBase< Derived > &data) |
template<typename T > | |
std::tuple< std::vector< std::decay_t< typename attribute::ConstMapResult< T > > >, int64_t > | get_simplex_attributes (const Mesh &mesh, const wmtk::attribute::Accessor< T > &accessor, const PrimitiveType primitive_type, const simplex::Simplex &simplex, const std::optional< wmtk::Tuple > &vertex_marker={}) |
get attributes from a simplex More... | |
template std::tuple< std::vector< std::decay_t< typename attribute::ConstMapResult< char > > >, int64_t > | get_simplex_attributes (const Mesh &mesh, const wmtk::attribute::Accessor< char > &accessor, const PrimitiveType primitive_type, const simplex::Simplex &simplex, const std::optional< wmtk::Tuple > &vertex_marker) |
template std::tuple< std::vector< std::decay_t< typename attribute::ConstMapResult< int64_t > > >, int64_t > | get_simplex_attributes (const Mesh &mesh, const wmtk::attribute::Accessor< int64_t > &accessor, const PrimitiveType primitive_type, const simplex::Simplex &simplex, const std::optional< wmtk::Tuple > &vertex_marker) |
template std::tuple< std::vector< std::decay_t< typename attribute::ConstMapResult< double > > >, int64_t > | get_simplex_attributes (const Mesh &mesh, const wmtk::attribute::Accessor< double > &accessor, const PrimitiveType primitive_type, const simplex::Simplex &simplex, const std::optional< wmtk::Tuple > &vertex_marker) |
template std::tuple< std::vector< std::decay_t< typename attribute::ConstMapResult< Rational > > >, int64_t > | get_simplex_attributes (const Mesh &mesh, const wmtk::attribute::Accessor< Rational > &accessor, const PrimitiveType primitive_type, const simplex::Simplex &simplex, const std::optional< wmtk::Tuple > &vertex_marker) |
auto wmtk::function::utils::amips | ( | const Eigen::MatrixBase< Derived > & | B | ) |
Definition at line 20 of file amips.hpp.
References wmtk::abs(), and wmtk::function::utils::detail::amips_reference_to_barycentric.
Referenced by amips(), wmtk::function::TriangleAMIPS::eval(), wmtk::function::PositionMapAMIPS2D::get_value_autodiff(), wmtk::components::internal::periodic_optimization(), wmtk::components::wildmeshing(), wmtk::components::internal::wildmeshing2d(), and wmtk::components::internal::wildmeshing3d().
auto wmtk::function::utils::amips | ( | const Eigen::MatrixBase< V0Type > & | v0, |
const Eigen::MatrixBase< V1Type > & | v1, | ||
const Eigen::MatrixBase< V2Type > & | v2 | ||
) |
auto wmtk::function::utils::as_DScalar | ( | const Eigen::MatrixBase< Derived > & | data | ) |
Definition at line 48 of file AutoDiffUtils.hpp.
References DiffScalarBase::getVariableCount().
template std::tuple<std::vector<std::decay_t<typename attribute::ConstMapResult<char> > >, int64_t> wmtk::function::utils::get_simplex_attributes | ( | const Mesh & | mesh, |
const wmtk::attribute::Accessor< char > & | accessor, | ||
const PrimitiveType | primitive_type, | ||
const simplex::Simplex & | simplex, | ||
const std::optional< wmtk::Tuple > & | vertex_marker | ||
) |
template std::tuple<std::vector<std::decay_t<typename attribute::ConstMapResult<double> > >, int64_t> wmtk::function::utils::get_simplex_attributes | ( | const Mesh & | mesh, |
const wmtk::attribute::Accessor< double > & | accessor, | ||
const PrimitiveType | primitive_type, | ||
const simplex::Simplex & | simplex, | ||
const std::optional< wmtk::Tuple > & | vertex_marker | ||
) |
template std::tuple<std::vector<std::decay_t<typename attribute::ConstMapResult<int64_t> > >, int64_t> wmtk::function::utils::get_simplex_attributes | ( | const Mesh & | mesh, |
const wmtk::attribute::Accessor< int64_t > & | accessor, | ||
const PrimitiveType | primitive_type, | ||
const simplex::Simplex & | simplex, | ||
const std::optional< wmtk::Tuple > & | vertex_marker | ||
) |
template std:: tuple<std::vector<std::decay_t<typename attribute::ConstMapResult<Rational> > >, int64_t> wmtk::function::utils::get_simplex_attributes | ( | const Mesh & | mesh, |
const wmtk::attribute::Accessor< Rational > & | accessor, | ||
const PrimitiveType | primitive_type, | ||
const simplex::Simplex & | simplex, | ||
const std::optional< wmtk::Tuple > & | vertex_marker | ||
) |
std::tuple< std::vector< std::decay_t< typename attribute::ConstMapResult< T > > >, int64_t > wmtk::function::utils::get_simplex_attributes | ( | const Mesh & | mesh, |
const wmtk::attribute::Accessor< T > & | accessor, | ||
const PrimitiveType | primitive_type, | ||
const simplex::Simplex & | simplex, | ||
const std::optional< wmtk::Tuple > & | vertex_marker = {} |
||
) |
get attributes from a simplex
mesh | mesh |
accessor | accessor from where to read the attributes |
primitive_type | type of the data to extract (eg if vertex it will extract the vertex attributes) |
simplex | source simples (eg is simplex is triangle and primitive_type is vertex it extracts the vertex attributes for that triangle) |
vertex_marker | optional, a tuple pointing to one of the simplicies of type primitive_type in the simplex (eg one of the vertices of the triangle) |
Definition at line 9 of file SimplexGetter.cpp.
References wmtk::simplex::SimplexCollection::begin(), wmtk::simplex::SimplexCollection::end(), wmtk::simplex::utils::SimplexComparisons::equal(), wmtk::simplex::faces(), wmtk::simplex::faces_single_dimension_tuples(), wmtk::Mesh::is_ccw(), wmtk::Mesh::orient_vertices(), wmtk::simplex::Simplex::primitive_type(), wmtk::simplex::SimplexCollection::size(), wmtk::Mesh::switch_tuple(), wmtk::simplex::Simplex::tuple(), and wmtk::Vertex.
Referenced by wmtk::function::PerSimplexAutodiffFunction::get_coordinates(), and wmtk::function::AMIPS::get_raw_coordinates().
auto wmtk::function::utils::make_DScalar_matrix | ( | int | rows = 0 , |
int | cols = 0 |
||
) |
Definition at line 8 of file AutoDiffUtils.hpp.
References DiffScalarBase::getVariableCount().
double wmtk::function::utils::Tet_AMIPS_energy | ( | const std::array< double, 12 > & | T | ) |
Definition at line 380 of file amips.cpp.
References wmtk::pow(), and Tet_AMIPS_energy_aux().
Referenced by wmtk::invariants::CollapseEnergyBeforeInvariant::before(), wmtk::invariants::CollapseEnergyBeforeInvariantDouble::before(), wmtk::invariants::CollapseSoftEnergyBeforeInvariant::before(), wmtk::Swap23EnergyBeforeInvariant::before(), wmtk::Swap32EnergyBeforeInvariant::before(), wmtk::Swap32EnergyBeforeInvariantDouble::before(), wmtk::Swap44EnergyBeforeInvariant::before(), wmtk::Swap44EnergyBeforeInvariantDouble::before(), wmtk::Swap56EnergyBeforeInvariant::before(), wmtk::Swap56EnergyBeforeInvariantDouble::before(), wmtk::components::internal::periodic_optimization(), wmtk::components::wildmeshing(), and wmtk::components::internal::wildmeshing3d().
double wmtk::function::utils::Tet_AMIPS_energy_aux | ( | const std::array< double, 12 > & | T | ) |
Definition at line 45 of file amips.cpp.
Referenced by Tet_AMIPS_energy().
void wmtk::function::utils::Tet_AMIPS_hessian | ( | const std::array< double, 12 > & | T, |
Eigen::Matrix3d & | result_0 | ||
) |
Definition at line 205 of file amips.cpp.
References wmtk::pow().
void wmtk::function::utils::Tet_AMIPS_jacobian | ( | const std::array< double, 12 > & | T, |
Eigen::Vector3d & | result_0 | ||
) |
Definition at line 108 of file amips.cpp.
References wmtk::pow().