Principles of Gaussian Elimination and C++ Implementation

Gaussian Elimination Methods 1. Introduction Gaussian elimination is the most fundamental and commonly used direct method for solving systems of linear equations in linear algebra. Its core idea is to transform the coefficient matrix (A) into an upper triangular form through “stepwise elimination,” and then solve for the unknowns using back substitution. To improve the … Read more

Quick Mastery of the Eigen Library from Scratch: A C++ Matrix Calculation Tool

1. Introduction to Eigen: Eigen is an open-source C++ template library specifically designed for linear algebra operations, including matrices, vectors, numerical computations, and solving linear equations. It is known for its efficiency, supporting expression template optimizations to achieve near-optimal performance without runtime overhead. Eigen does not rely on third-party libraries and can be used simply … Read more

Design and Implementation of a Matrix Class Based on C++ Templates

Abstract A matrix is a fundamental data structure in linear algebra and scientific computing, widely used in numerical analysis, engineering calculations, and artificial intelligence algorithms. This article presents a generic matrix class designed and implemented using C++ templates, which includes core functionalities such as matrix generation, output, addition, subtraction, multiplication, transposition, inversion, adjoint matrix, and … Read more

Armadillo: A Powerful C++ Library

Armadillo is a high-performance C++ linear algebra library that strikes a good balance between usability and speed. Its syntax is designed to be similar to Matlab, making it easy to get started if you are familiar with Matlab. This library supports integers, floating-point numbers, and complex numbers, providing a rich set of linear algebra, matrix … Read more

Armadillo: A Fast C++ Matrix Library

mlpack uses Armadillo matrices for linear algebra operations. Armadillo is a fast C++ matrix library that utilizes advanced template metaprogramming techniques to provide linear algebra operations as quickly as possible. Detailed documentation about Armadillo can be found on its official website. However, there are some details to note regarding the use of Armadillo in mlpack. … Read more

BLAS: An Efficient Linear Algebra Library in C++

BLAS: An Efficient Linear Algebra Library in C++

BLAS: An Efficient Linear Algebra Library in C++ In the fields of computer science and engineering, linear algebra computations are at the core of many applications. From computer graphics to machine learning, from data analysis to physical simulations, operations involving matrices and vectors are ubiquitous. The BLAS (Basic Linear Algebra Subprograms) library is designed specifically … Read more

BLASFEO: A Hardcore Engine for Embedded Linear Algebra

BLASFEO: A Hardcore Engine for Embedded Linear Algebra

In the field of embedded systems and real-time optimization, efficient linear algebra operations are a core bottleneck. Traditional BLAS libraries such as OpenBLAS or MKL, while powerful, often exhibit inefficiencies and poor cache utilization for small matrices (dimensions in the hundreds). Project Homepage The BLASFEO project stands out as an open-source library led by Gianluca … Read more

CBLAS: A Powerful Linear Algebra Library in C++

CBLAS: A Powerful Linear Algebra Library in C++

CBLAS: A Powerful Linear Algebra Library in C++ In the fields of scientific computing and high-performance computing, the efficiency of linear algebra operations is crucial. CBLAS (C Interface to Basic Linear Algebra Subprograms) is a library that provides BLAS (Basic Linear Algebra Subprograms) functionality for C language programs. Although its name includes “C”, it can … Read more

Three Methods to Solve Eigenvalues and Eigenvectors in MATLAB

Three Methods to Solve Eigenvalues and Eigenvectors in MATLAB

Source: Sina Blog by Ye Di, modified slightly How to solve eigenvalues and eigenvectors in MATLAB? There are three methods to address this problem.1. Definition Method Since the original problem is relatively simple, we can directly solve for the eigenvalues and eigenvectors using definitions. |A–xI|=0, which simplifies to a simple cubic equation, solving for x … Read more

Calculating Matrix Eigenvalues and Eigenvectors with MATLAB

Calculating Matrix Eigenvalues and Eigenvectors with MATLAB

Eigenvalues and eigenvectors are very important concepts in linear algebra and have wide applications in solving practical problems in industrial and agricultural production. To find the eigenvalues and eigenvectors of a matrix The eigenvalue λ and eigenvector x satisfy the relationship Ax=λx, while for matrices A and B, the generalized eigenvalue λ and generalized eigenvector … Read more