numerical-linear-algebra

Perform matrix decompositions and solve dense or sparse linear systems with NumPy and SciPy.

33|6|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill numerical-linear-algebra
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: numerical-linear-algebra
Source: https://github.com/xjtulyc/awesome-rosetta-skills/tree/main/skills/03-mathematics/numerical-linear-algebra
Command: npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill numerical-linear-algebra

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you analyze and compute with matrices by enabling stable decomposition, dimensionality reduction, and efficient linear system solves for both dense and sparse scientific problems.

Core Features & Use Cases

  • Matrix decompositions: compute SVD, eigendecomposition, and Cholesky factorization to understand structure and recover low-rank representations.
  • Dimensionality reduction: run PCA via covariance eigenanalysis for interpretable variance explained and component projections.
  • Scalable solvers: apply iterative methods like conjugate gradient (CG) and GMRES for large sparse systems, including basic conditioning and convergence diagnostics.
  • Conditioning insights: estimate condition number behavior to choose direct methods, iterative solvers, or regularization/truncation strategies.

Quick Start

Use the numerical-linear-algebra Skill to compute an SVD of your matrix and produce a truncated low-rank approximation while reporting relative Frobenius error across different ranks.

Frequently Asked Questions about numerical-linear-algebra

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compute SVD for a matrix and get a truncated low-rank approximation?

To compute SVD and get a truncated low-rank approximation, use this Skill to decompose your matrix and produce a low-rank representation while reporting the relative Frobenius error across different ranks.

What is the best way to solve large sparse linear systems with NumPy and SciPy?

The best way to solve large sparse linear systems with NumPy and SciPy is applying iterative solvers like conjugate gradient (CG) and GMRES, which include basic conditioning and convergence diagnostics for large problems.

How does condition number assessment help choose between direct and iterative solvers?

Condition number assessment helps by estimating conditioning behavior to choose direct methods, iterative solvers, or regularization and truncation strategies for stable dense or sparse scientific solves.

Can I perform PCA via covariance eigenanalysis for dimensionality reduction?

Yes, you can perform PCA via covariance eigenanalysis for dimensionality reduction, producing interpretable variance explained metrics and component projections from your input matrix.

Does this Skill support Cholesky factorization for symmetric positive definite matrices?

Yes, this Skill supports Cholesky factorization specifically for symmetric positive definite solves, alongside SVD workflows and eigendecomposition-based insights for numerical matrix analysis.

Why use iterative solvers like GMRES instead of direct methods for sparse matrices?

Iterative solvers like GMRES are used instead of direct methods for sparse matrices to achieve scalable solves on large systems, providing basic conditioning and convergence diagnostics for numerical linear algebra.