31 typedef memory::unique_ptr<gsNewtonCotesRule> uPtr;
38 const unsigned digits = 0 )
45 const unsigned digits = 0 )
70 unsigned digits = 0 );
76 void init(
const gsBasis<T> & basis,
const T quA,
92#ifndef GISMO_BUILD_LIB
93#include GISMO_HPP_HEADER(gsNewtonCotesRule.hpp)
A basis represents a family of scalar basis functions defined over a common parameter domain.
Definition gsBasis.h:79
Class that represents the (tensor) Newton-Cotes quadrature rule.
Definition gsNewtonCotesRule.h:28
void setNodes(gsVector< index_t > const &numNodes, unsigned digits=0)
Initialize quadrature rule with numNodes number of quadrature points per integration variable.
Definition gsNewtonCotesRule.hpp:92
gsNewtonCotesRule(gsVector< index_t > const &numNodes, const unsigned digits=0)
Initialize a tensor-product Newton-Cotes quadrature rule with numNodes (direction-wise)
Definition gsNewtonCotesRule.h:37
gsNewtonCotesRule()
Default empty constructor.
Definition gsNewtonCotesRule.h:34
gsNewtonCotesRule(index_t numNodes, const unsigned digits=0)
Initialize a 1D Newton-Cotes quadrature rule with numNodes.
Definition gsNewtonCotesRule.h:49
static uPtr make(gsVector< index_t > const &numNodes, const unsigned digits=0)
Make function returning a smart pointer.
Definition gsNewtonCotesRule.h:44
static void computeReference(index_t n, gsVector< T > &x, gsVector< T > &w)
Computes the Newton-Cotes quadrature rule with n nodes in the interval [-1,1].
Definition gsNewtonCotesRule.hpp:111
Class which holds a list of parameters/options, and provides easy access to them.
Definition gsOptionList.h:33
Class representing a reference quadrature rule.
Definition gsQuadRule.h:29
index_t numNodes() const
Number of nodes in the currently kept rule.
Definition gsQuadRule.h:106
gsQuadRule()
Default empty constructor.
Definition gsQuadRule.h:35
A vector with arbitrary coefficient type and fixed or dynamic size.
Definition gsVector.h:37
#define short_t
Definition gsConfig.h:35
#define index_t
Definition gsConfig.h:32
Provides a base class for a quadrature rule.
The G+Smo namespace, containing all definitions for the library.