Constructor
| 69 | |
| 70 | // Constructor |
| 71 | BFGS::BFGS(int theTangentToUse, int n ) |
| 72 | :EquiSolnAlgo(EquiALGORITHM_TAGS_BFGS), |
| 73 | tangent(theTangentToUse), numberLoops(n) |
| 74 | { |
| 75 | |
| 76 | theTest = 0; |
| 77 | localTest = 0; |
| 78 | |
| 79 | s = new Vector*[numberLoops+3]; |
| 80 | z = new Vector*[numberLoops+3]; |
| 81 | |
| 82 | // r = new (Vector*)[numberLoops+3]; |
| 83 | residOld = 0; |
| 84 | residNew = 0; |
| 85 | du = 0; |
| 86 | b = 0; |
| 87 | |
| 88 | temp = 0; |
| 89 | |
| 90 | rdotz = 0; |
| 91 | sdotr = 0; |
| 92 | |
| 93 | for ( int i =0; i < numberLoops+3; i++ ) { |
| 94 | s[i] = 0; |
| 95 | z[i] = 0; |
| 96 | } |
| 97 | |
| 98 | localTest = 0; |
| 99 | } |
| 100 | |
| 101 | //Constructor |
| 102 | BFGS::BFGS(ConvergenceTest &theT, int theTangentToUse, int n) |