https://mooseframework.inl.gov
stochastic_tools
include
samplers
InputMatrixSampler.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
17
class
InputMatrixSampler
:
public
Sampler
18
{
19
public
:
20
static
InputParameters
validParams
();
21
22
InputMatrixSampler
(
const
InputParameters
&
parameters
);
23
27
void
executeSetUp
()
override
;
28
29
protected
:
31
virtual
Real
computeSample
(
dof_id_type
row_index,
dof_id_type
col_index)
override
;
32
33
private
:
35
const
RealEigenMatrix
&
_data
;
36
};
InputMatrixSampler::executeSetUp
void executeSetUp() override
Update number of rows if the controllable parameter has changed.
Definition:
InputMatrixSampler.C:32
Sampler
InputMatrixSampler::validParams
static InputParameters validParams()
Definition:
InputMatrixSampler.C:15
Sampler::parameters
const InputParameters & parameters() const
InputMatrixSampler::_data
const RealEigenMatrix & _data
Data read from input.
Definition:
InputMatrixSampler.h:35
InputMatrixSampler::computeSample
virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override
Return the sample for the given row and column.
Definition:
InputMatrixSampler.C:46
InputParameters
Sampler.h
RealEigenMatrix
Eigen::Matrix< Real, Eigen::Dynamic, Eigen::Dynamic > RealEigenMatrix
InputMatrixSampler
A class used to construct a sampling matrix from input.
Definition:
InputMatrixSampler.h:17
Real
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
InputMatrixSampler::InputMatrixSampler
InputMatrixSampler(const InputParameters ¶meters)
Definition:
InputMatrixSampler.C:24
dof_id_type
uint8_t dof_id_type
Generated on Fri Nov 7 2025 20:19:32 for https://mooseframework.inl.gov by
1.8.14