C++ Programming GalleryMath and others

A C++ class for addition, difference, multiplication and inversion of matrices (CMatrix)

This example shows how to use the powerful CMatriz class to work with matrices. And show how this class can be easily included in your mathematical applications.

Spanish:
Este ejemplo muestra como usar la poderosa clase CMatriz, para trabajar con matrices. Y mostrar como esta clase se puede incluir fácilmente en sus aplicaciones matemáticas.

Developed by:

JOSE LUIS DE LA CRUZ LAZARO

YACSHA – Software & Desing, since 1999, Lima – Perú
The World of Chaos – EL MUNDO DEL CAOS – Unlimited Programming

You can DOWNLOAD the SOURCE CODE and executable software for FREE from here:

Join The World of Chaos Developer Community😃

Contribute to the project on Github!

HISTORY

  • Version 2 – 28-IV-2024
    • Update math-and-others\cmatrix – Porting to VC++ 2017
    • All the tests in the example are updated to work with the CMatrix version 2 library.
    • AddOns (version2) is added
    • The conio.h and Menu.h libraries are added to make the user interface of the example more friendly
    • Example.cpp is adapted to the new GUI incorporated by Menu.h. All examples can now be accessed in an orderly manner from an options menu
    • Added the following menu options:
      • Enter matrix values
      • Generate a random matrix
      • View the entered matrix values
      • SUM, DIFFERENCE AND MULTIPLICATION OF MATRICES
      • TRANSPOSED MATRIX
      • COFACTORS: DETERMINANT OF THE MATRIX
      • COFACTORS: INVERSE MATRIX
      • GAUSS JORDAN 1: INVERSE MATRIX
      • GAUSS JORDAN 2: INVERSE AND DETERMINING MATRIX
      • GAUSS JORDAN 3(RECURSIVE): INVERSE AND DETERMINANT MATRIX
      • SOLVING SYSTEMS OF LINEAR EQUATIONS: x = A^-1*b
      • Exit
    • Version history and credits are updated.
    • All messages from the GUI console and user menu interface are translated from Spanish to English
    • It is adapted to work with the CMatrix library translated into English
    • The use examples are updated to version 2 of CMatrix, which includes an interface with an options menu, which makes it easier to test the examples; and the previous examples interface is deleted.
  • Version 1 – 17-VIII-2000
    • First version for Borland C++ 3.1 and Turbo C 3.0
    • This example shows how to use the powerful CMatriz class to work with matrices. And show how this class can be easily included in your mathematical applications.
    • To process an array of 5000 elements, it takes 240, 455 and 450 seconds for the methods InvGaussJordan1, InvGaussJordan2 and InvGaussJordan3, respectively, and each function occupies approximately 600MB of RAM during the execution of the algorithm.

Spanish:

  • Versión 1 – 17-VIII-2000
    • Este ejemplo muestra como usar la poderosa clase CMatriz, para trabajar con matrices. Y mostrar como esta clase se puede incluir fácilmente en sus aplicaciones matemáticas.
    • Para procesar una matriz de 5000 elementos se demora 240, 455 y 450 segundos para los métodos InvGaussJordan1, InvGaussJordan2 e InvGaussJordan3, respectivamente y cada función ocupa aproximadamente 600MB de memoria RAM, durante la ejecución del algoritmo.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button