Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

matrix1.cpp File Reference

#include "LAStreams.h"
#include <math.h>
#include "iostream.h"

Include dependency graph for matrix1.cpp:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  linalg

Classes

struct  linalg::MaxDev

Defines

#define COMPUTED_VAL_ASSIGNMENT(OP, VALTYPE)
#define COMPARISON_WITH_SCALAR(OP)
#define TWO_GROUP_COMP(OP)
#define TWO_GROUP_OP(OP)
#define REDUCE_SUM(X, VAL)   X += (VAL)
#define REDUCE_SUMSQ(X, VAL)   X += sqr(VAL)
#define REDUCE_SUMABS(X, VAL)   X += fabs(VAL)
#define REDUCE_MAXABS(X, VAL)   X = max((REAL)X,fabs(VAL))
#define REDUCE_ONE(NAME, OP)
#define REDUCE_DIFF_OF_TWO(NAME, OP)

Functions

double e2_norm (const Matrix &m1, const Matrix &m2)
ostream & operator<< (ostream &os, const DimSpec &dimspec)
ostream & operator<< (ostream &os, const AREALMark &mark)
ostream & operator<< (ostream &os, const rowcol &rc)
ostream & operator<< (ostream &os, const IRange range)
ostream & operator<< (ostream &os, const RWWatchDog &wd)


Define Documentation

#define COMPARISON_WITH_SCALAR OP   ) 
 

Value:

\
bool ElementWiseConst::operator OP (const REAL val) const               \
{                                                                       \
  register const REAL * ep = start_ptr;                                 \
  while( ep < end_ptr )                                                 \
    if( !(*ep++ OP val) )                                               \
      return false;                                                     \
                                                                        \
  return true;                                                          \
}                                                                       \

Definition at line 270 of file matrix1.cpp.

#define COMPUTED_VAL_ASSIGNMENT OP,
VALTYPE   ) 
 

Value:

\
void ElementWise::operator OP (const VALTYPE val)                       \
{                                                                       \
  register REAL * ep = start_ptr;                                       \
  while( ep < end_ptr )                                                 \
    *ep++ OP val;                                                       \
}                                                                       \

Definition at line 250 of file matrix1.cpp.

#define REDUCE_DIFF_OF_TWO NAME,
OP   ) 
 

Value:

\
double ElementWiseConst::NAME (const ElementWiseConst& another) const   \
{                                                                       \
  sure_compatible_with(another);                                        \
  register double norm = 0;                                             \
  register const REAL * sp = another.start_ptr;                         \
  register const REAL * tp = start_ptr;                                 \
  while( tp < end_ptr )                                                 \
    OP(norm,*tp++ - *sp++);                                             \
  return norm;                                                          \
}                                                                       \

Definition at line 453 of file matrix1.cpp.

#define REDUCE_MAXABS X,
VAL   )     X = max((REAL)X,fabs(VAL))
 

Definition at line 431 of file matrix1.cpp.

#define REDUCE_ONE NAME,
OP   ) 
 

Value:

\
double ElementWiseConst::NAME (void) const                              \
{                                                                       \
  register double norm = 0;                                             \
  register const REAL * ep = start_ptr;                                 \
  while( ep < end_ptr )                                                 \
    OP(norm,*ep++);                                                     \
  return norm;                                                          \
}                                                                       \

Definition at line 433 of file matrix1.cpp.

#define REDUCE_SUM X,
VAL   )     X += (VAL)
 

Definition at line 428 of file matrix1.cpp.

#define REDUCE_SUMABS X,
VAL   )     X += fabs(VAL)
 

Definition at line 430 of file matrix1.cpp.

#define REDUCE_SUMSQ X,
VAL   )     X += sqr(VAL)
 

Definition at line 429 of file matrix1.cpp.

#define TWO_GROUP_COMP OP   ) 
 

Value:

\
bool ElementWiseConst::operator OP (const ElementWiseConst& another) const \
{                                                                       \
  sure_compatible_with(another);                                        \
  register const REAL * sp = another.start_ptr;                         \
  register const REAL * tp = start_ptr;                                 \
  while( tp < end_ptr )                                                 \
    if( !(*tp++ OP *sp++) )                                             \
      return false;                                                     \
                                                                        \
  return true;                                                          \
}                                                                       \

Definition at line 363 of file matrix1.cpp.

#define TWO_GROUP_OP OP   ) 
 

Value:

\
void ElementWise::operator OP (const ElementWiseConst& another)         \
{                                                                       \
  sure_compatible_with(another);                                        \
  register const REAL * sp = another.start_ptr;                         \
  register REAL * tp = start_ptr;                                       \
  while( tp < end_ptr )                                                 \
    *tp++ OP *sp++;                                                     \
}                                                                       \

Definition at line 387 of file matrix1.cpp.


Function Documentation

double e2_norm const Matrix m1,
const Matrix m2
 

Definition at line 540 of file matrix1.cpp.

References linalg::of_every(), and linalg::ElementWiseStrideConst::sum_squares().

Here is the call graph for this function:

ostream& operator<< ostream &  os,
const RWWatchDog &  wd
 

Definition at line 587 of file matrix1.cpp.

References linalg::RWWatchDog::q_engaged(), linalg::RWWatchDog::q_exclusive(), and linalg::RWWatchDog::ref_count.

Here is the call graph for this function:

ostream& operator<< ostream &  os,
const IRange  range
 

Definition at line 568 of file matrix1.cpp.

References linalg::IRange::lwb, and linalg::IRange::upb.

ostream& operator<< ostream &  os,
const rowcol &  rc
 

Definition at line 563 of file matrix1.cpp.

References linalg::rowcol::col, and linalg::rowcol::row.

ostream& operator<< ostream &  os,
const AREALMark &  mark
 

Definition at line 556 of file matrix1.cpp.

References linalg::AREALMark::offset.

ostream& operator<< ostream &  os,
const DimSpec &  dimspec
 

Definition at line 550 of file matrix1.cpp.

References linalg::DimSpec::col_lwb, linalg::DimSpec::ncols, linalg::DimSpec::nrows, and linalg::DimSpec::row_lwb.


Generated on Wed Dec 15 21:20:43 2004 for vuVolume by  doxygen 1.3.9.1