13 #ifndef MLPACK_METHODS_ANN_INIT_RULES_ZERO_INIT_HPP 14 #define MLPACK_METHODS_ANN_INIT_RULES_ZERO_INIT_HPP 40 void Initialize(arma::Mat<eT>& W,
const size_t rows,
const size_t cols)
42 W = arma::zeros<arma::Mat<eT> >(rows, cols);
58 W = arma::zeros<arma::Cube<eT> >(rows, cols, slices);
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
ZeroInitialization()
Create the ZeroInitialization object.
This class is used to initialize randomly the weight matrix.
void Initialize(arma::Mat< eT > &W, const size_t rows, const size_t cols)
Initialize the elements of the specified weight matrix.
void Initialize(arma::Cube< eT > &W, const size_t rows, const size_t cols, const size_t slices)
Initialize the elements of the specified weight (3rd order tensor).