MagmaDNN  1.0
c++NeuralNetworkFramework
product.cpp File Reference
#include "math/product.h"
Include dependency graph for product.cpp:

Functions

template<typename T >
void magmadnn::math::product (Tensor< T > *A, Tensor< T > *B)
 
template void magmadnn::math::product (Tensor< int > *A, Tensor< int > *B)
 
template void magmadnn::math::product (Tensor< float > *A, Tensor< float > *B)
 
template void magmadnn::math::product (Tensor< double > *A, Tensor< double > *B)
 
template<typename T >
void magmadnn::math::product (Tensor< T > *A, Tensor< T > *B, Tensor< T > *C)
 
template void magmadnn::math::product (Tensor< int > *A, Tensor< int > *B, Tensor< int > *C)
 
template void magmadnn::math::product (Tensor< float > *A, Tensor< float > *B, Tensor< float > *C)
 
template void magmadnn::math::product (Tensor< double > *A, Tensor< double > *B, Tensor< double > *C)
 

Detailed Description

Author
Sedrick Keh
Version
0.1
Date
2019-07-02

Function Documentation

◆ product() [1/2]

template<typename T >
void magmadnn::math::product ( Tensor< T > *  A,
Tensor< T > *  B 
)

(In-place) Copies and returns the element-wise product of A and B into B.

Template Parameters
T
Parameters
A
Bshould have same shape as A

◆ product() [2/2]

template<typename T >
void magmadnn::math::product ( Tensor< T > *  A,
Tensor< T > *  B,
Tensor< T > *  C 
)

Copies and returns the element-wise product of A and B into C.

Template Parameters
T
Parameters
A
Bshould have same shape as A
Cshould have same shape as A and B