HArD::Core3D
Hybrid Arbitrary Degree::Core 3D - Library to implement 3D schemes with vertex, edge, face and cell polynomials as unknowns
Loading...
Searching...
No Matches
Namespaces | Functions
basis.cpp File Reference
#include <iostream>
#include <basis.hpp>
Include dependency graph for basis.cpp:

Namespaces

namespace  HArDCore3D
 

Functions

double HArDCore3D::scalar_product (const double &x, const double &y)
 Scalar product between two reals.
 
double HArDCore3D::scalar_product (const double &x, const Eigen::Matrix< double, 1, 1 > &y)
 Scalar product between one real and one 1-dimension Eigen vector.
 
double HArDCore3D::scalar_product (const VectorRd &x, const VectorRd &y)
 Scalar product between two vectors.
 
boost::multi_array< VectorRd, 2 > HArDCore3D::vector_product (const boost::multi_array< VectorRd, 2 > &basis_quad, const VectorRd &v)
 Compute the vector (cross) product between the evaluation of a basis and a constant vector.
 
Eigen::MatrixXd HArDCore3D::PermuteTensorization (const size_t a, const size_t b)
 Returns the matrix giving the permutation of the tensorization of a family of size a with a family of size b.
 
Eigen::MatrixXd HArDCore3D::compute_gram_matrix (const boost::multi_array< VectorRd, 2 > &B1, const boost::multi_array< double, 2 > &B2, const QuadratureRule &qr)
 Compute the Gram-like matrix given a family of vector-valued and one of scalar-valued functions by tensorizing the latter.
 
Eigen::MatrixXd HArDCore3D::compute_gram_matrix (const boost::multi_array< double, 2 > &B1, const boost::multi_array< double, 2 > &B2, const QuadratureRule &qr, const size_t nrows, const size_t ncols, const std::string sym)
 
Eigen::MatrixXd HArDCore3D::compute_gram_matrix (const boost::multi_array< double, 2 > &B1, const boost::multi_array< double, 2 > &B2, const QuadratureRule &qr, const std::string sym)
 
Eigen::MatrixXd HArDCore3D::compute_gram_matrix (const boost::multi_array< VectorRd, 2 > &B1, const boost::multi_array< VectorRd, 2 > &B2, const QuadratureRule &qr, const size_t nrows, const size_t ncols, const std::string sym)
 
Eigen::MatrixXd HArDCore3D::compute_gram_matrix (const boost::multi_array< VectorRd, 2 > &B1, const boost::multi_array< VectorRd, 2 > &B2, const QuadratureRule &qr, const std::string sym="nonsym")
 Compute the Gram-like matrix given the evaluation of two families of functions at quadrature nodes. Consists in calling the Vector3d-valued version with nrows = nb of elements in B1, ncols = nb of elements in B2.
 
Eigen::MatrixXd HArDCore3D::compute_weighted_gram_matrix (const FType< VectorRd > &f, const BasisQuad< VectorRd > &B1, const BasisQuad< double > &B2, const QuadratureRule &qr, size_t n_rows=0, size_t n_cols=0)
 Computes the Gram-like matrix of integrals (f dot phi_i, phi_j)
 
Eigen::MatrixXd HArDCore3D::compute_weighted_gram_matrix (const FType< VectorRd > &f, const BasisQuad< double > &B1, const BasisQuad< VectorRd > &B2, const QuadratureRule &qr, size_t n_rows=0, size_t n_cols=0)
 Computes the Gram-like matrix of integrals (phi_i, f dot phi_j)