Commit 03bbb0c2 authored by Jan Möbius's avatar Jan Möbius
Browse files

Updated License Headers

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free-Staging@18129 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 046853e0
/*===========================================================================*\ /*===========================================================================*\
* * * *
* OpenFlipper * * OpenFlipper *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen * * Copyright (C) 2001-2014 by Computer Graphics Group, RWTH Aachen *
* www.openflipper.org * * www.openflipper.org *
* * * *
*--------------------------------------------------------------------------- * *--------------------------------------------------------------------------- *
......
/*===========================================================================*\ /*===========================================================================*\
* * * *
* OpenFlipper * * OpenFlipper *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen * * Copyright (C) 2001-2014 by Computer Graphics Group, RWTH Aachen *
* www.openflipper.org * * www.openflipper.org *
* * * *
*--------------------------------------------------------------------------- * *--------------------------------------------------------------------------- *
......
/*===========================================================================*\ /*===========================================================================*\
* * * *
* OpenFlipper * * OpenFlipper *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen * * Copyright (C) 2001-2014 by Computer Graphics Group, RWTH Aachen *
* www.openflipper.org * * www.openflipper.org *
* * * *
*--------------------------------------------------------------------------- * *--------------------------------------------------------------------------- *
......
/*===========================================================================*\ /*===========================================================================*\
* * * *
* OpenFlipper * * OpenFlipper *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen * * Copyright (C) 2001-2014 by Computer Graphics Group, RWTH Aachen *
* www.openflipper.org * * www.openflipper.org *
* * * *
*--------------------------------------------------------------------------- * *--------------------------------------------------------------------------- *
......
...@@ -208,8 +208,8 @@ int Factor(double a4,double a3,double a2,double a1,double a0,double roots[4][2], ...@@ -208,8 +208,8 @@ int Factor(double a4,double a3,double a2,double a1,double a0,double roots[4][2],
} }
int Solve(const double* eqns,const double* values,double* solutions,int dim){ int Solve(const double* eqns,const double* values,double* solutions,int dim){
int i,j,eIndex; int i,j;
double v,m; double v;
int *index=new int[dim]; int *index=new int[dim];
int *set=new int[dim]; int *set=new int[dim];
double* myEqns=new double[dim*dim]; double* myEqns=new double[dim*dim];
...@@ -222,8 +222,8 @@ int Solve(const double* eqns,const double* values,double* solutions,int dim){ ...@@ -222,8 +222,8 @@ int Solve(const double* eqns,const double* values,double* solutions,int dim){
} }
for(i=0;i<dim;i++){ for(i=0;i<dim;i++){
// Find the largest equation that has a non-zero entry in the i-th index // Find the largest equation that has a non-zero entry in the i-th index
m=-1; double m=-1;
eIndex=-1; int eIndex = -1;
for(j=0;j<dim;j++){ for(j=0;j<dim;j++){
if(set[j]){continue;} if(set[j]){continue;}
if(myEqns[j*dim+i]!=0 && fabs(myEqns[j*dim+i])>m){ if(myEqns[j*dim+i]!=0 && fabs(myEqns[j*dim+i])>m){
......
/*===========================================================================*\ /*===========================================================================*\
* * * *
* OpenFlipper * * OpenFlipper *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen * * Copyright (C) 2001-2014 by Computer Graphics Group, RWTH Aachen *
* www.openflipper.org * * www.openflipper.org *
* * * *
*--------------------------------------------------------------------------- * *--------------------------------------------------------------------------- *
......
/*===========================================================================*\ /*===========================================================================*\
* * * *
* OpenFlipper * * OpenFlipper *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen * * Copyright (C) 2001-2014 by Computer Graphics Group, RWTH Aachen *
* www.openflipper.org * * www.openflipper.org *
* * * *
*--------------------------------------------------------------------------- * *--------------------------------------------------------------------------- *
......
/*===========================================================================*\ /*===========================================================================*\
* * * *
* OpenFlipper * * OpenFlipper *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen * * Copyright (C) 2001-2014 by Computer Graphics Group, RWTH Aachen *
* www.openflipper.org * * www.openflipper.org *
* * * *
*--------------------------------------------------------------------------- * *--------------------------------------------------------------------------- *
......
/*===========================================================================*\ /*===========================================================================*\
* * * *
* OpenFlipper * * OpenFlipper *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen * * Copyright (C) 2001-2014 by Computer Graphics Group, RWTH Aachen *
* www.openflipper.org * * www.openflipper.org *
* * * *
*--------------------------------------------------------------------------- * *--------------------------------------------------------------------------- *
......
/*===========================================================================*\ /*===========================================================================*\
* * * *
* OpenFlipper * * OpenFlipper *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen * * Copyright (C) 2001-2014 by Computer Graphics Group, RWTH Aachen *
* www.openflipper.org * * www.openflipper.org *
* * * *
*--------------------------------------------------------------------------- * *--------------------------------------------------------------------------- *
......
/*===========================================================================*\ /*===========================================================================*\
* * * *
* OpenFlipper * * OpenFlipper *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen * * Copyright (C) 2001-2014 by Computer Graphics Group, RWTH Aachen *
* www.openflipper.org * * www.openflipper.org *
* * * *
*--------------------------------------------------------------------------- * *--------------------------------------------------------------------------- *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment