ShFunc.hpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00027
#ifndef SHUTIL_FUNC_HPP
00028
#define SHUTIL_FUNC_HPP
00029
00030
#include "ShVariable.hpp"
00031
#include "ShAttrib.hpp"
00032
00033 namespace ShUtil {
00034
00035
using namespace SH;
00036
00037
00038
00049
template<
int N,
typename T>
00050
ShGeneric<N, T> smoothstep(
const ShGeneric<N, T>& a,
const ShGeneric<N, T>& b,
00051
const ShGeneric<N, T> x);
00052
00055
template<
int N,
typename T>
00056
ShGeneric<1, T> distance(
const ShGeneric<N, T>& a,
const ShGeneric<N, T>& b);
00057
00061
template<
int N,
typename T>
00062
ShGeneric<1, T> lOneDistance(
const ShGeneric<N, T>& a,
const ShGeneric<N, T>& b);
00063
00067
template<
int N,
typename T>
00068
ShGeneric<1, T> lInfDistance(
const ShGeneric<N, T>& a,
const ShGeneric<N, T>& b);
00069
00076
00077
00078
template<
int N,
typename T>
00079
ShGeneric<N, T> hashlcg(
const ShGeneric<N, T>& p);
00080
00093
template<
int N,
typename T>
00094
ShGeneric<N, T> hashmrg(
const ShGeneric<N, T>& p);
00095
00096
00101
template<
int N, ShBindingType Binding,
typename T>
00102
ShAttrib<N, Binding, T> evenOddSort(
const ShAttrib<N, Binding, T>& v);
00103
00108
template<
int S,
int N, ShBindingType Binding,
typename T>
00109
void groupEvenOddSort(
ShAttrib<N, Binding, T> v[]);
00110
00115
00116
00117
00121
template<
typename T>
00122
ShGeneric<3, T> changeBasis(
const ShGeneric<3, T> &b0,
00123
const ShGeneric<3, T> &b1,
const ShGeneric<3, T> &b2,
const ShGeneric<3, T> &v);
00124
00125 }
00126
00127
#include "ShFuncImpl.hpp"
00128
00129
#endif // SHUTIL_FUNC_HPP
Generated on Mon Oct 18 14:17:39 2004 for Sh by
1.3.7