会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
黄铎彦的博客
垆边人似月,皓腕凝霜雪。
博客园
首页
新随笔
联系
订阅
管理
2026年4月7日
体验C++的异步,有返回值的线程
摘要: #include <future> #include <iostream> #include <stdexcept> /* https://learn.microsoft.com/zh-cn/cpp/standard-library/thread-safety-in-the-cpp-standard
阅读全文
posted @ 2026-04-07 12:20 黄铎彦
阅读(2)
评论(0)
推荐(0)
2026年3月2日
使用numpy实现复合系统AB纯态的施密特分解
摘要: 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)
使用sympy实现复合系统AB纯态的施密特分解
摘要: 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 黄铎彦
阅读(4)
评论(0)
推荐(0)
使用sympy实现奇异值分解(SVD)
摘要: 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)
2025年7月6日
Liskov替换规则仅适用于公有继承
摘要: #include <stdio.h> struct Base { virtual ~Base(void) noexcept {} }; struct PublicDerive :public Base {}; struct ProtectedDerive :protected Base {}; st
阅读全文
posted @ 2025-07-06 16:50 黄铎彦
阅读(22)
评论(0)
推荐(0)
2024年12月14日
SinoDB 时序引擎的使用
摘要: SinoDB 时序引擎的使用 黄铎彦 2025 年 3 月 21 日补充:本文写于 2024 年 12 月 24 日。当时 TimescaleDB 官方提供的示例是股票时间序列,现在变成了加密货币时间序列。我不再改动文章内容。如果有需要,自行调整设计。或者给我发邮件,我会通过邮件把原来的示例压缩包发
阅读全文
posted @ 2024-12-14 15:59 黄铎彦
阅读(134)
评论(0)
推荐(0)
公告