Lines Matching defs:smatrix
46 std::vector < LinearEquation > smatrix = this->matrix;
48 unsigned order = smatrix.size();
52 if (smatrix[i][row] != 0.0f) {
54 LinearEquation tmp = smatrix[i];
55 smatrix[i] = smatrix[row];
56 smatrix[row] = tmp;
63 smatrix[row] *= (1.0f / smatrix[row][row]);
67 LinearEquation t = smatrix[row];
68 t *= -1.0f * smatrix[i][row];
69 smatrix[i] = smatrix[i] + t;
73 // smatrix is now a triangular matrix with diagonal being 1
78 ret[row] = -smatrix[row][smatrix[row].cnt()] / smatrix[row][row];
81 smatrix[i][smatrix[i].cnt()] += ret[row] * smatrix[i][row];
82 smatrix[i][row] = 0.0f;