1#ifndef __FIBER_BASEOP_GRADIENT_HPP
2#define __FIBER_BASEOP_GRADIENT_HPP
4#include "gridopDllApi.h"
5#include <grid/Representation.hpp>
6#include <field/Derivative.hpp>
11extern gridop_API RefPtr<MemBase>
12 PartialDerivative(
const RefPtr<MemBase>&SourceData);
14extern gridop_API RefPtr<CreativeArrayBase>
15 PartialDerivative(
const RefPtr<CreativeArrayBase>&CAB,
16 string&FailureDescription,
42extern gridop_API RefPtr<Field>
43 PartialDerivative(Field&F,
const string&GradientFieldname,
44 Representation&CurrentRepresentation, Representation&FieldIDSource,
45 string&FailureDescription,
64template <
class SourceArrayType,
class DerivationType>
67 typedef typename SourceArrayType::value_type source_value_type;
68 enum { Dims = SourceArrayType::Dims };
81 if (
MAP.myElementType() ==
typeid(source_value_type) )
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
Interface class to provide information about multidimensional arrays without need to create the data ...
Definition MemArrayProperties.hpp:28
A Representation is a set of Field objects, each of them accessed via some FieldID identifier.
Definition Representation.hpp:101
static RefPtr< Cache, CacheBase > & MemCache()
const MultiArray< Dims, ResultType > & ComputeDerivative(MultiArray< Dims, ResultType > &result, const MultiArray< Dims, Value > &ValueField)
Compute the derivative of a multidimensional array.
Definition FiniteDifferences.hpp:340
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
bool isPartialDerivable(const RefPtr< CreativeArrayBase > &CAB)
Check if the partial derivative can be computed from the given data.
Definition fiber/baseop/Gradient.cpp:84
static MemCore::RefPtr< MemArray< N, dT > > compute(const MemArray< N, Type > &Values)
Do the actual computation.
Definition Derivative.hpp:26
Definition Gradient.hpp:51
Definition Gradient.hpp:66