Go to the source code of this file.
Namespaces | |
mlpack | |
Linear algebra utility functions, generally performed on matrices or vectors. | |
mlpack::util | |
Functions | |
template < typename DataType , typename DimType > | |
void | CheckSameDimensionality (const DataType &data, const DimType &dimension, const std::string &callerDescription, const std::string &addInfo="dataset") |
Check for if the given dataset dimension matches with the model's. More... | |
template < typename DataType > | |
void | CheckSameDimensionality (const DataType &data, const size_t &dimension, const std::string &callerDescription, const std::string &addInfo="dataset") |
An overload of CheckSameDimensionality() where the dimension to be checked is known second param is unsigned long int. More... | |
template < typename DataType , typename LabelsType > | |
void | CheckSameSizes (const DataType &data, const LabelsType &label, const std::string &callerDescription, const std::string &addInfo="labels") |
Check for if the given data points & labels have same size. More... | |
template < typename DataType > | |
void | CheckSameSizes (const DataType &data, const size_t &size, const std::string &callerDescription, const std::string &addInfo="labels") |
An overload of CheckSameSizes() where the size to be checked is known previously. More... | |
Utility for checking same size & same dimensionality.
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 size_checks.hpp.