COMBINATORIAL_BLAS 1.6
Loading...
Searching...
No Matches
vector_test.cpp File Reference
#include <iostream>
#include <functional>
#include <algorithm>
#include <vector>
#include <sstream>
#include <sys/time.h>
#include "promote.h"
#include "Semirings.h"
#include "Deleter.h"
#include <ext/numeric>
#include <tr1/array>
#include <xmmintrin.h>
#include <emmintrin.h>
Include dependency graph for vector_test.cpp:

Go to the source code of this file.

Macros

#define BETA   16
#define ITER   1000000

Functions

template<typename T, typename I>
T ** allocate2D (I m, I n)
template<typename T, typename I>
void deallocate2D (T **array, I m)
template<int D, typename T>
void saxpy (T a, T *__restrict b, T *__restrict c)
template<int D, typename T>
void saxpy_array (T a, tr1::array< T, D > &b, tr1::array< T, D > &c)
int main ()

Macro Definition Documentation

◆ BETA

#define BETA   16

Definition at line 17 of file vector_test.cpp.

◆ ITER

#define ITER   1000000

Definition at line 18 of file vector_test.cpp.

Function Documentation

◆ allocate2D()

template<typename T, typename I>
T ** allocate2D ( I m,
I n )

Definition at line 21 of file vector_test.cpp.

◆ deallocate2D()

template<typename T, typename I>
void deallocate2D ( T ** array,
I m )

Definition at line 29 of file vector_test.cpp.

◆ main()

int main ( )

Definition at line 66 of file vector_test.cpp.

◆ saxpy()

template<int D, typename T>
void saxpy ( T a,
T *__restrict b,
T *__restrict c )

Definition at line 48 of file vector_test.cpp.

◆ saxpy_array()

template<int D, typename T>
void saxpy_array ( T a,
tr1::array< T, D > & b,
tr1::array< T, D > & c )

Definition at line 57 of file vector_test.cpp.