12#ifndef MLPACK_BINDINGS_GO_GONUM_ARMA_UTIL_HPP
13#define MLPACK_BINDINGS_GO_GONUM_ARMA_UTIL_HPP
29 if (m.mem && m.n_elem <= arma::arma_config::mat_prealloc)
32 typename T::elem_type* mem =
33 arma::memory::acquire<typename T::elem_type>(m.n_elem);
34 arma::arrayops::copy(mem, m.memptr(), m.n_elem);
39 arma::access::rw(m.mem_state) = 1;
Include all of the base components required to write mlpack methods, and the main mlpack Doxygen docu...
Linear algebra utility functions, generally performed on matrices or vectors.
T::elem_type * GetMemory(T &m)
Return the matrix's allocated memory pointer, unless the matrix is using its internal preallocated me...