Skip to content

feat: pascal, gallery functions - #1478

Merged
Nelson-numerical-software merged 2 commits into
masterfrom
gallery
Nov 2, 2025
Merged

Nelson-numerical-software merged 2 commits into
masterfrom
gallery

Conversation

@Nelson-numerical-software

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds new matrix generation functions to the elementary_functions module, specifically pascal and gallery functions for creating test matrices commonly used in numerical algorithms. The changes include function implementations, documentation in both English and French, comprehensive test coverage, and build system updates.

Key changes:

  • Implementation of pascal function to generate Pascal's triangle matrices with different orientations
  • Implementation of gallery function supporting 17 different matrix families for testing numerical algorithms
  • Addition of 16 private helper functions for specific matrix families
  • Test file updates including a refactored memory leak test and new test files for the added functions

Reviewed Changes

Copilot reviewed 29 out of 29 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
modules/elementary_functions/functions/pascal.m Main implementation of Pascal matrix generator
modules/elementary_functions/functions/gallery.m Main dispatch function for gallery matrix families
modules/elementary_functions/functions/private/*.m 16 private helper functions implementing specific matrix families
modules/elementary_functions/tests/test_pascal.m Comprehensive tests for pascal function
modules/elementary_functions/tests/test_gallery.m Extensive tests covering all gallery matrix families
modules/interpreter/tests/bug_interpreter_leak_2.m Refactored test to use hardcoded macro list for reproducibility
modules/elementary_functions/help/en_US/xml/pascal.xml English documentation for pascal function
modules/elementary_functions/help/fr_FR/xml/pascal.xml French documentation for pascal function
modules/elementary_functions/help/en_US/xml/gallery.xml English documentation for gallery function with detailed matrix family descriptions
modules/elementary_functions/help/fr_FR/xml/gallery.xml French documentation for gallery function
modules/elementary_functions/module.iss Installer configuration update for private functions
modules/elementary_functions/CMakeLists.txt Build system update to install private functions
CHANGELOG.md Documentation of new features

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread modules/elementary_functions/help/en_US/xml/pascal.xml
Comment thread modules/elementary_functions/help/fr_FR/xml/pascal.xml
Comment thread modules/elementary_functions/help/en_US/xml/gallery.xml Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 29 out of 29 changed files in this pull request and generated 6 comments.

Comments suppressed due to low confidence (1)

modules/elementary_functions/functions/private/house.m:1

  • Missing lower bound validation. The 'house' case in gallery.m doesn't validate that at least 2 arguments are provided (matrixname + inputVector). This should include nargin() < 2 check to ensure the required inputVector argument is present.
%=============================================================================

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread modules/elementary_functions/functions/gallery.m
Comment thread modules/elementary_functions/functions/private/dramadah.m
Comment thread modules/elementary_functions/functions/private/ipjfact.m
Comment thread modules/elementary_functions/functions/private/moler.m Outdated
Comment thread modules/elementary_functions/help/en_US/xml/gallery.xml
Comment thread modules/interpreter/tests/bug_interpreter_leak_2.m
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants