DenseLinAlgPack_DVectorOpBLAS.cpp File Reference

#include <algorithm>
#include <functional>
#include <math.h>
#include "DenseLinAlgPack_DVectorClass.hpp"
#include "DenseLinAlgPack_DVectorOp.hpp"
#include "DenseLinAlgPack_BLAS_Cpp.hpp"
#include "DenseLinAlgPack_AssertOp.hpp"

Include dependency graph for DenseLinAlgPack_DVectorOpBLAS.cpp:

Go to the source code of this file.

Defines

#define UNARYOP_VECSLC(LHS, RHS, FUNC)
#define BINARYOP_VECSLC(LHS, RHS1, RHS2, FUNC)
#define BINARYOP_BIND1ST_VECSLC(LHS, RHS1, RHS2, FUNC)
#define BINARYOP_BIND2ND_VECSLC(LHS, RHS1, RHS2, FUNC)
#define UNARYOP_VEC(LHS, RHS, FUNC)
#define BINARYOP_VEC(LHS, RHS1, RHS2, FUNC)
#define BINARYOP_BIND1ST_VEC(LHS, RHS1, RHS2, FUNC)
#define BINARYOP_BIND2ND_VEC(LHS, RHS1, RHS2, FUNC)

Typedefs

typedef DenseLinAlgPack::value_type value_type
typedef DVectorSlice::size_type size_type
typedef DVectorSlice::difference_type difference_type

Functions

template<class T>
my_max (const T &v1, const T &v2)
template<class T>
my_min (const T &v1, const T &v2)
void i_assign (DVectorSlice *vs_lhs, const DVectorSlice &vs_rhs)
value_type local_prod (const value_type &v1, const value_type &v2)


Define Documentation

#define UNARYOP_VECSLC LHS,
RHS,
FUNC   ) 
 

Value:

DenseLinAlgPack::Vp_V_assert_sizes( (LHS)->dim(), (RHS).dim() );                      \
  DVectorSlice::iterator itr_lhs; DVectorSlice::const_iterator itr_rhs;                   \
  for(itr_lhs = LHS->begin(), itr_rhs = RHS.begin(); itr_lhs != LHS->end(); ++itr_lhs, ++itr_rhs)     \
  { *itr_lhs = FUNC(*itr_rhs); }

Definition at line 150 of file DenseLinAlgPack_DVectorOpBLAS.cpp.

#define BINARYOP_VECSLC LHS,
RHS1,
RHS2,
FUNC   ) 
 

Value:

DenseLinAlgPack::VopV_assert_sizes( (RHS1).dim(), (RHS2).dim() );                     \
  DenseLinAlgPack::Vp_V_assert_sizes( (LHS)->dim(), (RHS1).dim() );                     \
  DVectorSlice::iterator itr_lhs; DVectorSlice::const_iterator itr_rhs1, itr_rhs2;              \
  for(itr_lhs = LHS->begin(), itr_rhs1 = RHS1.begin(), itr_rhs2 = RHS2.begin();             \
    itr_lhs != LHS->end(); ++itr_lhs, ++itr_rhs1, ++itr_rhs2)                     \
  { *itr_lhs = FUNC(*itr_rhs1, *itr_rhs2); }

Definition at line 157 of file DenseLinAlgPack_DVectorOpBLAS.cpp.

#define BINARYOP_BIND1ST_VECSLC LHS,
RHS1,
RHS2,
FUNC   ) 
 

Value:

DenseLinAlgPack::Vp_V_assert_sizes( (LHS)->dim(), (RHS2).dim() );                     \
  DVectorSlice::iterator itr_lhs; DVectorSlice::const_iterator itr_rhs2;                  \
  for(itr_lhs = LHS->begin(), itr_rhs2 = RHS2.begin();                          \
    itr_lhs != LHS->end(); ++itr_lhs, ++itr_rhs2)                           \
  { *itr_lhs = FUNC(RHS1, *itr_rhs2); }

Definition at line 165 of file DenseLinAlgPack_DVectorOpBLAS.cpp.

#define BINARYOP_BIND2ND_VECSLC LHS,
RHS1,
RHS2,
FUNC   ) 
 

Value:

