 |
Nabla
1.0
Nabla - a DSL for Automatic differentiation
|
Go to the documentation of this file.
17 std::vector<std::vector<double>>
data;
20 Tensor (
int m,
int n, std::vector<std::vector<double>> vals);
25 std::pair<int, int>
shape();
double full_sum(Tensor a)
Definition: Tensor.cpp:116
std::vector< std::vector< double > > data
Definition: Tensor.h:17
int n
Definition: Tensor.h:16
int num_dims
Definition: Tensor.h:14
int m
Definition: Tensor.h:15
Tensor mul(double a, Tensor b)
Definition: Tensor.cpp:96
std::pair< int, int > shape()
Definition: Tensor.cpp:47
void print()
Definition: Tensor.cpp:37
Tensor matmul(Tensor a, Tensor b)
Definition: Tensor.cpp:73
Tensor add(Tensor a, Tensor b)
Definition: Tensor.cpp:86
Tensor()
Definition: Tensor.cpp:32
Tensor transpose()
Definition: Tensor.cpp:53
Tensor negative()
Definition: Tensor.cpp:63