You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ProjectPsdMatrixSet.m
    path of file: ./repos/StackExchangeCodes/Mathematics/Q1891878
    
    the code of the file until where you have to start completion: function [ mX ] = ProjectPsdMatrixSet( mX )
% ----------------------------------------------------------------------------------------------- %

    
function [ mX ] = ProjectPsdMatrixSet( mX )
% ----------------------------------------------------------------------------------------------- %
% [ mX ] = ProjectPsdMatrixSet( mX )
%   Projecting the input symmetric matrix onto the Convex Set of Positive
%   Semidefinite (PSD) Matrices.
% Input:
%   - mX            -   Input Matrix.
%                       Symmetric matrix.
%                       Structure: Matrix.
%                       Type: 'Single' / 'Double'.
%                       Range: (-inf, inf).
% Output:
%   - mX            -   Output Matrix.
%                       Symmteirc Matrix which is the orthogonal projection
%                       of the input matrix onto the PSD Matrices Set.
%                       Structure: Matrix.
%                       Type: 'Single' / 'Double'.
%                       Range: (-inf, inf).
% References
%   1.  h
% Remarks:
%   1.  The input matrix is assumed to be Symmetric.
%   2.  If one wants to project onto the PD set one should send