PeriDyno 1.0.0
Loading...
Searching...
No Matches
Arithmetic.h
Go to the documentation of this file.
1#pragma once
2#include "Reduction.h"
3#include "Array/Array.h"
4
5namespace dyno
6{
7 template<typename T>
9 {
10 public:
11 Arithmetic(const Arithmetic &) = delete;
12 Arithmetic& operator=(const Arithmetic &) = delete;
13
14 static Arithmetic* Create(int n);
15
16 T Dot(DArray<T>& xArr, DArray<T>& yArr);
17
19 private:
20 Arithmetic(int n);
21
24 };
25
26}
static Arithmetic * Create(int n)
Arithmetic(const Arithmetic &)=delete
DArray< T > m_buf
Definition Arithmetic.h:23
T Dot(DArray< T > &xArr, DArray< T > &yArr)
Reduction< T > * m_reduce
Definition Arithmetic.h:22
Arithmetic & operator=(const Arithmetic &)=delete
#define T(t)
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25
Array< T, DeviceType::GPU > DArray
Definition Array.inl:89