HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_BinomialCoeffs.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: Utility Library (C++)
7  *
8  * COMMENTS:
9  * This class contains a hard-coded matrix of binomial coefficients
10  * needed for spline evaluation. This header is meant to be included
11  * only in C files (notice the "static").
12  *
13  */
14 
15 #ifndef __UT_BinomialCoeffs_h__
16 #define __UT_BinomialCoeffs_h__
17 
18 #include "UT_Defines.h"
19 
20 // NB: This is the same as GB_BinomialCoeffs, and should replace it!
21 
22 #define UT_MAXORDER 11
23 
24  // Current size: 11x11.
25 static const float ut_biCoeff[UT_MAXORDER][UT_MAXORDER] = {
26  { 1.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, },
27  { 1.0F, 1.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, },
28  { 1.0F, 2.0F, 1.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, },
29  { 1.0F, 3.0F, 3.0F, 1.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, },
30  { 1.0F, 4.0F, 6.0F, 4.0F, 1.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, },
31  { 1.0F, 5.0F, 10.0F, 10.0F, 5.0F, 1.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, },
32  { 1.0F, 6.0F, 15.0F, 20.0F, 15.0F, 6.0F, 1.0F, 0.0F, 0.0F, 0.0F, 0.0F, },
33  { 1.0F, 7.0F, 21.0F, 35.0F, 35.0F, 21.0F, 7.0F, 1.0F, 0.0F, 0.0F, 0.0F, },
34  { 1.0F, 8.0F, 28.0F, 56.0F, 70.0F, 56.0F, 28.0F, 8.0F, 1.0F, 0.0F, 0.0F, },
35  { 1.0F, 9.0F, 36.0F, 84.0F, 126.0F, 126.0F, 84.0F, 36.0F, 9.0F, 1.0F, 0.0F, },
36  { 1.0F, 10.0F, 45.0F, 120.0F, 210.0F, 252.0F, 210.0F, 120.0F, 45.0F, 10.0F, 1.0F }};
37 
38 
39 #endif
40 
#define UT_MAXORDER