摘要: C++ 中的运算符重载 可以重定义或重载大部分 C++ 内置的运算符。 重载的运算符是带有特殊名称的函数,函数名是由关键字 operator 和其后要重载的运算符符号构成的。与其他函数一样,重载运算符有一个返回类型和一个参数列表。 声明加法运算符用于把两个 Box 对象相加,返回最终的 Box 对象 阅读全文
posted @ 2022-03-20 12:19 小白白中白 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 将零维度张量转为浮点数 阅读全文
posted @ 2022-03-20 12:10 小白白中白 阅读(50) 评论(0) 推荐(0) 编辑
摘要: plot画线,scatter散点 Plotting categorical variables You can pass categorical values (i.e. strings) directly as x- or y-values to many plotting functions: 阅读全文
posted @ 2022-03-20 10:25 小白白中白 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Matplotlib Matplotlib 是 Python 的绘图库,它能让使用者很轻松地将数据图形化,并且提供多样化的输出格式。 Matplotlib 可以用来绘制各种静态,动态,交互式的图表。 Matplotlib 是一个非常强大的 Python 画图工具,我们可以使用该工具将很多数据通过图表 阅读全文
posted @ 2022-03-20 10:09 小白白中白 阅读(527) 评论(0) 推荐(1) 编辑