feat(linalg): L6 lstsq, norms, complex dtype, draw themes

Add QR/SVD least squares, norm/cond/rank, complex dense Frobenius
baseline, and light/dark/bw draw themes aligned with quantum Q8.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-09-07 14:47:30 +08:00
1 parent 01287d9e7e
commit c0fbe9b182
15 files changed
+910 -136

No files matched your search

+4
View File
@@ -15,6 +15,10 @@ fn check_side(n: usize, label: &str) -> Result<(), String> {
Ok(())
}
pub fn check_side_limit(n: usize, label: &str) -> Result<(), String> {
check_side(n, label)
}
fn check_mat(m: &Mat) -> Result<(usize, usize), String> {
let (r, c) = dense::shape(m)?;
dense::check_elems(r, c)?;