make_alias.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mlpack
 
.hpp
 
 mlpack::math
 
Miscellaneous math routines.
 

Functions

template
<
typename
ElemType
>
void ClearAlias (arma::Mat< ElemType > &mat)
 Clear an alias so that no data is overwritten. More...

 
template
<
typename
ElemType
>
void ClearAlias (arma::SpMat< ElemType > &)
 Clear an alias for a sparse matrix. More...

 
template
<
typename
ElemType
>
arma::Cube< ElemType > MakeAlias (arma::Cube< ElemType > &input, const bool strict=true)
 Make an alias of a dense cube. More...

 
template
<
typename
ElemType
>
arma::Mat< ElemType > MakeAlias (arma::Mat< ElemType > &input, const bool strict=true)
 Make an alias of a dense matrix. More...

 
template
<
typename
ElemType
>
arma::Row< ElemType > MakeAlias (arma::Row< ElemType > &input, const bool strict=true)
 Make an alias of a dense row. More...

 
template
<
typename
ElemType
>
arma::Col< ElemType > MakeAlias (arma::Col< ElemType > &input, const bool strict=true)
 Make an alias of a dense column. More...

 
template
<
typename
ElemType
>
arma::SpMat< ElemType > MakeAlias (const arma::SpMat< ElemType > &input, const bool=true)
 Make a copy of a sparse matrix (an alias is not possible). More...

 
template
<
typename
ElemType
>
arma::SpRow< ElemType > MakeAlias (const arma::SpRow< ElemType > &input, const bool=true)
 Make a copy of a sparse row (an alias is not possible). More...

 
template
<
typename
ElemType
>
arma::SpCol< ElemType > MakeAlias (const arma::SpCol< ElemType > &input, const bool=true)
 Make a copy of a sparse column (an alias is not possible). More...

 

Detailed Description

Author
Ryan Curtin

Make an alias of a matrix. For sparse matrices, unfortunately no alias can be made and a copy must be incurred.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.

Definition in file make_alias.hpp.