8#include "Containers/Array.h"
21template <
typename RealType>
42 B.Init(1. + 2. *
TauY, Height);
43 C.Init(-
TauY, Height);
52 TaskContext.Rhs.SetNum(Height);
53 TaskContext.Solution.SetNum(Height);
57 TaskContext.Rhs[
Y] =
Field.GridValues.At(
X,
Y);
60 Solver.
Solve(TaskContext.Rhs, TaskContext.Solution);
64 Field.GridValues.At(
X,
Y) = TaskContext.Solution[
Y];
75 B.Init(1. + 2. *
TauX, Width);
85 TaskContext.Rhs.SetNum(Width);
86 TaskContext.Solution.SetNum(Width);
90 TaskContext.Rhs[
X] =
Field.GridValues.At(
X,
Y);
93 Solver.
Solve(TaskContext.Rhs, TaskContext.Solution);
97 Field.GridValues.At(
X,
Y) = TaskContext.Solution[
X];
void ParallelForWithTaskContext(const TCHAR *DebugName, TArray< ContextType, ContextAllocatorType > &OutContexts, int32 Num, const ContextConstructorType &ContextConstructor, const FunctionType &Body, EParallelForFlags Flags=EParallelForFlags::None)
Definition ParallelFor.h:694
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
void Init(const ElementType &Element, SizeType Number)
Definition Array.h:3043
Definition SampledScalarField2.h:29
Definition Tridiagonal.h:24
bool Solve(TArray< T > &Rhs, TArray< T > &X)
Definition Tridiagonal.h:44
Definition FieldSystemNoiseAlgo.cpp:6
void HeatEquationImplicitAOS(TSampledScalarField2< RealType, RealType > &Field, const RealType SigmaX, const RealType SigmaY)
Definition ImageBlur.h:22
Definition AdvancedWidgetsModule.cpp:13