1
//////////////////////////////////////////////////////////////////////
2
// This file is part of Wavelet Turbulence.
4
// Wavelet Turbulence is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
9
// Wavelet Turbulence is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
14
// You should have received a copy of the GNU General Public License
15
// along with Wavelet Turbulence. If not, see <http://www.gnu.org/licenses/>.
17
// Copyright 2008 Theodore Kim and Nils Thuerey
19
//////////////////////////////////////////////////////////////////////
20
// Modified to not require TNT matrix library anymore. It was very slow
21
// when being run in parallel. Required TNT JAMA:LU libraries were
22
// converted into independent functions.
24
//////////////////////////////////////////////////////////////////////
34
//////////////////////////////////////////////////////////////////////
35
// Helper function, compute eigenvalues of 3x3 matrix
36
//////////////////////////////////////////////////////////////////////
46
int isNonsingular (sLU LU_);
47
sLU computeLU( float a[3][3]);
48
void solveLU3x3(sLU& A, float x[3], float b[3]);