This pull request adds the PHP implementation of the top_k function to the PHPMath library, aligning it with the C library implementation pending approval (see C Library Implementation PR).
Key Features:
top_k for PHPMath: Provides the top_k function for the PHPMath library with similar functionality to the one in the C library.
Integration with LinearAlgebra: Integrated the top_k function into the LinearAlgebra class, allowing seamless switching between math libraries (Matlib or PHPMath).
Compatibility: Matches the behavior and signature of the C library implementation to ensure consistency across libraries.
Please review the implementation and let me know if there are any suggestions or concerns. Thank you!
This pull request adds the PHP implementation of the
top_k
function to the PHPMath library, aligning it with the C library implementation pending approval (see C Library Implementation PR).Key Features:
top_k
function for the PHPMath library with similar functionality to the one in the C library.top_k
function into the LinearAlgebra class, allowing seamless switching between math libraries (Matlib or PHPMath).Please review the implementation and let me know if there are any suggestions or concerns. Thank you!