Classes |
class | BadConfidenceCreation |
| BadConfidenceCreation is thrown when factory tries to generate an unknown confidence method. More...
|
class | BadKernelCreation |
| BadKernelCreation is thrown when factory tries to generate an unknown kernel. More...
|
class | BadNormCreation |
| BadNormCreation is thrown when factory tries to generate an unknown norm. More...
|
class | BadOptimizerCreation |
| BadOptimizerCreation is thrown when factory tries to generate an unknown optimizer. More...
|
class | BadParamSelectionCreation |
| BadParamSelectionCreation is thrown when factory tries to generate an unknown parameter selection method. More...
|
class | BadPerformanceCreation |
| BadPerformanceCreation is thrown when factory tries to generate an unknown performance evaluator. More...
|
class | BadPredictionCreation |
| BadPredictionCreation is thrown when factory tries to generate an unknown prediction method. More...
|
class | BadPredKernelCreation |
| BadPredKernelCreation is thrown when factory tries to generate an unknown prediction kernel. More...
|
class | BadSplitCreation |
| BadSplitCreation is thrown when factory tries to generate an unknown split method. More...
|
class | BaseArray |
| BaseArray is the base class for all classes implementing vectors and matrices as arrays of cells. More...
|
class | BlasUtils |
| BlasUtils is a convenience class to interface with Blas. More...
|
class | ConfBoltzman |
| ConfBoltzman is the sub-class of Confidence that computes the probability of belonging to the highest scoring class. More...
|
class | ConfBoltzmanGap |
| ConfBoltzmanGap is the sub-class of Confidence that computes a confidence estimation for the predicted class (i.e. More...
|
class | ConfGap |
| ConfGap is the sub-class of Confidence that computes a confidence estimation for the predicted class. More...
|
class | Confidence |
| Confidence is the class that computes a confidence score for the predicted labels. More...
|
class | ConfMaxScore |
| ConfMaxScore is the sub-class of Confidence that computes a confidence estimation for the predicted class (i.e. More...
|
class | Functor |
class | gException |
| gException is the class designed to deal with exceptions in Gurls++ package. More...
|
class | gMat2D |
| gMat2D implements a matrix of generic size More...
|
class | GPRWrapper |
| GPRWrapper is the sub-class of GurlsWrapper that implements ... More...
|
class | GURLS |
| GURLS is the class that implements a GURLS process. More...
|
class | GurlsOption |
| GurlsOption is an abstraction of a generic `option', which is widely used within the GURLS++ package to store either numeric parameters necessary to configure specific algorigms or sequences of strings holding the names of the specific procedures that have to be performed. More...
|
class | GurlsOptionsList |
| GurlsOptionsList is an option containing a list of options mapped by name. More...
|
class | GurlsWrapper |
| GurlsWrapper is the base class for all gurls++ wrappers. More...
|
class | gVec |
| gVec implements a vector of generic length More...
|
class | ICholWrapper |
class | Kernel |
| Kernel is the class that computes the kernel matrix. More...
|
class | KernelChisquared |
| KernelChisquared is the sub-class of Kernel that builds the kernel matrix for a chi-squared model. More...
|
class | KernelLinear |
| KernelLinear is the sub-class of Kernel that builds the kernel matrix for a linear model. More...
|
class | KernelRBF |
| KernelRBF is the sub-class of Kernel that builds the Gaussian kernel matrix. More...
|
class | KernelRLSWrapper |
| KernelRLSWrapper is the sub-class of GurlsWrapper that implements Regularized Least Squares with a possibly non-linear model by resorting to kernel methods. More...
|
class | KernelWrapper |
| KernelWrapper is the base class for all gurls++ wrappers. More...
|
class | LtCompare |
| Auxiliary class performing floating point comparison used for std routines. More...
|
class | Max |
| Computes the largest element in a vector v of lenght n . More...
|
class | Mean |
| Computes the mean value of a vector v of lenght n . More...
|
class | Median |
| Computes the median value of a vector v of lenght n . More...
|
class | Min |
| Computes the smallest element in a vector v of lenght n . More...
|
class | Norm |
| Norm is a class that spherifies the data. More...
|
class | NormL2 |
| NormL2 is the sub-class of Norm that spheriphies the data according to the l2 norm. More...
|
class | NormTestZScore |
| NormTestZScore is the sub-class of Norm that spheriphies the data according to the statistics cmoputed on the training set. More...
|
class | NormZScore |
| NormZScore is the sub-class of Norm that centers and rescales the input data matrix X. More...
|
class | NystromWrapper |
| NystromWrapper is the sub-class of GurlsWrapper that allows to train a possibly non linear model for large data sets, for which the complete nxn kernel matrix may not fit into RAM. More...
|
class | OptArray |
| Optarray is an option containing an indexed array of options. More...
|
class | OptFunction |
| OptFunction is an option representing a pointer to a generic function T (*function)(T* , int) operating over an array of floating point numbers. More...
|
class | Optimizer |
| Optimizer is a class that implements a Regularized Least Square algorithm. More...
|
class | OptMatrix |
| OptMatrix is an option containing a matrix. More...
|
class | OptMatrixBase |
| OptMatrixBase is the base class for all options containing matrices. More...
|
class | OptNumber |
| OptNumber is an option containing a double precision floating point number. More...
|
class | OptNumberList |
| OptNumberList is an option containing a list of double precision floating point numbers. More...
|
class | OptProcess |
| OptProcess is an option containing a sequence of actions that form a Gurls process. More...
|
class | OptString |
| OptString is an option containing a generic string. More...
|
class | OptStringList |
| OptStringList is an option containing a list of strings. More...
|
class | OptTaskSequence |
| OptTaskSequence is an option containing a sequence of task that forms a pipeline. More...
|
class | ParamSelCalibrateSGD |
| ParamselCalibrateSGD is the sub-class of ParamSelection that implements parameter selection for pegasos. More...
|
class | ParamSelection |
| ParamSelection is the class that implements parameter selection. More...
|
class | ParamSelFixLambda |
| ParamSelFixLambda is the sub-class of ParamSelection that sets the regularization parameter to a constant. More...
|
class | ParamSelFixSigLam |
| ParamSelFixSigLam is the sub-class of ParamSelection that sets the regularization parameters to constants. More...
|
class | ParamSelHoDual |
| ParamSelHoDual is the subclass of ParamSelection that implements hold-out cross validation with the dual formulation of RLS. More...
|
class | ParamSelHoDualr |
| ParamSelHoDualr is the randomized version of ParamSelHoDual. More...
|
class | ParamSelHoGPRegr |
| ParamSelHoGPRegr is the sub-class of ParamSelection that implements. More...
|
class | ParamSelHoPrimal |
| ParamSelHoPrimal is the subclass of ParamSelection that implements hold-out cross validation with the primal formulation of RLS. More...
|
class | ParamSelHoPrimalr |
| ParamSelHoPrimalr is the randomized version of ParamSelHoPrimal. More...
|
class | ParamSelLoocvDual |
| ParamSelLoocvDual is the sub-class of ParamSelection that implements LOO cross-validation with the dual formulation. More...
|
class | ParamSelLoocvPrimal |
| ParamSelLoocvPrimal is the sub-class of ParamSelection that implements LOO cross-validation with the primal formulation. More...
|
class | ParamSelLooGPRegr |
| ParamSelLooGPRegr is the sub-class of ParamSelection that implements. More...
|
class | ParamSelSiglam |
| ParamSelSiglam is the sub-class of ParamSelection that implements LOO cross-validation with the dual formulation for a rbf kernel. More...
|
class | ParamSelSiglamHo |
| ParamSelSiglam is the sub-class of ParamSelection that implements hold-out cross validation with the dual formulation for a rbf kernel. More...
|
class | ParamSelSiglamHoGPRegr |
| ParamSelSiglamHoGPRegr is the sub-class of ParamSelection that implements. More...
|
class | ParamSelSiglamLooGPRegr |
| ParamSelSiglamLooGPRegr is the sub-class of ParamSelection that implements leave-one-ot parameter selection for Gaussian process regression. More...
|
class | PerfMacroAvg |
| PerfMacroAvg is the sub-class of Performance that evaluates prediction accuracy. More...
|
class | Performance |
| Performance is the class that evaluates prediction performance. More...
|
class | PerfPrecRec |
| PerfPrecRec is the sub-class of Performance that evaluates prediction precision. More...
|
class | PerfRmse |
| PerfRmse is the sub-class of Performance that evaluates prediction error. More...
|
class | PredDual |
| PredDual is the sub-class of Prediction that computes the predictions of a linear classifier in the dual formulation. More...
|
class | PredGPRegr |
| PredGPRegr is the sub-class of Prediction that computes the predictions of GP. More...
|
class | Prediction |
| Prediction is the class that computes predictions. More...
|
class | PredKernel |
| PredKernel is the class that computes the kernel matrix for prediction. More...
|
class | PredKernelTrainTest |
| PredKernelTrainTest is the sub-class of PredKernel that computes the kernel matrix between training and test sets. More...
|
class | PredPrimal |
| PredPrimal is the sub-class of Prediction that computes the predictions of a linear classifier in the primal formulation. More...
|
class | PredRandFeats |
| PredRandFeats is the sub-class of Prediction that computes the predictions of the linear classifier stored in opt.rls.W, and obtained the Random Features approach proposed in: Ali Rahimi, Ben Recht; Random Features for Large-Scale Kernel Machines; in Neural Information Processing Systems (NIPS) 2007. More...
|
class | RandomFeaturesWrapper |
| RLSWrapper is the sub-class of GurlsWrapper that implements Regularized Least Squares with a linear model. More...
|
class | RecursiveRLSWrapper |
| RecursiveRLSWrapper is the sub-class of GurlsWrapper that implements recursive update of the RLS estimator with retraining capability. More...
|
class | RLSAuto |
| RLSAuto is the sub-class of Optimizer that implements automatic selection of primal/dual procedure. More...
|
class | RLSDual |
| RLSDual is the sub-class of Optimizer that implements RLS with the dual formulation. More...
|
class | RLSDualr |
| RLSDualr is the sub-class of Optimizer that implements RLS with the dual formulation, using a randomized version of SVD. More...
|
class | RLSGPRegr |
| RLSGPRegr is the sub-class of Optimizer that implements GP inference. More...
|
class | RLSPegasos |
| RLSPegasos is the sub-class of Optimizer that implements the Pegaosos algorithm. More...
|
class | RLSPrimal |
| RLSPrimal is the sub-class of Optimizer that implements RLS with the primal formulation. More...
|
class | RLSPrimalr |
| RLSPrimalr is the sub-class of Optimizer that implements RLS with the primal formulation, using a randomized version of SVD. More...
|
class | RLSPrimalRecInit |
| RLSPrimalRecInit is the sub-class of Optimizer that implements RLS with the primal formulation. More...
|
class | RLSPrimalRecUpdate |
| RLSPrimalRecUpdate is the sub-class of Optimizer that implements RLS with the primal formulation. More...
|
class | RLSRandFeats |
| RLSRandFeats is the sub-class of Optimizer that computes a classifier for the primal formulation of RLS using the Random Features approach proposed in: Ali Rahimi, Ben Recht; Random Features for Large-Scale Kernel Machines; in Neural Information Processing Systems (NIPS) 2007. More...
|
class | RLSWrapper |
| RLSWrapper is the sub-class of GurlsWrapper that implements Regularized Least Squares with a linear model. More...
|
class | Split |
| Split is the class that splits data into pair(s) of training and test samples. More...
|
class | SplitHo |
| SplitHoMulti is the sub-class of Split that splits data into one or more pairs of training and test samples. More...
|
Enumerations |
enum | CBLAS_DIAG { CblasNonUnit = 5,
CblasUnit = 6
} |
| Diagonal options (unit, non unit)
|
enum | CBLAS_ORDER { CblasRowMajor = 9,
CblasColMajor = 10
} |
| Matrix Order (row major or column major)
|
enum | CBLAS_SIDE { CblasLeft = 7,
CblasRight = 8
} |
| Side options (left, right)
|
enum | CBLAS_TRANSPOSE { CblasNoTrans = 0,
CblasTrans = 1,
CblasConjTrans = 2
} |
| Transposition options (no transpose, transpose, conjugate transpose)
|
enum | CBLAS_UPLO { CblasUpper = 3,
CblasLower = 4
} |
| Upper/lower options (upper, lower)
|
enum | InversionAlgorithm { LU,
GaussJ
} |
| Implemented inversion algorithms.
|
enum | OptTypes {
GenericOption,
StringOption,
NumberOption,
StringListOption,
NumberListOption,
FunctionOption,
MatrixOption,
VectorOption,
OptListOption,
TaskSequenceOption,
TaskIDOption,
OptArrayOption,
ProcessOption
} |
| Enumeration containing all implemented Option types.
|
Functions |
template<typename T > |
void | argmin (const T *A, unsigned long *result, const int A_rows, const int A_cols, const int res_length) throw (gException) |
| Coputes the smallest elements along the rows of a matrix.
|
template<typename T > |
void | axpy (const int N, const T alpha, const T *X, const int incX, T *Y, const int incY) |
| Template function to call BLAS *AXPY routines.
|
template<> |
GURLS_EXPORT void | axpy (const int N, const float alpha, const float *X, const int incX, float *Y, const int incY) |
| Specialized version of axpy for float buffers.
|
template<> |
GURLS_EXPORT void | axpy (const int N, const double alpha, const double *X, const int incX, double *Y, const int incY) |
| Specialized version of axpy for double buffers.
|
template<typename T > |
void | binOperation (const T *A, const T *B, T *result, const int len, T(*op)(T, T)) |
| Applies an element by element binary operation over two vectors ( )
|
template<typename T > |
void | cholesky (const gMat2D< T > &A, gMat2D< T > &L, bool upper=true) |
| Computes the Cholesky factorization of a symmetric, positive definite matrix using the LAPACK routine SPOTRF.
|
template<> |
GURLS_EXPORT void | cholesky (const gMat2D< float > &A, gMat2D< float > &L, bool upper) |
| Specialized version of cholesky for float matrices.
|
template<typename T > |
void | cholesky (const T *matrix, const int rows, const int cols, T *result, bool upper=true) |
| Computes the Cholesky factorization of a symmetric, positive definite matrix using the LAPACK routine SPOTRF.
|
template<typename T > |
void | clearLowerTriangular (T *matrix, int rows, int cols) |
| Zeroes on the lower triangle of a matrix.
|
template<typename T > |
T * | compare (const T *vector1, const T *vector2, const int size, bool(*pred)(T, T)) |
| Compares element by element two vectors using a binary predicate, and returns a vector where each element is:
|
template<typename T > |
T * | compare (const T *vector, const T thr, const int size, bool(*pred)(T, T)) |
| Compares each element of a vector with a threshold using a binary predicate and returns a vector where each element is:
|
template<typename T > |
void | copy (T *dst, const T *src, const int size) |
| Copies element form one vector to another one.
|
template<> |
GURLS_EXPORT void | copy (float *dst, const float *src, const int size) |
| Specialized version of copy for float buffers.
|
template<> |
GURLS_EXPORT void | copy (double *dst, const double *src, const int size) |
| Specialized version of copy for double buffers.
|
template<typename T > |
void | copy (T *dst, const T *src, const int size, const int dstIncr, const int srcIncr) |
| Copies element form one vector to another one.
|
template<> |
GURLS_EXPORT void | copy (float *dst, const float *src, const int size, const int dstIncr, const int srcIncr) |
| Specialized version of copy for float buffers.
|
template<> |
GURLS_EXPORT void | copy (double *dst, const double *src, const int size, const int dstIncr, const int srcIncr) |
| Specialized version of copy for double buffers.
|
template<typename T > |
void | copy_submatrix (T *dst, const T *src, const int src_Rows, const int sizeRows, const int sizeCols, unsigned long *indices_rows, unsigned long *indices_cols) |
| Generates a submatrix from an input matrix.
|
template<typename T > |
void | copyLocations (const unsigned long *locs, const T *src, const int locs_len, const int src_len, T *result) |
| Returns a subvector of an input vector, containing elements of the input vector whose index is contained into an indices vector.
|
template<class MatrixType > |
GurlsOption * | copyOptMatrix (const GurlsOption *toCopy) |
template<typename T > |
void | diag (T *vector, const int len, T *result) |
| Returns a squared matrix initialized in the diagonal with values from a vector.
|
template<typename T > |
void | distance (const T *A, const T *B, const int rows, const int A_cols, const int B_cols, T *D) |
| Utility function used to build the kernel matrix; it computes the matrix of the squared euclidean distance between each column of A and each colum of B.
|
template<typename T > |
void | distance_transposed (const T *A, const T *B, const int cols, const int A_rows, const int B_rows, T *D) |
| Utility function used to build the kernel matrix; it computes the matrix of the squared euclidean distance between each row of A and each row of B.
|
template<typename T > |
void | distance_transposed_vm (const T *A, const T *B, const int cols, const int B_rows, T *D, const int size, const int incrA=1) |
| Utility function used to build the kernel matrix; it computes the matrix of the squared euclidean distance between a vector A and each row of B.
|
template<typename T > |
T | div (T a, T b) |
| Division of two scalars.
|
template<> |
GURLS_EXPORT float | dot (const gVec< float > &x, const gVec< float > &y) |
| Specialized version of dot for float vectors.
|
template<> |
GURLS_EXPORT double | dot (const gVec< double > &x, const gVec< double > &y) |
| Specialized version of dot for float vectors.
|
template<typename T > |
void | dot (const gMat2D< T > &A, const gMat2D< T > &B, gMat2D< T > &C) |
| Implements the standard GEMM routine from Level3 BLAS General Matrix-Matrix multiplication of two single/double precision real matrices A and B (the corresponding Matlab code is: C = A*B;).
|
template<> |
GURLS_EXPORT void | dot (const gMat2D< float > &A, const gMat2D< float > &B, gMat2D< float > &C) |
| Specialized version of dot for float matrices.
|
template<typename T > |
T | dot (const int N, const T *X, const int incX, const T *Y, const int incY) |
| Template function to call BLAS *DOT routines.
|
template<typename T > |
void | dot (const gMat2D< T > &A, const gVec< T > &x, gVec< T > &y) |
| Implements the standard DOT routine from Level 1 BLAS General Matrix-Vector multiplication of a single/double precision matrix A with a vector x (the corresponding Matlab code is y = A*x;).
|
template<> |
GURLS_EXPORT void | dot (const gMat2D< double > &A, const gMat2D< double > &B, gMat2D< double > &C) |
| Specialized version of dot for float matrices.
|
template<typename T > |
T | dot (const gVec< T > &x, const gVec< T > &y) |
| Implements the standard scalar product between vectors General routine from Level1 BLAS: n <-- x^T * y General Vector-Vector multiplication for single/double precision real data.
|
template<> |
GURLS_EXPORT void | dot (const gMat2D< float > &A, const gVec< float > &x, gVec< float > &y) |
| Specialized version of dot for float matrices/vectors.
|
template<> |
GURLS_EXPORT float | dot (const int N, const float *X, const int incX, const float *Y, const int incY) |
| Specialized version of dot for float buffers.
|
template<> |
GURLS_EXPORT double | dot (const int N, const double *X, const int incX, const double *Y, const int incY) |
| Specialized version of dot for double buffers.
|
template<> |
GURLS_EXPORT void | dot (const gMat2D< double > &A, const gVec< double > &x, gVec< double > &y) |
| Specialized version of dot for float matrices/vectors.
|
template<typename T > |
void | dot (const T *A, const T *B, T *C, int A_rows, int A_cols, int B_rows, int B_cols, int C_rows, int C_cols, const CBLAS_TRANSPOSE TransA, const CBLAS_TRANSPOSE TransB, const CBLAS_ORDER Order) |
| General Matrix-Matrix multiplication of two single/double precision real matrices A and B.
|
template<typename T > |
void | eig (const gMat2D< T > &A, gMat2D< T > &V, gVec< T > &Wr, gVec< T > &Wi) |
| Implements the computation of the eigenvalues of A using the LAPACK routine SGEEV with default computation of the right eigenvectors.
|
template<typename T > |
void | eig (const gMat2D< T > &A, gMat2D< T > &V, gVec< T > &W) |
| Implements the computation of the eigenvalues of A using the LAPACK routine SGEEV with default computation of the right eigenvectors.
|
template<typename T > |
void | eig (const gMat2D< T > &A, gVec< T > &Wr, gVec< T > &Wi) |
| Implements the computation of the eigenvalues of A.
|
template<typename T > |
void | eig (const gMat2D< T > &A, gVec< T > &W) |
| Implements the computation of the eigenvalues of A.
|
template<> |
GURLS_EXPORT void | eig (const gMat2D< float > &A, gMat2D< float > &V, gVec< float > &Wr, gVec< float > &Wi) |
| Specialized version of eig for float matrices/vectors.
|
template<> |
GURLS_EXPORT void | eig (const gMat2D< float > &A, gMat2D< float > &V, gVec< float > &W) |
| Specialized version of eig for float matrices/vectors.
|
template<> |
GURLS_EXPORT void | eig (const gMat2D< float > &A, gVec< float > &Wr, gVec< float > &Wi) |
| Specialized version of eig for float matrices/vectors.
|
template<> |
GURLS_EXPORT void | eig (const gMat2D< float > &A, gVec< float > &W) |
| Specialized version of eig for float matrices/vectors.
|
template<typename T > |
void | eig_sm (T *A, T *L, int A_rows_cols) throw (gException) |
| Computes the eigenvalues/eigenvectors of a squared and symmetric input matrix.
|
template<typename T > |
bool | eq (T val1, T val2) |
| "Equals" operator between two scalars
|
template<> |
GURLS_EXPORT bool | eq (float val1, float val2) |
| "Equals" operator between two scalars, specialized for float values
|
template<> |
GURLS_EXPORT bool | eq (double val1, double val2) |
| "Equals" operator between two scalars, specialized for double values
|
template<typename T > |
T | eucl_dist (const T *A, const T *B, const int len, T *work) |
| Computes Euclidean distance between two vectors.
|
static std::string | Exception_Functionality_Not_Implemented (Exception_Incipit+"An attempt to use a functionality that is not implemented yet occurred.") |
| Message displayed when trying to use a non implemented funcionality.
|
static std::string | Exception_Gurls_Inconsistent_Processes_Number (Exception_Incipit+"The number of elements in the list of processes/tasks is not consistent.") |
| Message displayed when the number of gurls processes and gurls tasks are different.
|
static std::string | Exception_Gurls_Invalid_ProcessID (Exception_Incipit+"Invalid process ID.") |
| Message displayed when the ID of a process is not found into the gurls process list.
|
static std::string | Exception_Illegal_Argument_Value (Exception_Incipit+"The value of the input variable is not allowed.") |
| Message displayed when an input parameter has an invalid value.
|
static std::string | Exception_Illegal_Dynamic_Cast (Exception_Incipit+"An illegal dynamic cast occured.") |
| Message displayed when failing a cast.
|
static std::string | Exception_Incipit ("ERROR! ") |
| String prefix for all exception messages.
|
static std::string | Exception_Inconsistent_Size (Exception_Incipit+"An attempt to combine arrays with inconsistent dimensions occurred.") |
| Message displayed when two arrays have inconsistent dimensions.
|
static std::string | Exception_Index_Out_of_Bound (Exception_Incipit+"Index exceeds matrix dimensions.") |
| Message displayed when trying to access an a vector or matrix with a too large index.
|
static std::string | Exception_Invalid_Reshape_Arguments (Exception_Incipit+"To RESHAPE the number of elements must not change.") |
| Message displayed when trying to reshape a matrix changing the number of elements.
|
static std::string | Exception_Invalid_TaskSequence (Exception_Incipit+"Invalid task name specification.") |
| Message displayed when trying to execute an unknown task.
|
static std::string | Exception_Logical_Operator (Exception_Incipit+"An unknown logical comparison has been required.") |
| Message displayed when trying to use an undefined logical operator for comparison.
|
static std::string | Exception_Parameter_Already_Definied (Exception_Incipit+"The parameter has been already defined.") |
| Message displayed when an options' parameter has been already defined.
|
static std::string | Exception_Parameter_Not_Definied_Yet (Exception_Incipit+"The requested parameter has not been defined yet.") |
| Message displayed when an options' parameter has not been defined yet.
|
static std::string | Exception_Required_Parameter_Missing (Exception_Incipit+"One of the parameters required to run the algorithm is missing.") |
| Message displayed when a required parameter for an algorithm is missing.
|
static std::string | Exception_Square_Matrix_Required (Exception_Incipit+"An attempt to use a general matrix instead of the required square matrix occurred.") |
| Message displayed when trying to use a non squared matrix where a squared one is required.
|
static std::string | Exception_Unknown_Function (Exception_Incipit+"Unknown function.") |
| Message displayed when trying to execute an unknown function.
|
static std::string | Exception_Unknown_Option (Exception_Incipit+"An unknown option has been used.") |
| Message displayed when trying to access a non-existent option.
|
static std::string | Exception_Unsupported_MatrixType (Exception_Incipit+"Matrix type actually unsupported.") |
| Message displayed when trying to build a matrix with an unsupported element type.
|
static std::string | Exception_Wrong_Memory_Access (Exception_Incipit+"An attempt to acces a non-existent memory location occurred.") |
| Message displayed when a method tryes to modify an array that is not the owner of its data.
|
template<typename T > |
void | exp (T *v, const int length) |
| In place computation of the exponential for each element of a vector.
|
template<typename T > |
int | gelss (int *m, int *n, int *nrhs, T *a, int *lda, T *b, int *ldb, T *s, T *rcond, int *rank, T *work, int *lwork, int *info) |
| Template function to call LAPACK *GELSS routines.
|
template<> |
GURLS_EXPORT int | gelss (int *m, int *n, int *nrhs, float *a, int *lda, float *b, int *ldb, float *s, float *rcond, int *rank, float *work, int *lwork, int *info) |
| Specialized version of gelss for float buffers.
|
template<> |
GURLS_EXPORT int | gelss (int *m, int *n, int *nrhs, double *a, int *lda, double *b, int *ldb, double *s, double *rcond, int *rank, double *work, int *lwork, int *info) |
| Specialized version of gelss for double buffers.
|
template<> |
GURLS_EXPORT void | gemm (const CBLAS_TRANSPOSE TransA, const CBLAS_TRANSPOSE TransB, const int M, const int N, const int K, const float alpha, const float *A, const int lda, const float *B, const int ldb, const float beta, float *C, const int ldc) |
| Specialized version of gemm for float buffers.
|
template<> |
GURLS_EXPORT void | gemm (const CBLAS_TRANSPOSE TransA, const CBLAS_TRANSPOSE TransB, const int M, const int N, const int K, const double alpha, const double *A, const int lda, const double *B, const int ldb, const double beta, double *C, const int ldc) |
| Specialized version of gemm for double buffers.
|
template<typename T > |
void | gemm (const CBLAS_TRANSPOSE TransA, const CBLAS_TRANSPOSE TransB, const int M, const int N, const int K, const T alpha, const T *A, const int lda, const T *B, const int ldb, const T beta, T *C, const int ldc) |
| Template function to call BLAS *GEMM routines.
|
template<typename T > |
void | gemv (const CBLAS_TRANSPOSE TransA, const int M, const int N, const T alpha, const T *A, const int lda, const T *X, const int incX, const T beta, T *Y, const int incY) |
| Template function to call BLAS *GEMV routines.
|
template<> |
GURLS_EXPORT void | gemv (const CBLAS_TRANSPOSE TransA, const int M, const int N, const float alpha, const float *A, const int lda, const float *X, const int incX, const float beta, float *Y, const int incY) |
| Specialized version of gemv for float buffers.
|
template<> |
GURLS_EXPORT void | gemv (const CBLAS_TRANSPOSE TransA, const int M, const int N, const double alpha, const double *A, const int lda, const double *X, const int incX, const double beta, double *Y, const int incY) |
| Specialized version of gemv for double buffers.
|
template<typename T > |
void | geqp3 (int *m, int *n, T *A, int *lda, int *jpvt, T *tau, T *work, int *lwork, int *info) |
| Template function to call LAPACK *GEQP3 routines.
|
template<> |
GURLS_EXPORT void | geqp3 (int *m, int *n, float *A, int *lda, int *jpvt, float *tau, float *work, int *lwork, int *info) |
| Specialized version of geqp3 for float buffers.
|
template<> |
GURLS_EXPORT void | geqp3 (int *m, int *n, double *A, int *lda, int *jpvt, double *tau, double *work, int *lwork, int *info) |
| Specialized version of geqp3 for double buffers.
|
template<typename T > |
int | gesvd_ (char *jobu, char *jobvt, int *m, int *n, T *a, int *lda, T *s, T *u, int *ldu, T *vt, int *ldvt, T *work, int *lwork, int *info) |
| Template function to call BLAS *GESVD routines.
|
template<> |
GURLS_EXPORT int | gesvd_ (char *jobu, char *jobvt, int *m, int *n, float *a, int *lda, float *s, float *u, int *ldu, float *vt, int *ldvt, float *work, int *lwork, int *info) |
| Specialized version of gesvd_ for float buffers.
|
template<> |
GURLS_EXPORT int | gesvd_ (char *jobu, char *jobvt, int *m, int *n, double *a, int *lda, double *s, double *u, int *ldu, double *vt, int *ldvt, double *work, int *lwork, int *info) |
| Specialized version of gesvd_ for double buffers.
|
template<class Matrix > |
OptMatrixBase::MatrixType | getMatrixCellType () |
template<> |
GURLS_EXPORT
OptMatrixBase::MatrixType | getMatrixCellType< const gMat2D< double > > () |
template<> |
GURLS_EXPORT
OptMatrixBase::MatrixType | getMatrixCellType< const gMat2D< float > > () |
template<> |
GURLS_EXPORT
OptMatrixBase::MatrixType | getMatrixCellType< gMat2D< double > > () |
template<> |
GURLS_EXPORT
OptMatrixBase::MatrixType | getMatrixCellType< gMat2D< float > > () |
template<> |
GURLS_EXPORT
OptMatrixBase::MatrixType | getMatrixCellType< gMat2D< unsigned long > > () |
template<typename T > |
void | getRow (const T *M, const int rows, const int cols, const int row_index, T *row) |
| Generates a vector containing a copy of a row of an input matrix.
|
template<typename T > |
void | GInverseDiagonal (const T *Q, const T *L, const T *lambda, T *Z, const int Q_rows, const int Q_cols, const int L_length, const int lambda_length) |
template<typename T > |
void | GInverseDiagonal (const T *Q, const T *L, const T *lambda, T *Z, const int Q_rows, const int Q_cols, const int L_length, const int lambda_length, T *work) |
template<typename T > |
bool | gt (T a, T b) |
| "Greater than" operator between two scalars
|
template<> |
GURLS_EXPORT bool | gt (float a, float b) |
| "Greater than" operator between two scalars, specialized for float values
|
template<> |
GURLS_EXPORT bool | gt (double a, double b) |
| "Greater than" operator between two scalars, specialized for double values
|
template<typename T > |
bool | gte (T a, T b) |
| "Greater than or equals" operator between two scalars
|
template<typename T > |
void | indicesOfEqualsTo (const T *V, const int len, const T value, unsigned long *ind, int &ind_length) |
| Computes a vector containing the indices of all elements of an input vector that are equals to a given value.
|
template<typename T > |
void | indicesOfMax (const T *A, const int A_rows, const int A_cols, unsigned long *ind, T *work, const int dimension) throw (gException) |
| Returns the indices of the largest elements along different dimensions of a matrix.
|
template<> |
GURLS_EXPORT void | inv (const gMat2D< float > &A, gMat2D< float > &Ainv, InversionAlgorithm alg) |
| Specialized version of inv for float matrices.
|
template<typename T > |
void | inv (const gMat2D< T > &A, gMat2D< T > &Ainv, InversionAlgorithm alg=LU) |
| Computes the inverse of a matrix .
|
template<typename T > |
T * | lambdaguesses (const T *eigvals, const int len, const int r, const int n, const int nlambda, const T minl) |
| Builds array of possible values for the regularization parameter, generating a geometric series from the values in EIGVALS Internal function, not to be called from gurls.
|
template<typename T > |
bool | le (T a, T b) |
| "Less or equal than" operator between two scalars
|
template<typename T > |
void | linspace (T a, T b, unsigned long n, T *res) |
| Generates a row vector of n points linearly spaced between and including a and b.
|
template<typename T > |
bool | lt (T a, T b) |
| "Less than" operator between two scalars
|
template<> |
GURLS_EXPORT bool | lt (float a, float b) |
| "Less than" operator between two scalars, specialized for float values
|
template<> |
GURLS_EXPORT bool | lt (double a, double b) |
| "Less than" operator between two scalars, specialized for double values
|
template<typename T > |
void | lu (gMat2D< T > &A) |
| Implements the LU decomposition usig LAPACK routines.
|
template<typename T > |
void | lu (gMat2D< T > &A, gVec< int > &pv) |
| Implements the LU factorization of a general M-by-N matrix A using partial pivoting with row interchanges, using LAPACK routines.
|
template<> |
GURLS_EXPORT void | lu (gMat2D< float > &A, gVec< int > &pv) |
| Specialized version of lu for float matrices/vectors.
|
template<> |
GURLS_EXPORT void | lu (gMat2D< float > &A) |
| Specialized version of lu for float matrices.
|
template<typename T > |
void | maxValues (const T *A, const int A_rows, const int A_cols, T *maxv, T *work, const int dimension) throw (gException) |
| Returns the largest elements along different dimensions of a matrix.
|
template<typename T > |
void | mean (const T *A, T *result, const int A_rows, const int A_cols, const int res_length) throw (gException) |
| Computes the mean values along the rows of a matrix.
|
template<typename T > |
T | median (T *v, const int length) |
| Returns the median value of a vector.
|
template<typename T > |
void | median (const T *M, const int rows, const int cols, const int dimension, T *res, T *work) |
| Computes the median values of the elements along different dimensions of a matrix.
|
template<typename T > |
void | mldivide_squared (const T *A, T *B, const int a_rows, const int a_cols, const int b_rows, const int b_cols, const CBLAS_TRANSPOSE transA) |
| Performs left division of squared matrices.
|
template<typename T > |
T | mul (T a, T b) |
| Multiplication of two scalars.
|
template<typename T > |
void | mult (const T *A, const T *B, T *result, const int len) |
| Element by element multiplication of two vectors.
|
template<typename T > |
T | norm (const gVec< T > &x, std::string type="l2") |
| Computes a vector norm specified by type parameter.
|
template<typename T > |
T | norm (const gMat2D< T > &A, std::string type="l2") |
| Computes a matrix norm specified by type parameter.
|
template<typename T > |
T | nrm2 (const int N, const T *X, const int incX) |
| Template function to call BLAS *NRM2 routines.
|
template<> |
GURLS_EXPORT float | nrm2 (const int N, const float *X, const int incX) |
| Specialized version of nrm2 for float buffers.
|
template<> |
GURLS_EXPORT double | nrm2 (const int N, const double *X, const int incX) |
| Specialized version of nrm2 for double buffers.
|
template<typename T > |
gVec< T > | operator* (T val, const gVec< T > &v) |
| Returns a vector containing the multiplication of a vector by a scalar.
|
template<typename T > |
gMat2D< T > | operator* (T val, const gMat2D< T > &v) |
| Returns a matrix containing the multiplication of a matrix by a scalar.
|
template<typename T > |
gVec< T > | operator+ (T val, const gVec< T > &v) |
| Returns a vector containing the sum between a vector and a scalar.
|
template<typename T > |
gMat2D< T > | operator+ (T val, const gMat2D< T > &v) |
| Returns a matrix containing the sum between a matrix and a scalar.
|
template<typename T > |
gVec< T > | operator- (T val, const gVec< T > &v) |
| Returns a vector containing the difference between a vector and a scalar.
|
template<typename T > |
gMat2D< T > | operator- (T val, const gMat2D< T > &v) |
| Returns a matrix containing the difference between a matrix and a scalar.
|
template<typename T > |
gMat2D< T > | operator/ (T val, const gMat2D< T > &v) |
| Returns a matrix containing the division of a matrix by a scalar.
|
template<typename T > |
gVec< T > | operator/ (T val, const gVec< T > &v) |
| Returns a vector containing the division of a vector by a scalar.
|
GURLS_EXPORT std::ostream & | operator<< (std::ostream &os, const GurlsOption &opt) |
| Writes a GurlsOption to a stream.
|
GURLS_EXPORT std::ostream & | operator<< (std::ostream &os, const OptArray &opt) |
| Writes an OptArray to a stream.
|
template<typename T > |
std::ostream & | operator<< (std::ostream &os, const gVec< T > &v) |
| Writes vector's information and data to a stream.
|
GURLS_EXPORT std::ostream & | operator<< (std::ostream &os, const GurlsOptionsList &opt) |
| Writes a GurlsOptionsList to a stream.
|
template<typename T > |
std::ostream & | operator<< (std::ostream &os, const gMat2D< T > &v) |
| Writes matrix information and data to a stream.
|
template<typename U > |
bool | operator== (const BaseArray< U > &v, const U &val) |
| Checks if all elements in a vector are equal to a given value.
|
template<typename U > |
bool | operator== (const gVec< U > &v, const U &val) |
| Checks if all elements in a vector are equal to a given value.
|
template<typename T > |
void | orgqr (int *m, int *n, int *k, T *a, int *lda, T *tau, T *work, int *lwork, int *info) |
| Template function to call LAPACK *ORGQR routines.
|
template<> |
GURLS_EXPORT void | orgqr (int *m, int *n, int *k, float *a, int *lda, float *tau, float *work, int *lwork, int *info) |
| Specialized version of orogqr for float buffers.
|
template<> |
GURLS_EXPORT void | orgqr (int *m, int *n, int *k, double *a, int *lda, double *tau, double *work, int *lwork, int *info) |
| Specialized version of orgqr for double buffers.
|
template<typename T > |
void | pdist (const T *A, const int N, const int P, T *D) |
| Computes a vector D containing the Euclidean distances between each pair of observations in the N-by-P data matrix A.
|
template<typename T > |
void | pinv (const gMat2D< T > &A, gMat2D< T > &Ainv, T RCOND=0) |
| Computes the pseudo-inverse of a non square matrix A.
|
template<> |
GURLS_EXPORT void | pinv (const gMat2D< float > &A, gMat2D< float > &Ainv, float RCOND) |
| Specialized version of pinv for float matrices.
|
template<typename T > |
T * | pinv (const T *A, const int rows, const int cols, int &res_rows, int &res_cols, T *RCOND=NULL) |
| Computes the pseudo-inverse of a matrix.
|
template<typename T > |
int | potrf_ (char *UPLO, int *n, T *a, int *lda, int *info) |
| Template function to call LAPACK *POTRF routines.
|
template<> |
GURLS_EXPORT int | potrf_ (char *UPLO, int *n, float *a, int *lda, int *info) |
| Specialized version of potrf_ for float buffers.
|
template<> |
GURLS_EXPORT int | potrf_ (char *UPLO, int *n, double *a, int *lda, int *info) |
| Specialized version of potrf_ for double buffers.
|
template<typename T > |
T | precrec_driver (const T *out, const T *gt, const unsigned long N, T *work) |
| Utility function called by the class PrecisionRecall to evaluate the average precision through precision and recall.
|
template<typename T > |
T | precrec_driver (const T *out, const T *gt, const unsigned long N) |
| Utility function called by the class PrecisionRecall to evaluate the average precision through precision and recall.
|
template<typename T > |
void | qr_econ (const T *A, int m, int n, T *Q, T *R, int *E) |
| Computes an economy-size QR decomposition of an input matrix A so that A(:,E) = Q*R.
|
template<typename T > |
void | random_svd (const T *A, const unsigned long A_rows, const unsigned long A_cols, T *U, T *S, T *V, unsigned long k=6, unsigned long its=2, unsigned long l=0) |
| Constructs a nearly optimal rank-k approximation USV' to A, using its full iterations of a block Lanczos method of block size l, started with an n x l random matrix, when A is m x n;.
|
template<typename T > |
void | randperm (const unsigned long n, T *seq, bool generate=true, unsigned long start=1) |
| Generates a vector containing a random permutation of the values from start to start+n inclusive.
|
template<typename T > |
void | rdivide (const T *A, const T *B, T *result, const int len) |
| Element by element division of two vectors.
|
template<typename T > |
gMat2D< T > | repmat (const gVec< T > &x, unsigned long n, bool transpose=false) |
| Replicates a vector n times along the columns (or along the rows if transpose==true) If x is a vector of length N, then the output is an N-by-N matrix whose columns (or rows) are copies of x.
|
template<typename T > |
void | rls_eigen (const T *Q, const T *L, const T *Qty, T *C, const T lambda, const int n, const int Q_rows, const int Q_cols, const int L_length, const int Qty_rows, const int Qty_cols) |
| Computes RLS estimator given the singular value decomposition of the kernel matrix.
|
template<typename T > |
void | rls_eigen (const T *Q, const T *L, const T *Qty, T *C, const T lambda, const int n, const int Q_rows, const int Q_cols, const int L_length, const int Qty_rows, const int Qty_cols, T *work) |
| Computes RLS estimator given the singular value decomposition of the kernel matrix.
|
template<typename T > |
GurlsOptionsList * | rls_pegasos_driver (const T *X, const T *bY, const GurlsOptionsList &opt, const int X_rows, const int X_cols, const int bY_rows, const int bY_cols) |
| Utility function called by the class RLSPegasos to implement a single pass for pegasos algorithm, performing the stochastic gradient descent over all training samples once.
|
template<typename T > |
gMat2D< T > * | rls_primal_driver (T *K, const T *Xty, const unsigned long n, const unsigned long d, const unsigned long Yd, const T lambda) |
template<typename T > |
int | round (const T value) |
| Rounds an input value to the nearest integer.
|
template<typename T > |
gMat2D< T > * | rp_apply_real (const T *X, const T *W, const unsigned long n, const unsigned long d, const unsigned long D) |
template<typename T > |
gMat2D< T > * | rp_apply_real (const gMat2D< T > &X, const gMat2D< T > &W) |
template<typename T > |
gMat2D< T > * | rp_factorize_large_real (const gMat2D< T > &X, const gMat2D< T > &y, const unsigned long D, const unsigned long psize, T *XtX, T *Xty) |
template<typename T > |
gMat2D< T > * | rp_projections (const unsigned long d, const unsigned long D) |
template<typename T > |
void | scal (const int N, const T alpha, T *X, const int incX) |
| Template function to call BLAS *SCAL routines.
|
template<> |
GURLS_EXPORT void | scal (const int N, const float alpha, float *X, const int incX) |
| Specialized version of scal for float buffers.
|
template<> |
GURLS_EXPORT void | scal (const int N, const double alpha, double *X, const int incX) |
| Specialized version of scal for double buffers.
|
template<typename T > |
void | set (T *buffer, const T value, const int size, const int incr) |
| Sets elements of a vector to a specified value.
|
template<typename T > |
void | set (T *buffer, const T value, const int size) |
| Sets all elements of a vector to a specified value.
|
template<> |
void GURLS_EXPORT | set (float *buffer, const float value, const int size) |
| Specialized version of set for float buffers.
|
template<> |
void GURLS_EXPORT | set (double *buffer, const double value, const int size) |
| Specialized version of set for double buffers.
|
template<> |
void GURLS_EXPORT | set (float *buffer, const float value, const int size, const int incr) |
| Specialized version of set for float buffers.
|
template<> |
void GURLS_EXPORT | set (double *buffer, const double value, const int size, const int incr) |
| Specialized version of set for double buffers.
|
template<typename T > |
void | setReciprocal (T *matrix, const int len) |
| Computes the element-by-element multiplicative inverse of an input matrix.
|
template<typename T > |
T * | sign (const T *vector, const int size) |
| Computes a "signum vector" of the same size as an input vector, where each element is:
|
template<typename T > |
void | sort (const T *M, const unsigned long rows, const unsigned long cols, bool(*pred)(T, T), T *values, unsigned long *indices) |
| Sorts the elements of a matrix along the columns.
|
template<typename T > |
void | squareform (const T *A, const int N, const int P, T *D, const int d_cols) |
| Reformats a distance matrix between upper triangular and square form.
|
template<typename T > |
void | stdDev (const T *X, const int rows, const int cols, T *res, T *work) |
| Generates a row vector containing the standard deviation of the elements of each column of an input matrix.
|
template<typename T > |
void | subMatrixFromColumns (const T *matrix, const int mRows, const int mCols, const unsigned long *colsIndices, const int nIndices, T *submat) |
| Generates a submatrix from an input matrix.
|
template<typename T > |
void | subMatrixFromRows (const T *matrix, const int mRows, const int mCols, const unsigned long *rowsIndices, const int nIndices, T *submat) |
| Generates a submatrix from an input matrix.
|
template<typename T > |
void | sum (const T *A, T *result, const int A_rows, const int A_cols, const int res_length) throw (gException) |
| Sums all elements along the rows of a matrix.
|
template<typename T > |
void | sum_col (const T *A, T *result, const int A_rows, const int A_cols) throw (gException) |
| Sums all elements along the columns of a matrix.
|
template<typename T > |
T | sumv (const T *V, const int len) throw (gException) |
| Computes the sum of all elements of a vector.
|
template<typename T > |
void | svd (const gMat2D< T > &A, gMat2D< T > &U, gVec< T > &W, gMat2D< T > &Vt) |
| Implements the SVD decomposition of a general rectangular matrix: A = U*W*Vt.
|
template<> |
GURLS_EXPORT void | svd (const gMat2D< float > &A, gMat2D< float > &U, gVec< float > &W, gMat2D< float > &Vt) |
| Specialized version of svd for float matrices/vectors.
|
template<typename T > |
void | svd (const T *A, T *&U, T *&S, T *&Vt, const int A_rows, const int A_cols, int &U_rows, int &U_cols, int &S_len, int &Vt_rows, int &Vt_cols, bool econ=false) throw (gException) |
| Computes singular value decomposition of an input matrix A such that A = U*diag(S)*Vt.
|
template<typename T > |
void | swap (int n, T *x, int incx, T *y, int incy) |
| Template function to call BLAS *SWAP routines.
|
template<> |
GURLS_EXPORT void | swap (int n, float *x, int incx, float *y, int incy) |
| Specialized version of swap for float buffers.
|
template<> |
GURLS_EXPORT void | swap (int n, double *x, int incx, double *y, int incy) |
| Specialized version of swap for double buffers.
|
template<typename T > |
void | syev (char *jobz, char *uplo, int *n, T *a, int *lda, T *w, T *work, int *lwork, int *info) |
| Template function to call LAPACK *SYEV routines.
|
template<> |
GURLS_EXPORT void | syev (char *jobz, char *uplo, int *n, float *a, int *lda, float *w, float *work, int *lwork, int *info) |
| Specialized version of syev for float buffers.
|
template<> |
GURLS_EXPORT void | syev (char *jobz, char *uplo, int *n, double *a, int *lda, double *w, double *work, int *lwork, int *info) |
| Specialized version of syev for double buffers.
|
static const std::string | TASKDESC_SEPARATOR (":") |
| String used to tokenize task strings (e.g.
|
template<typename T > |
T | test_classifier (T *W, GurlsOptionsList &opt, const int rows, const int cols) |
| Utility function called by the rls_pegasos_driver; it evaluate classification accuracy on the test set given in fields Xte and yte of opt.
|
template<typename T > |
void | transpose (const T *matrix, const int rows, const int cols, T *transposed) |
| Transpose a matrix.
|
template<typename T > |
void | trsm (const CBLAS_SIDE Side, const CBLAS_UPLO Uplo, const CBLAS_TRANSPOSE TransA, const CBLAS_DIAG Diag, const int M, const int N, const T alpha, const T *A, const int lda, T *B, const int ldb) |
| Template function to call BLAS *TRSM routines.
|
template<> |
GURLS_EXPORT void | trsm (const CBLAS_SIDE Side, const CBLAS_UPLO Uplo, const CBLAS_TRANSPOSE TransA, const CBLAS_DIAG Diag, const int M, const int N, const float alpha, const float *A, const int lda, float *B, const int ldb) |
| Specialized version of trsm for float buffers.
|
template<> |
GURLS_EXPORT void | trsm (const CBLAS_SIDE Side, const CBLAS_UPLO Uplo, const CBLAS_TRANSPOSE TransA, const CBLAS_DIAG Diag, const int M, const int N, const double alpha, const double *A, const int lda, double *B, const int ldb) |
| Specialized version of trsm for double buffers.
|
Variables |
static const int | COLUMNWISE = 0 |
| Used to tell methods to operate on a matrix in column-wise order.
|
static const std::string | L0norm = "l0" |
| String identifying l0-norm.
|
static const std::string | L1norm = "l1" |
| String identifying l1-norm.
|
static const std::string | L2norm = "l2" |
| String identifying l2-norm.
|
static const std::string | LInfnorm = "inf" |
| String identifying infinity-norm.
|
static const int | MAX_PRINTABLE_SIZE = 200 |
| Maximum vector size for printing.
|
static const int | ROWWISE = 1 |
| Used to tell methods to operate on a matrix in row-wise order.
|