MADNESS 0.10.1
Functions
test_mtxmq.cc File Reference
#include <madness/madness_config.h>
#include <iostream>
#include <vector>
#include <cmath>
#include <cstring>
#include <cstdlib>
#include <algorithm>
#include <complex>
#include <madness/world/safempi.h>
#include <madness/world/posixmem.h>
#include <madness/tensor/cblas.h>
#include <madness/tensor/tensor.h>
#include <madness/tensor/mxm.h>
#include <madness/tensor/mTxmq.h>
Include dependency graph for test_mtxmq.cc:

Functions

int main (int argc, char *argv[])
 
static double ran ()
 
static void ran_fill_cd (size_t n, std::complex< double > *a)
 
static void ran_fill_cf (size_t n, std::complex< float > *a)
 
static void ran_fill_d (size_t n, double *a)
 
static void ran_fill_f (size_t n, float *a)
 
static void run_benchmarks (long nimax, long njmax, long nkmax, const double *a, const double *b, double *c)
 
template<typename cT , typename rT >
static void test_shape_mixed (long ni, long nj, long nk, long ldb, const cT *a, const rT *b, cT *c_test, cT *c_ref, long &num_tested, long &num_failed, const char *tname, double tol)
 
template<typename T >
static void test_shape_real (long ni, long nj, long nk, long ldb, const T *a, const T *b, T *c_test, T *c_ref, long &num_tested, long &num_failed, const char *tname, double tol)
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ ran()

static double ran ( )
static

◆ ran_fill_cd()

static void ran_fill_cd ( size_t  n,
std::complex< double > *  a 
)
static

References ran().

Referenced by main().

◆ ran_fill_cf()

static void ran_fill_cf ( size_t  n,
std::complex< float > *  a 
)
static

References ran().

Referenced by main().

◆ ran_fill_d()

static void ran_fill_d ( size_t  n,
double *  a 
)
static

References a, and ran().

Referenced by main().

◆ ran_fill_f()

static void ran_fill_f ( size_t  n,
float *  a 
)
static

References ran().

Referenced by main().

◆ run_benchmarks()

static void run_benchmarks ( long  nimax,
long  njmax,
long  nkmax,
const double *  a,
const double *  b,
double *  c 
)
static

◆ test_shape_mixed()

template<typename cT , typename rT >
static void test_shape_mixed ( long  ni,
long  nj,
long  nk,
long  ldb,
const cT *  a,
const rT *  b,
cT *  c_test,
cT *  c_ref,
long &  num_tested,
long &  num_failed,
const char *  tname,
double  tol 
)
static

References a, std::abs(), b, diff(), madness::mTxmq(), and madness::mTxmq_reference().

Referenced by main().

◆ test_shape_real()

template<typename T >
static void test_shape_real ( long  ni,
long  nj,
long  nk,
long  ldb,
const T *  a,
const T *  b,
T *  c_test,
T *  c_ref,
long &  num_tested,
long &  num_failed,
const char *  tname,
double  tol 
)
static

References a, std::abs(), b, diff(), madness::mTxmq(), and madness::mTxmq_reference().

Referenced by main().