FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
DeriveArray.hpp
1#error Deprecated header do not use!
2
4//
5// $Id: DeriveArray.hpp,v 1.2 2008/01/14 19:05:50 werner Exp $
6//
8#ifndef __FIBER_DERIVEARRAY_HPP
9#define __FIBER_DERIVEARRAY_HPP "Created 30.07.2006 22:30:21 by werner"
10
11#include "MultiArray.hpp"
12#include "IpolDelimiter.hpp"
13#include "Interpolate.hpp"
14
15namespace Fiber
16{
17
21template <class Interpol, int DerivativeDimension, class Delimiter = NoDelimiter<typename Interpol::value_type> >
23{
24 template <int N, class Type>
25static void compute(MultiArray<N, Type>&result, const MultiArray<N, Type>&D)
26 {
27 MultiIndex<N> idx;
30 ipol(D, point);
31
32 do
33 {
34 for(int i=0; i<N; i++)
35 point[i] = idx[i];
36
37 result[ idx ] = ipol.eval();
38 }
39 while( idx.inc( D.Size() ) );
40 }
41
47 template <int N, class Type>
49 {
51 {
52 compute( result, D);
53 return true;
54 }
56 }
57};
58
59template <class Interpol, class Delimiter>
61{
62 template <int N, class Type>
63static void compute(MultiArray<N, Type>&result, const MultiArray<N, Type>&D)
64 {}
65
66 template <int N, class Type>
67static bool computeNthDerivative(MultiArray<N, Type>&result, const MultiArray<N, Type>&D, int)
68 {
69 return false;
70 }
71};
72
73} // namespace Fiber
74
75#endif /* __Fiber_DERIVEARRAY_HPP */
76
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
Compute the partial derivative of a multidimensional array.
Definition DeriveArray.hpp:23
static bool computeNthDerivative(MultiArray< N, Type > &result, const MultiArray< N, Type > &D, int NthDerivative)
Compute the 1st derivate of the given array in the nth dimension.
Definition DeriveArray.hpp:48