LargeVectorAttach Class Reference

#include <BigMatrix.h>

Inheritance diagram for LargeVectorAttach:
LargeVector

List of all members.

Public Member Functions

void Add (const LargeVectorAttach &A, long start_index, long length)
void Add (const LargeVectorAttach &A)
void AddMult (double alfa, const LargeVectorAttach &B)
void AddSmaler (const LargeVectorAttach &A)
double * DataPtr () const
void DiagonalSolve (double *b, double *x)
void GetPermuted_1Vector (LargeVectorAttach *outV, long *perm) const
void GetPermuted_1Vector (LargeVectorAttach *outV, IntArrayList &perm, long bn) const
LargeVectorAttach GetPermuted_1Vector (long *perm) const
void GetPermutedVector (LargeVectorAttach *outV, long *perm) const
void GetPermutedVector (LargeVectorAttach *outV, IntArrayList &perm, long bn) const
LargeVectorAttach GetPermutedVector (long *perm) const
void Grow (long addN)
void Init (long N)
void Initialize ()
void Initialize (double val)
void Initialize (long start_index, long length)
void Initialize (const LargeVectorAttach &A, long start_index, long length)
void Initialize (const LargeVectorAttach &A)
 LargeVectorAttach (long N, double *data)
 LargeVectorAttach ()
void LinComb (LargeVectorAttach &A)
void LinComb (double alfa, LargeVectorAttach &A)
void LinComb (double alfa, LargeVectorAttach &A, LargeVectorAttach &B)
void LinComb (double alfa, LargeVectorAttach &A, double beta, LargeVectorAttach &B)
void LoadBinary (FILE *stream)
void Mult (double &alfa)
long N () const
double Norm ()
double NormSqr ()
double & operator[] (long i)
double operator[] (long i) const
 ~LargeVectorAttach ()

Static Public Member Functions

static void AddMul (double *A, const double alfa, const double *B, int n)
static double InnerProduct (double *dp1, double *dp2, int len)
static void Zero (double *dp1, int len)

Protected Attributes

double * data
long n

Detailed Description

Definition at line 58 of file BigMatrix.h.


Constructor & Destructor Documentation

Definition at line 8 of file BigMatrix.cpp.

References data, and n.

LargeVectorAttach ( long  N,
double *  data 
)

Definition at line 14 of file BigMatrix.cpp.

References n.

Definition at line 20 of file BigMatrix.cpp.


Member Function Documentation

void Add ( const LargeVectorAttach A,
long  start_index,
long  length 
)

Definition at line 103 of file BigMatrix.cpp.

References data.

void Add ( const LargeVectorAttach A  ) 

Definition at line 97 of file BigMatrix.cpp.

References data, and n.

void AddMul ( double *  A,
const double  alfa,
const double *  B,
int  n 
) [static]

Definition at line 277 of file BigMatrix.cpp.

void AddMult ( double  alfa,
const LargeVectorAttach B 
)

Definition at line 121 of file BigMatrix.cpp.

References data, DataPtr(), and n.

Referenced by DSSolver::CG(), and DSSolver::PreCG().

void AddSmaler ( const LargeVectorAttach A  ) 

Definition at line 109 of file BigMatrix.cpp.

References data, and N().

double* DataPtr (  )  const [inline]
void DiagonalSolve ( double *  b,
double *  x 
)

Definition at line 244 of file BigMatrix.cpp.

References data, and n.

Referenced by DSSolver::Solve().

void GetPermuted_1Vector ( LargeVectorAttach outV,
long *  perm 
) const

Definition at line 64 of file BigMatrix.cpp.

References data, and n.

void GetPermuted_1Vector ( LargeVectorAttach outV,
IntArrayList perm,
long  bn 
) const

Definition at line 48 of file BigMatrix.cpp.

References IntArrayList::Count, data, and n.

LargeVectorAttach GetPermuted_1Vector ( long *  perm  )  const

Definition at line 32 of file BigMatrix.cpp.

References data, and n.

Referenced by SparseGridMtxLDL::SolveLDL_node_perm().

void GetPermutedVector ( LargeVectorAttach outV,
long *  perm 
) const

Definition at line 56 of file BigMatrix.cpp.

References data, N(), and n.

void GetPermutedVector ( LargeVectorAttach outV,
IntArrayList perm,
long  bn 
) const

Definition at line 40 of file BigMatrix.cpp.

References IntArrayList::Count, data, and N().

LargeVectorAttach GetPermutedVector ( long *  perm  )  const

Definition at line 24 of file BigMatrix.cpp.

References data, and n.

Referenced by SparseGridMtxLDL::SolveLDL_node_perm().

void Grow ( long  addN  ) 

Definition at line 79 of file BigMatrix.cpp.

References Array::Copy(), data, and n.

void Init ( long  N  ) 

Definition at line 72 of file BigMatrix.cpp.

References data, and n.

Referenced by DSSolver::SetMatrixPattern().

void Initialize (  ) 

Definition at line 226 of file BigMatrix.cpp.

References Array::Clear(), data, and n.

void Initialize ( double  val  ) 

Definition at line 220 of file BigMatrix.cpp.

References data, and n.

void Initialize ( long  start_index,
long  length 
)

Definition at line 215 of file BigMatrix.cpp.

References Array::Clear(), and data.

void Initialize ( const LargeVectorAttach A,
long  start_index,
long  length 
)

Definition at line 210 of file BigMatrix.cpp.

References Array::Copy(), and data.

void Initialize ( const LargeVectorAttach A  ) 
double InnerProduct ( double *  dp1,
double *  dp2,
int  len 
) [static]

Definition at line 250 of file BigMatrix.cpp.

Referenced by DSSolver::CG(), DSSolver::GetFactorizationError(), and DSSolver::PreCG().

void LinComb ( LargeVectorAttach A  ) 

Definition at line 199 of file BigMatrix.cpp.

References data, and n.

void LinComb ( double  alfa,
LargeVectorAttach A 
)

Definition at line 193 of file BigMatrix.cpp.

References data, and n.

void LinComb ( double  alfa,
LargeVectorAttach A,
LargeVectorAttach B 
)

Definition at line 160 of file BigMatrix.cpp.

References data, and n.

void LinComb ( double  alfa,
LargeVectorAttach A,
double  beta,
LargeVectorAttach B 
)

Definition at line 154 of file BigMatrix.cpp.

References data, and n.

Referenced by DSSolver::CG(), DSSolver::GetFactorizationError(), and DSSolver::PreCG().

void LoadBinary ( FILE *  stream  ) 

Definition at line 283 of file BigMatrix.cpp.

References data, and n.

void Mult ( double &  alfa  ) 

Definition at line 115 of file BigMatrix.cpp.

References data, and n.

long N (  )  const [inline]

Definition at line 65 of file BigMatrix.h.

References n.

Referenced by AddSmaler(), GetPermutedVector(), LargeVector::LargeVector(), and DSSolver::Solve().

double Norm (  ) 

Definition at line 231 of file BigMatrix.cpp.

References NormSqr().

double NormSqr (  ) 

Definition at line 236 of file BigMatrix.cpp.

References data, and n.

Referenced by Norm().

double& operator[] ( long  i  )  [inline]

Definition at line 87 of file BigMatrix.h.

References data.

double operator[] ( long  i  )  const [inline]

Definition at line 82 of file BigMatrix.h.

References data.

void Zero ( double *  dp1,
int  len 
) [static]

Definition at line 293 of file BigMatrix.cpp.

References memset().

Referenced by LargeVector::LargeVector().


Member Data Documentation

double* data [protected]
long n [protected]

The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.2