Loading [MathJax]/extensions/tex2jax.js
https://mooseframework.inl.gov
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
CartesianProductSampler.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "Sampler.h"
13 #include "CartesianProduct.h"
14 
19 {
20 public:
22 
24 
25 protected:
27  virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override;
28 
30  // This is a pointer because it cannot be created until the grid vectors are assembled from
31  // the input parameters.
32  std::unique_ptr<const StochasticTools::CartesianProduct<Real>> _cp_ptr = nullptr;
33 };
virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override
Return the sample for the given row and column.
Creates samples based on the Cartesian product, see CartesianProduct in utils.
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
CartesianProductSampler(const InputParameters &parameters)
const InputParameters & parameters() const
std::unique_ptr< const StochasticTools::CartesianProduct< Real > > _cp_ptr
Helper object for computing the CartesianProcduct values.
uint8_t dof_id_type