95 for (
Index i=0; i<d; i++)
150 if (destroiable)
delete buf;
155 return buf[i*
width+j];
178 for (j=0; j<
width; j++)
179 (*
this)(i, j) = A(rowP(i), colP(j));
192 for (j=0; j<
width; j++)
193 (*
this)(rowP(i), colP(j)) = A(i, j);
239 result += buf[i] * v.buf[i];
261 buf[i] = v.buf[P[i]];
272 buf[P[i]] = v.buf[i];
283 for (i=0; i<A.
height; i++)
287 for (j=0; j<A.
width; j++)
288 buf[i] += A(i,j) * v.buf[j];
300 buf[i] = v.buf[i] + w.buf[i];
311 buf[i] = v.buf[i] - w.buf[i];
322 buf[i] = v.buf[i] * x;
333 buf[i] = v.buf[i] / x;
Real operator*(Vector &v)
Definition: Matrix.H:232
Vector & Sum(Vector &, Vector &)
Definition: Matrix.H:295
Vector & MatrixMult(Matrix &A, Vector &v)
Definition: Matrix.H:278
Vector & operator-=(Vector &v)
Definition: Matrix.H:72
Vector(Index)
Definition: Matrix.H:201
Matrix(Index, Index)
Definition: Matrix.H:133
const Index height
Definition: Matrix.H:34
Int32 Index
Definition: Matrix.H:3
Permutation(Index)
Definition: Matrix.H:91
Permutation & AddCycle(Index, Index)
Definition: Matrix.H:122
#define Int32
Definition: BasicTypes.h:20
Real & operator[](Index)
Definition: Matrix.H:222
~Matrix()
Definition: Matrix.H:148
Matrix & operator=(Matrix &)
Definition: Matrix.H:158
Vector & RealDiv(Vector &, Real)
Definition: Matrix.H:328
const Index width
Definition: Matrix.H:34
Index & operator()(Index n)
Definition: Matrix.H:117
Vector & Diff(Vector &, Vector &)
Definition: Matrix.H:306
Matrix & PermuteBack(Matrix &A, Permutation &rowP, Permutation &colP)
Definition: Matrix.H:185
Vector & Permute(Vector &v, Permutation &P)
Definition: Matrix.H:256
Vector & operator/=(Real x)
Definition: Matrix.H:76
double Real
Definition: Matrix.H:4
Vector & RealMult(Vector &, Real)
Definition: Matrix.H:317
Matrix & Permute(Matrix &A, Permutation &rowP, Permutation &colP)
Definition: Matrix.H:171
~Vector()
Definition: Matrix.H:216
Real & operator()(Index)
Definition: Matrix.H:227
Vector & operator+=(Vector &v)
Definition: Matrix.H:71
Real & operator()(Index i, Index j)
Definition: Matrix.H:153
Vector & PermuteBack(Vector &v, Permutation &p)
Definition: Matrix.H:267
const Index dim
Definition: Matrix.H:60
Vector & operator=(Vector &v)
Definition: Matrix.H:245
~Permutation()
Definition: Matrix.H:107
Vector & operator*=(Real x)
Definition: Matrix.H:75
Index & operator[](Index n)
Definition: Matrix.H:112
const Index dim
Definition: Matrix.H:13