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: solve_chol.m
    path of file: ./repos/PlatEMO/PlatEMO/Algorithms/Multi-objective optimization/IM-MOEA/gpml-matlab-v3.4-2013-11-11
    
    the code of the file until where you have to start completion: % solve_chol - solve linear equations from the Cholesky factorization.
% Solve A*X = B for X, where A is
    
function is R the Cholesky decomposition of A and the matrix B.
% Example: X = solve_chol(chol(A),B);
%
% NOTE: The program code is written in the C language for efficiency and is
% contained in the file solve_chol.c, and should be compiled using matlabs mex
% facility. However, this file also contains a (less efficient) matlab
% implementation, supplied only as a help to people unfamiliar with mex. If
% the C code has been properly compiled and is available, it automatically
% takes precend