https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
20public:
22
24
25protected:
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};
Creates samples based on the Cartesian product, see CartesianProduct in utils.
virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override
Return the sample for the given row and column.
static InputParameters validParams()
std::unique_ptr< const StochasticTools::CartesianProduct< Real > > _cp_ptr
Helper object for computing the CartesianProcduct values.
const InputParameters & parameters() const