摘要: import numpy, math def schmidt_decomposition(A): assert A.shape == (2, 2) U, D, VH = numpy.linalg.svd(A) """ print("begin debug") print(U) print(D) pr 阅读全文
posted @ 2026-03-02 17:28 黄铎彦 阅读(2) 评论(0) 推荐(0)
摘要: import sympy def schimidt_decomposition(A): assert A.shape == (2, 2) U, D, V = A.singular_value_decomposition() U.simplify() D.simplify() V.simplify() 阅读全文
posted @ 2026-03-02 12:02 黄铎彦 阅读(3) 评论(0) 推荐(0)
摘要: import sympy A=sympy.Matrix([[1/sympy.sqrt(3),1/sympy.sqrt(3)],[1/sympy.sqrt(3),0]]) U,D,V=A.singular_value_decomposition() U.simplify() D.simplify() 阅读全文
posted @ 2026-03-02 11:06 黄铎彦 阅读(1) 评论(0) 推荐(0)
摘要: #include <stdio.h> struct Base { virtual ~Base(void) noexcept {} }; struct PublicDerive :public Base {}; struct ProtectedDerive :protected Base {}; st 阅读全文
posted @ 2025-07-06 16:50 黄铎彦 阅读(20) 评论(0) 推荐(0)
摘要: SinoDB 时序引擎的使用 黄铎彦 2025 年 3 月 21 日补充:本文写于 2024 年 12 月 24 日。当时 TimescaleDB 官方提供的示例是股票时间序列,现在变成了加密货币时间序列。我不再改动文章内容。如果有需要,自行调整设计。或者给我发邮件,我会通过邮件把原来的示例压缩包发 阅读全文
posted @ 2024-12-14 15:59 黄铎彦 阅读(128) 评论(0) 推荐(0)