#include <TensorMath.hpp>
|
static std::shared_ptr< TensorMath > | make_shared () |
| Returns a shared_ptr to a concrete object constructed using the underlying implementation. More...
|
|
◆ TensorMathImp()
geopm::TensorMathImp::TensorMathImp |
( |
| ) |
|
|
default |
◆ ~TensorMathImp()
virtual geopm::TensorMathImp::~TensorMathImp |
( |
| ) |
|
|
virtualdefault |
◆ add()
Add two 1D tensors of the same length, element-wise.
- Exceptions
-
geopm::Exception | if the lengths do not match. |
- Parameters
-
- Returns
- Returns a 1D tensor, the sum of two 1D tensors
Implements geopm::TensorMath.
◆ inner_product()
double geopm::TensorMathImp::inner_product |
( |
const TensorOneD & |
tensor_a, |
|
|
const TensorOneD & |
tensor_b |
|
) |
| const |
|
overridevirtual |
Multiply two 1D tensors, element-wise, and sum the result.
- Exceptions
-
geopm::Exception | if the lengths do not match. |
- Parameters
-
[in] | other | The multiplicand |
- Returns
- Returns a 1D tensor, the product of two 1D tensors
Implements geopm::TensorMath.
◆ multiply()
Multiply a 2D tensor by a 1D tensor.
- Parameters
-
[in] | TensorTwoD& | Reference to the 2D multiplicand |
[in] | TensorOneD& | Reference to the 1D multiplicand |
- Exceptions
-
geopm::Exception | if the sizes are incompatible, i.e. if 2D tensor number of columns is unequal to 1D tensor number of rows |
Implements geopm::TensorMath.
◆ sigmoid()
◆ subtract()
Subtract two 1D tensors of the same length, element-wise.
- Exceptions
-
geopm::Exception | if the lengths do not match. |
- Parameters
-
- Returns
- A 1D tensor, the difference of two 1D tensors.
Implements geopm::TensorMath.
The documentation for this class was generated from the following files: