38#include "../../Matrix.h"
39#include "../../matrix_utils.h"
59 df.SetSlice(0, df.rows() - 2, 0, df.columns() - 1, res);
78 df.SetSlice(1, df.rows() - 1, 0, df.columns() - 1, res);
97 df.SetSlice(1, df.rows() - 2, 0, df.columns() - 1, res);
116 df.SetSlice(2, df.rows() - 1, 0, df.columns() - 1, res);
135 df.SetSlice(2, df.rows() - 3, 0, df.columns() - 1, res);
Matrix< double > forwardDiff(const Matrix< double > &x, const Matrix< double > &y)
Definition: Differentiation.h:53
Matrix< double > backwardDiff(const Matrix< double > &x, const Matrix< double > &y)
Definition: Differentiation.h:73
Matrix< double > centralDiff4(const Matrix< double > &x, const Matrix< double > &y)
Definition: Differentiation.h:129
Matrix< double > centralDiff(const Matrix< double > &x, const Matrix< double > &y)
Definition: Differentiation.h:92
Matrix< double > backwardDiff2(const Matrix< double > &x, const Matrix< double > &y)
Definition: Differentiation.h:110
size_t rows() const
Definition: Matrix.h:193
size_t columns() const
Definition: Matrix.h:198
Matrix GetSlice(size_t rowStart) const
Definition: Matrix.h:609
Matrix< T > HadamardDiv(const Matrix< T > &lhs, const Matrix< T > &rhs)
Definition: matrix_utils.h:36
Matrix< double > zeros(size_t rows, size_t columns, size_t elements=1)