linear-algebra
Solve linear algebra problems: matrices, determinants, systems, vector spaces, eigenvalues, diagonalization, SVD, orthogonality, least squares, inner products, linear transformations. Includes a Python helper script. Use for any matrix, vector space, or eigenvalue question.
- License 许可
- MIT
- 最近更新
- 2026-10-17
- Stars
- ★ 8
- Forks
- 1
01 前言 Front Matter
- name
- linear-algebra
- description
- Solve linear algebra problems: matrices, determinants, systems, vector spaces, eigenvalues, diagonalization, SVD, orthogonality, least squares, inner products, linear transformations. Includes a Python helper script. Use for any matrix, vector space, or eigenvalue question.
02 资源文件 2
- 参考文档metadata.json392 B
- 脚本scripts/linalg_tools.py1.4 KB
03 SKILL.md 正文
Linear Algebra
Core computations
- Gaussian elimination -> RREF; rank = number of pivots; nullity = n - rank (rank-nullity theorem).
- Determinant: det(AB) = det A det B; det = product of eigenvalues; zero iff singular; cofactor expansion; 2x2 ad - bc.
- Inverse: A^{-1} = adj(A)/det A, or row-reduce [A | I]. Solve Ax = b with LU rather than inverting numerically.
- Eigen: det(A - lambda I) = 0; trace = sum of eigenvalues; A = P D P^{-1} if n independent eigenvectors; symmetric matrices have real eigenvalues and orthogonal eigenvectors (spectral theorem). Jordan form for defective cases. Cayley-Hamilton p(A) = 0.
- Orthogonality: Gram-Schmidt, QR; projection onto subspace P = A(A^T A)^{-1} A^T; least squares x = (A^T A)^{-1} A^T b (use QR/SVD for stability).
- SVD A = U S V^T: singular values sqrt(eig(A^T A)); low-rank approximation (Eckart-Young); pseudoinverse; condition number kappa = sigma_max/sigma_min.
- Positive definite: all eigenvalues > 0 <=> Cholesky exists <=> x^T A x > 0.
- Vector spaces: basis, dimension, span, linear independence, subspaces (column space, null space, row space, left null space - four fundamental subspaces).
- Linear maps: matrix w.r.t. basis, change of basis P^{-1} A P, kernel and image, similarity.
- Inner product spaces: Cauchy-Schwarz |<u,v>| <= ||u|| ||v||, triangle inequality, orthogonal complement.
- Advanced: tensor products, dual spaces, bilinear forms, Sylvester's law of inertia, matrix exponential e^{At} for ODEs, Perron-Frobenius, Krylov methods, PCA = SVD of centered data.
Workflow
- Identify the structure (square? symmetric? sparse?). 2. Choose the decomposition. 3. Verify with numeric computation. 4. Interpret geometrically.
Script
scripts/linalg_tools.py - rank, nullspace, eigen decomposition with checks, SVD, least squares, projections. Run for a demo.
04 同仓库更多 Skills
security-audit
Comprehensive security guidance, source code audit, vulnerability assessment, and penetration test review for codebases, APIs, microservices, CLI tools, libraries, and LLM-backed applications. Triggers on requests to audit a codebase, conduct security reviews, find vulnerabilities or flaws, pen-test source code, or when the user asks in Arabic (فحص أمني، تدقيق الكود أمنياً، مراجعة الثغرات، فحص أمان المشروع). Supports Guidance mode (focused review) and Full Audit mode (deterministic 6-phase harness).
malware-analysis-reversing
Production malware analysis workflows, reverse engineering methodologies, isolated sandbox triage, static/dynamic binary analysis, memory forensics, and YARA detection rule authoring.
application-security-pentesting
Production Application Security (AppSec) standards, OWASP Top 10 vulnerability remediation, SAST/DAST pipeline integration, secure code review, threat modeling, and defensive security posture.
oauth2-oidc-security-flows
Implement enterprise OAuth 2.1 and OpenID Connect (OIDC) authorization code flow with Proof Key for Code Exchange (PKCE), state and nonce verification, refresh token rotation, token revocation, and centralized IdP federation (Keycloak, Auth0, Okta). Trigger when building secure authentication, single sign-on (SSO), or third-party delegated authorization.
jwt-session-management-hardening
Harden JWT-based authentication and session lifecycles using asymmetric signing (RS256/EdDSA), JWKS rotation, strict claims validation, Redis-backed sliding window sessions, revocation lists, and secure HttpOnly cookie storage. Trigger when implementing token validation, session revocation, or hardening API authentication.
soc2-compliance-automation
Best practices for implementing SOC 2 Type II compliance controls, continuous evidence collection, infrastructure policy-as-code, and automated security monitoring. Use when automating Trust Services Criteria (Security, Availability, Confidentiality, Processing Integrity, Privacy), audit logging, IAM least privilege, or CI/CD security gates.