25#include "neml2/tensors/user_tensors/LogspaceBatchTensor.h"
26#include "neml2/base/CrossRef.h"
36 options.
doc() =
"Construct a BatchTensor with exponents linearly spaced on the batch dimensions. "
37 "See neml2::BatchTensorBase::logspace for a detailed explanation.";
40 options.
set(
"start").doc() =
"The starting tensor";
43 options.
set(
"end").doc() =
"The ending tensor";
46 options.
set(
"nstep").doc() =
"The number of steps with even spacing along the new dimension";
49 options.
set(
"dim").doc() =
"Where to insert the new dimension";
52 options.
set(
"batch_dim").doc() =
"Batch dimension of the output";
55 options.
set(
"base").doc() =
"Exponent base";
66 options.get<
Real>(
"base"))),
Definition BatchTensor.h:32
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:52
Create a logspace BatchTensor from the input file.
Definition LogspaceBatchTensor.h:37
LogspaceBatchTensor(const OptionSet &options)
Construct a new LogspaceBatchTensor object.
Definition LogspaceBatchTensor.cxx:60
static OptionSet expected_options()
Definition LogspaceBatchTensor.cxx:33
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:59
const std::string & doc() const
A readonly reference to the option set's docstring.
Definition OptionSet.h:91
T & set(const std::string &)
Definition OptionSet.h:436
Definition UserTensor.h:33
static OptionSet expected_options()
Definition UserTensor.cxx:30
Definition CrossRef.cxx:32