---
name: "mlpack_gmm_PositiveDefiniteConstraint"
section: "3"
platform: "linux"
package: "mlpack-doc"
version: "1.0.10-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/mlpack_gmm_PositiveDefiniteConstraint"
---

# mlpack\_gmm\_PositiveDefiniteConstraint(3)

Given a covariance matrix, force the matrix to be positive definite.

## NAME

mlpack::gmm::PositiveDefiniteConstraint -

Given a covariance matrix, force the matrix to be positive definite.

## SYNOPSIS

### Static Public Member Functions

static void **ApplyConstraint** (arma::mat &covariance)\
 *Apply the positive definiteness constraint to the given covariance matrix.*

## Detailed Description

Given a covariance matrix, force the matrix to be positive definite.

Definition at line 33 of file positive\_definite\_constraint.hpp.

## Member Function Documentation

### static void mlpack::gmm::PositiveDefiniteConstraint::ApplyConstraint (arma::mat &covariance)` [inline]`, ` [static]`

Apply the positive definiteness constraint to the given covariance matrix.

**Parameters:**

*covariance* Covariance matrix.

Definition at line 41 of file positive\_definite\_constraint.hpp.

References mlpack::Log::Debug.

## Author

Generated automatically by Doxygen for MLPACK from the source code.