DenseLinAlgPack::Vp_V_assert_sizes( (LHS)->dim(), (RHS1).dim());                      \
  DVectorSlice::iterator itr_lhs; DVectorSlice::const_iterator itr_rhs1;                  \
  for(itr_lhs = LHS->begin(), itr_rhs1 = RHS1.begin();                          \
    itr_lhs != LHS->end(); ++itr_lhs, ++itr_rhs1)                           \
  { *itr_lhs = FUNC(*itr_rhs1, RHS2); }

Definition at line 172 of file DenseLinAlgPack_DVectorOpBLAS.cpp.

#define UNARYOP_VEC LHS,
RHS,
FUNC   ) 
 

Value:

LHS->resize(RHS.dim());                                       \
  DVector::iterator itr_lhs; DVectorSlice::const_iterator itr_rhs;                      \
  for(itr_lhs = LHS->begin(), itr_rhs = RHS.begin(); itr_lhs != LHS->end(); ++itr_lhs, ++itr_rhs)     \
  { *itr_lhs = FUNC(*itr_rhs); }

Definition at line 322 of file DenseLinAlgPack_DVectorOpBLAS.cpp.

#define BINARYOP_VEC LHS,
RHS1,
RHS2,
FUNC   ) 
 

Value:

DenseLinAlgPack::assert_vs_sizes(RHS1.dim(), RHS2.dim()); LHS->resize(RHS1.dim());            \
  DVector::iterator itr_lhs; DVectorSlice::const_iterator itr_rhs1, itr_rhs2;               \
  for(itr_lhs = LHS->begin(), itr_rhs1 = RHS1.begin(), itr_rhs2 = RHS2.begin();             \
    itr_lhs != LHS->end(); ++itr_lhs, ++itr_rhs1, ++itr_rhs2)                     \
  { *itr_lhs = FUNC(*itr_rhs1, *itr_rhs2); }

Definition at line 328 of file DenseLinAlgPack_DVectorOpBLAS.cpp.

#define BINARYOP_BIND1ST_VEC LHS,
RHS1,
RHS2,
FUNC   ) 
 

Value:

LHS->resize(RHS2.dim());                                        \
  DVector::iterator itr_lhs; DVectorSlice::const_iterator itr_rhs2;                     \
  for(itr_lhs = LHS->begin(), itr_rhs2 = RHS2.begin();                          \
    itr_lhs != LHS->end(); ++itr_lhs, ++itr_rhs2)                           \
  { *itr_lhs = FUNC(RHS1, *itr_rhs2); }

Definition at line 335 of file DenseLinAlgPack_DVectorOpBLAS.cpp.

#define BINARYOP_BIND2ND_VEC LHS,
RHS1,
RHS2,
FUNC   ) 
 

Value:

LHS->resize(RHS1.dim());                                        \
  DVector::iterator itr_lhs; DVectorSlice::const_iterator itr_rhs1;                     \
  for(itr_lhs = LHS->begin(), itr_rhs1 = RHS1.begin();                          \
    itr_lhs != LHS->end(); ++itr_lhs, ++itr_rhs1)                           \
  { *itr_lhs = FUNC(*itr_rhs1, RHS2); }

Definition at line 342 of file DenseLinAlgPack_DVectorOpBLAS.cpp.


Typedef Documentation

typedef DenseLinAlgPack::value_type value_type [static]
 

Definition at line 43 of file DenseLinAlgPack_DVectorOpBLAS.cpp.

typedef DVectorSlice::size_type size_type [static]
 

Definition at line 44 of file DenseLinAlgPack_DVectorOpBLAS.cpp.

typedef DVectorSlice::difference_type difference_type [static]
 

Definition at line 45 of file DenseLinAlgPack_DVectorOpBLAS.cpp.


Function Documentation

template<class T>
T my_max const T &  v1,
const T &  v2
[inline, static]
 

Definition at line 50 of file DenseLinAlgPack_DVectorOpBLAS.cpp.

template<class T>
T my_min const T &  v1,
const T &  v2
[inline, static]
 

Definition at line 54 of file DenseLinAlgPack_DVectorOpBLAS.cpp.

void i_assign DVectorSlice vs_lhs,
const DVectorSlice vs_rhs
[static]
 

Definition at line 57 of file DenseLinAlgPack_DVectorOpBLAS.cpp.

value_type local_prod const value_type v1,
const value_type v2
[inline, static]
 

Definition at line 75 of file DenseLinAlgPack_DVectorOpBLAS.cpp.


Generated on Thu Sep 18 12:35:40 2008 for MOOCHO (Single Doxygen Collection) by doxygen 1.3.9.1