差分矩阵(Difference Matrix)与累计和矩阵(Running Sum Matrix)的概念与应用:中英双语
本文是学习这本书的笔记: https://web.stanford.edu/~boyd/vmls/

差分矩阵(Difference Matrix)与累计和矩阵(Running Sum Matrix)的概念与应用
在线性代数和信号处理等领域中,矩阵运算常被用来表示和计算各种数据变换。其中,差分矩阵(Difference Matrix)和累计和矩阵(Running Sum Matrix)是两个非常重要且有用的工具。它们可以高效地实现差分操作和累计和操作,在实际应用中非常广泛。本文将介绍这两个矩阵的定义、性质以及实际应用场景。
一、差分矩阵(Difference Matrix)
1. 定义
差分矩阵 ( D D D ) 是一个维度为 ( ( n − 1 ) × n (n-1) \times n (n−1)×n) 的稀疏矩阵,其形式如下:
D = [ − 1 1 0 ⋯ 0 0 0 − 1 1 ⋯ 0 0 ⋮ ⋮ ⋮ ⋱ ⋮ ⋮ 0 0 0 ⋯ − 1 1 ] . D = \begin{bmatrix} -1 & 1 & 0 & \cdots & 0 & 0 \\ 0 & -1 & 1 & \cdots & 0 & 0\\ \vdots & \vdots & \vdots & \ddots & \vdots & \vdots \\ 0 & 0 & 0 & \cdots & -1 & 1 \end{bmatrix}. D= −10⋮01−1⋮001⋮0⋯⋯⋱⋯00⋮−100⋮1 .
矩阵 ( D D D ) 的作用是对向量 ( x x x ) 计算相邻元素的差分,得到一个新的 ( ( n − 1 ) (n-1) (n−1))-维向量:
D x = [ x 2 − x 1 x 3 − x 2 ⋮ x n − x n − 1 ] . Dx = \begin{bmatrix} x_2 - x_1 \\ x_3 - x_2 \\ \vdots \\ x_n - x_{n-1} \end{bmatrix}. Dx= x2−x1x3−x2⋮xn−xn−1 .
2. 性质
- 稀疏性:差分矩阵中非零元素仅位于主对角线和次对角线上,计算效率高。
- 线性变换:差分操作可以被看作是一种线性变换,易于在矩阵计算框架中实现。
3. 实际应用
-
信号处理:
在信号处理中,差分矩阵可用来提取信号的变化趋势。例如,差分矩阵可以计算股票价格序列的每日变化(即价格增量):- 假设 ( x = [ 100 , 102 , 101 , 105 ] x = [100, 102, 101, 105] x=[100,102,101,105] ) 表示一段时间的股票价格,
- 通过 ( D D D ),可以计算价格增量为 ( D x = [ 2 , − 1 , 4 ] Dx = [2, -1, 4] Dx=[2,−1,4] )。
-
图像处理:
在图像处理中,差分矩阵可用于计算图像边缘信息。例如,针对一维图像信号,使用差分矩阵可以快速检测信号中的边缘变化。 -
优化问题:
在某些优化问题中,差分矩阵可以用来定义平滑性约束。例如,在路径规划中,约束路径的相邻点不能有过大的变化。
二、累计和矩阵(Running Sum Matrix)
1. 定义
累计和矩阵 ( S S S ) 是一个维度为 ( n × n n \times n n×n ) 的三角矩阵,其形式如下:
S = [ 1 0 0 ⋯ 0 1 1 0 ⋯ 0 1 1 1 ⋯ 0 ⋮ ⋮ ⋮ ⋱ 0 1 1 1 ⋯ 1 ] . S = \begin{bmatrix} 1 & 0 & 0 & \cdots & 0 \\ 1 & 1 & 0 & \cdots & 0 \\ 1 & 1 & 1 & \cdots & 0 \\ \vdots & \vdots & \vdots & \ddots & 0 \\ 1 & 1 & 1 & \cdots & 1 \end{bmatrix}. S= 111⋮1011⋮1001⋮1⋯⋯⋯⋱⋯00001 .
矩阵 ( S S S ) 的作用是对向量 ( x x x ) 计算累计和,得到一个新的 ( n n n)-维向量:
S x = [ x 1 x 1 + x 2 x 1 + x 2 + x 3 ⋮ x 1 + x 2 + ⋯ + x n ] . Sx = \begin{bmatrix} x_1 \\ x_1 + x_2 \\ x_1 + x_2 + x_3 \\ \vdots \\ x_1 + x_2 + \cdots + x_n \end{bmatrix}. Sx= x1x1+x2x1+x2+x3⋮x1+x2+⋯+xn .
2. 性质
- 稀疏性较弱:虽然矩阵 ( S S S ) 是稀疏的,但其三角的非零元素数量较多,相比差分矩阵稍显密集。
- 单调性:累计和是单调增加的,适用于需要累积计算的场景。
3. 实际应用
-
统计学分析:
在统计分析中,累计和常被用于计算数据的累积分布。例如,在处理时间序列数据时,可以用累计和来计算某个时间点之前的总和或平均值。 -
积分运算:
在离散数学中,累计和矩阵的作用类似于积分。对于一个离散信号 ( x x x ),累计和可以看作是该信号的离散积分。 -
金融数据分析:
在财务分析中,累计和矩阵可以用来计算累计收益。例如:- 假设 ( x = [ 10 , 15 , − 5 , 20 ] x = [10, 15, -5, 20] x=[10,15,−5,20] ) 表示每天的收益,
- 通过 ( S S S ),可以得到累计收益为 ( S x = [ 10 , 25 , 20 , 40 ] Sx = [10, 25, 20, 40] Sx=[10,25,20,40] )。
-
机器学习和深度学习:
在一些自然语言处理任务中(如Transformer模型中的注意力机制),累计和操作可以用于优化复杂的序列计算。
三、差分矩阵与累计和矩阵的关系
差分矩阵和累计和矩阵是互补的运算:
- 差分矩阵 ( D D D ) 的作用是从原始信号中提取增量信息;
- 累计和矩阵 ( S S S ) 的作用是从增量信息中重建累计值。
在数学上,它们满足如下关系:
D S = I n − 1 , DS = I_{n-1}, DS=In−1,
其中 ( I n − 1 I_{n-1} In−1 ) 是一个 ( ( n − 1 ) × ( n − 1 ) (n-1) \times (n-1) (n−1)×(n−1)) 的单位矩阵。这表明,差分矩阵 ( D D D ) 和累计和矩阵 ( S ) 是彼此的逆运算(在一定条件下)。
四、实际案例
案例:股票价格分析
假设有以下股票价格数据:
x = [ 100 102 101 105 ] . x = \begin{bmatrix} 100 \\ 102 \\ 101 \\ 105 \end{bmatrix}. x= 100102101105 .
-
计算每日价格增量:
使用差分矩阵 ( D D D ):
D = [ − 1 1 0 0 0 − 1 1 0 0 0 − 1 1 ] , D = \begin{bmatrix} -1 & 1 & 0 & 0 \\ 0 & -1 & 1 & 0 \\ 0 & 0 & -1 & 1 \end{bmatrix}, D= −1001−1001−1001 ,
计算:
D x = [ 2 − 1 4 ] . Dx = \begin{bmatrix} 2 \\ -1 \\ 4 \end{bmatrix}. Dx= 2−14 . -
计算累计收益:
使用累计和矩阵 ( S S S ):
S = [ 1 0 0 0 1 1 0 0 1 1 1 0 1 1 1 1 ] , S = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 1 & 1 & 0 & 0 \\ 1 & 1 & 1 & 0 \\ 1 & 1 & 1 & 1 \end{bmatrix}, S= 1111011100110001 ,
计算:
S x = [ 100 202 303 408 ] . Sx = \begin{bmatrix} 100 \\ 202 \\ 303 \\ 408 \end{bmatrix}. Sx= 100202303408 .
五、总结
差分矩阵和累计和矩阵是两个非常有用的线性代数工具,在信号处理、统计分析、图像处理和金融分析等领域有广泛应用。差分矩阵用于提取相邻元素的增量信息,而累计和矩阵则用于计算累积值。通过这两个工具的结合,可以高效地完成各种线性变换和数据分析任务。
英文版
Difference Matrix and Running Sum Matrix: Concepts and Applications
In linear algebra and data processing, matrix operations are frequently used to represent and compute various transformations. Two important tools in this context are the Difference Matrix and the Running Sum Matrix. These matrices provide efficient ways to perform difference operations and cumulative sum operations, respectively, and have wide-ranging applications in real-world scenarios. This blog will introduce the definitions, properties, and applications of these two matrices.
1. Difference Matrix
Definition
The Difference Matrix ( D D D ) is a sparse matrix of size ( ( n − 1 ) × n (n-1) \times n (n−1)×n) with the following structure:
D = [ − 1 1 0 ⋯ 0 0 0 − 1 1 ⋯ 0 0 ⋮ ⋮ ⋮ ⋱ ⋮ ⋮ 0 0 0 ⋯ − 1 1 ] . D = \begin{bmatrix} -1 & 1 & 0 & \cdots & 0 & 0 \\ 0 & -1 & 1 & \cdots & 0 & 0\\ \vdots & \vdots & \vdots & \ddots & \vdots & \vdots \\ 0 & 0 & 0 & \cdots & -1 & 1 \end{bmatrix}. D= −10⋮01−1⋮001⋮0⋯⋯⋱⋯00⋮−100⋮1 .
The matrix ( D D D ) is used to compute the differences between consecutive elements of a vector ( x x x ). For an input vector ( x x x ), the output ( D x Dx Dx ) is an ( ( n − 1 ) (n-1) (n−1))-dimensional vector containing these differences:
D x = [ x 2 − x 1 x 3 − x 2 ⋮ x n − x n − 1 ] . Dx = \begin{bmatrix} x_2 - x_1 \\ x_3 - x_2 \\ \vdots \\ x_n - x_{n-1} \end{bmatrix}. Dx= x2−x1x3−x2⋮xn−xn−1 .
Properties
- Sparsity: ( D D D ) is a sparse matrix with nonzero elements only on the main diagonal and the sub-diagonal, making it computationally efficient.
- Linear Transformation: The difference operation can be viewed as a linear transformation, easily implementable in matrix computation frameworks.
Applications
-
Signal Processing:
The difference matrix is used to extract the trend or rate of change in signals. For instance, in financial analysis, it can compute daily price changes for a stock:- Example: Given stock prices ( x = [ 100 , 102 , 101 , 105 ] x = [100, 102, 101, 105] x=[100,102,101,105] ),
- The price changes (increments) can be computed as ( D x = [ 2 , − 1 , 4 ] Dx = [2, -1, 4] Dx=[2,−1,4] ).
-
Image Processing:
In one-dimensional image signals, the difference matrix helps detect edges by identifying regions of significant change. -
Optimization Problems:
In optimization tasks, the difference matrix is often used to enforce smoothness constraints, such as limiting abrupt changes in paths or trajectories.
2. Running Sum Matrix
Definition
The Running Sum Matrix ( S S S ) is an ( n × n n \times n n×n ) triangular matrix with the following structure:
S = [ 1 0 0 ⋯ 0 1 1 0 ⋯ 0 1 1 1 ⋯ 0 ⋮ ⋮ ⋮ ⋱ 0 1 1 1 ⋯ 1 ] . S = \begin{bmatrix} 1 & 0 & 0 & \cdots & 0 \\ 1 & 1 & 0 & \cdots & 0 \\ 1 & 1 & 1 & \cdots & 0 \\ \vdots & \vdots & \vdots & \ddots & 0 \\ 1 & 1 & 1 & \cdots & 1 \end{bmatrix}. S= 111⋮1011⋮1001⋮1⋯⋯⋯⋱⋯00001 .
The matrix ( S S S ) is used to compute the cumulative sum of the elements of a vector ( x x x ). For an input vector ( x x x ), the output ( S x Sx Sx ) is an ( n n n )-dimensional vector, where each element is the sum of the first ( i i i ) elements of ( x x x ):
S x = [ x 1 x 1 + x 2 x 1 + x 2 + x 3 ⋮ x 1 + x 2 + ⋯ + x n ] . Sx = \begin{bmatrix} x_1 \\ x_1 + x_2 \\ x_1 + x_2 + x_3 \\ \vdots \\ x_1 + x_2 + \cdots + x_n \end{bmatrix}. Sx= x1x1+x2x1+x2+x3⋮x1+x2+⋯+xn .
Properties
- Triangular Structure: ( S S S ) has nonzero entries only in the triangular part, making it computationally straightforward to implement.
- Monotonicity: Cumulative sums are inherently monotonic, increasing as more elements are added.
Applications
-
Statistical Analysis:
The running sum matrix is often used to compute cumulative distributions in data analysis. For example, it can calculate cumulative rainfall over time or cumulative revenue in financial data. -
Discrete Integration:
In discrete mathematics, ( S ) acts like a summation operator, analogous to integration in continuous mathematics. -
Financial Data Analysis:
Cumulative returns can be calculated using ( S S S ). For example:- Given daily returns ( x = [ 10 , 15 , − 5 , 20 ] x = [10, 15, -5, 20] x=[10,15,−5,20] ),
- The cumulative returns are ( S x = [ 10 , 25 , 20 , 40 ] Sx = [10, 25, 20, 40] Sx=[10,25,20,40] ).
-
Machine Learning and Deep Learning:
In sequence processing tasks, cumulative sums can be used in algorithms like the attention mechanism in transformers to optimize sequence computations.
3. Relationship Between Difference Matrix and Running Sum Matrix
The Difference Matrix and Running Sum Matrix are complementary operations.
- The Difference Matrix extracts incremental changes between consecutive elements.
- The Running Sum Matrix reconstructs cumulative values from those increments.
Mathematically, they satisfy the following relationship:
D S = I n − 1 , DS = I_{n-1}, DS=In−1,
where ( I n − 1 I_{n-1} In−1 ) is the ( ( n − 1 ) × ( n − 1 ) (n-1) \times (n-1) (n−1)×(n−1)) identity matrix. This indicates that ( D D D ) and ( S S S ) are inverses of each other (under certain conditions).
4. Example: Stock Price Analysis
Problem
Given a stock price vector:
x = [ 100 102 101 105 ] . x = \begin{bmatrix} 100 \\ 102 \\ 101 \\ 105 \end{bmatrix}. x= 100102101105 .
We want to compute:
- The daily price changes (increments).
- The cumulative returns.
Solution
-
Daily Price Changes:
Using the Difference Matrix ( D ):
D = [ − 1 1 0 0 0 − 1 1 0 0 0 − 1 1 ] , D = \begin{bmatrix} -1 & 1 & 0 & 0 \\ 0 & -1 & 1 & 0 \\ 0 & 0 & -1 & 1 \end{bmatrix}, D= −1001−1001−1001 ,
we compute:
D x = [ 2 − 1 4 ] . Dx = \begin{bmatrix} 2 \\ -1 \\ 4 \end{bmatrix}. Dx= 2−14 . -
Cumulative Returns:
Using the Running Sum Matrix ( S ):
S = [ 1 0 0 0 1 1 0 0 1 1 1 0 1 1 1 1 ] , S = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 1 & 1 & 0 & 0 \\ 1 & 1 & 1 & 0 \\ 1 & 1 & 1 & 1 \end{bmatrix}, S= 1111011100110001 ,
we compute:
S x = [ 100 202 303 408 ] . Sx = \begin{bmatrix} 100 \\ 202 \\ 303 \\ 408 \end{bmatrix}. Sx= 100202303408 .
5. Conclusion
The Difference Matrix and Running Sum Matrix are powerful tools for analyzing and transforming data. The Difference Matrix simplifies extracting incremental changes, while the Running Sum Matrix efficiently computes cumulative values. Together, they provide complementary operations with broad applications in signal processing, finance, machine learning, and more.
By understanding these two concepts, one can leverage matrix operations to solve complex problems in a structured and computationally efficient manner.
后记
2024年12月20日13点22分于上海,在GPT4o大模型辅助下完成。
相关文章:
差分矩阵(Difference Matrix)与累计和矩阵(Running Sum Matrix)的概念与应用:中英双语
本文是学习这本书的笔记: https://web.stanford.edu/~boyd/vmls/ 差分矩阵(Difference Matrix)与累计和矩阵(Running Sum Matrix)的概念与应用 在线性代数和信号处理等领域中,矩阵运算常被用来表示和计算各种数据变换…...
全面解析 Golang Gin 框架
1. 引言 在现代 Web 开发中,随着需求日益增加,开发者需要选择合适的工具来高效地构建应用程序。对于 Go 语言(Golang)开发者来说,Gin 是一个备受青睐的 Web 框架。它轻量、性能高、易于使用,并且具备丰富的…...
全脐点曲面当且仅当平面或者球面的一部分
S 是全脐点曲面当且仅当 S 是平面或者球面的一部分。 S_\text{ 是全脐点曲面当且仅当 }{S_\text{ 是平面或者球面的一部分。}} S 是全脐点曲面当且仅当 S 是平面或者球面的一部分。 证: 充分性显然,下证必要性。 若 r ( u , v ) r(u,v) r(u,v)是…...
CSS学习记录18
CSS渐变 CSS渐变您可以显示两种或多种指定颜色之间的平滑过渡。 CSS定义了两种渐变类型: 线性渐变(向下/向上/向左/向右/对角线)径向渐变(由其中心定义) CSS线性渐变 如需创建线性渐变,您必须至少两个色…...
实验13 C语言连接和操作MySQL数据库
一、安装MySQL 1、使用包管理器安装MySQL sudo apt update sudo apt install mysql-server2、启动MySQL服务: sudo systemctl start mysql3、检查MySQL服务状态: sudo systemctl status mysql二、安装MySQL开发库 sudo apt-get install libmysqlcli…...
90度Floating B to B 高速连接器信号完整性仿真
在180度 B to B Connector 信号完整性仿真时,不会碰到端口设置不方便问题,但在做90度B to B Connector信号完整性仿真时就会碰到端口设置问题。如下面的90度B to B Connector。 公座 母座 公母对插后如下: 客户要求改Connector需符合PCI-E3.…...
【踩坑】Pytorch与CUDA版本的关系及安装
Pytorch、CUDA和CUDA Toolkit区分 查看当前环境常用shell命令python脚本 Driver API CUDA(nvidia-smi)Runtime API CUDA(nvcc --version)pytorch选择CUDA版本的顺序安装需要的CUDA,多版本共存和自由切换 本文参考 http…...
信息隐藏 数字图像空域隐写与分析技术的实现
数字图像隐写与分析 摘要 随着信息技术的发展,隐写术作为一种信息隐藏技术,越来越受到关注。本文介绍了一种基于最低有效位(LSB)方法的数字图像隐写技术,并实现了隐写数据的嵌入与提取。通过卡方检验分析隐写图像的统计特性,评估隐写数据对图像的影响。实验结果表明,该…...
halcon单相机+机器人*眼在手外标定心得
目的 得到相机坐标系下的点与机器人底座base的转换关系,camera_in_base 两个不确定的定量 1,相机与机器人底座base之间的相对位置是固定的,既camera_in_base 2,机械手末端与标定物 tool_in_obj是固定的 辅助确定量 工作台与相…...
pytest入门十:配置文件
pytest.ini:pytest的主配置文件,可以改变pytest的默认行为conftest.py:测试用例的一些fixture配置 pytest.ini marks mark 打标的执行 pytest.mark.add add需要些marks配置否则报warning [pytest] markersadd:测试打标 测试用例中添加了 p…...
基于Clinical BERT的医疗知识图谱自动化构建方法,双层对比框架
基于Clinical BERT的医疗知识图谱自动化构建方法,双层对比框架 论文大纲理解1. 确认目标2. 目标-手段分析3. 实现步骤4. 金手指分析 全流程核心模式核心模式提取压缩后的系统描述核心创新点 数据分析第一步:数据收集第二步:规律挖掘第三步&am…...
介绍 Html 和 Html 5 的关系与区别
HTML(HyperText Markup Language)是构建网页的标准标记语言,而 HTML5 是 HTML 的最新版本,包含了一些新的功能、元素、API 和属性。HTML5 相对于早期版本的 HTML(比如 HTML4)有许多重要的改进和变化。以下是…...
C05S13-MySQL数据库备份与恢复
一、MySQL数据备份 1. 数据备份概述 数据备份的主要目的是灾难恢复,也就是当数据库等出现故障导致数据丢失,能够通过备份恢复数据。 数据备份可以分为物理备份和逻辑备份。物理备份,又称为冷备份,需要关闭数据库进行备份&#…...
【MySQL — 数据库基础】深入理解数据库服务与数据库关系、MySQL连接创建、客户端工具及架构解析
目录 1. 数据库服务&数据库&表之间的关系 1.1 复习 my.ini 1.2 MYSQL服务基于mysqld启动而启动 1.3 数据库服务的具体含义 1.4 数据库服务&数据库&表之间的关系 2. 客户端工具 2.1 客户端连接MySQL服务器 2.2 客…...
Three.js相机Camera控件知识梳理
原文:https://juejin.cn/post/7231089453695238204?searchId20241217193043D32C9115C2057FE3AD64 1. 相机类型 Three.js 主要提供了两种类型的相机:正交相机(OrthographicCamera)和透视相机(PerspectiveCamera&…...
Unity 开发Apple Vision Pro空间锚点应用Spatial Anchor
空间锚点具有多方面的作用 虚拟物体定位与固定: 位置保持:可以把虚拟物体固定在现实世界中的特定区域或位置。即使使用者退出程序后再次打开,之前锚定过的虚拟物体仍然能够出现在之前所锚定的位置,为用户提供连贯的体验。比如在一…...
BGP的六种状态分别是什么?
此文章主要简单介绍下BGP的六种状态 1.Idle BGP会话的初始状态,路由器在此状态下不与任何BGP邻居通信,通常标识会话还没有开始或由于错误而未能启动,一般来说,缺乏去往BGP对等体的路由是导致BGP路由器其状态一直处于idle状态的常…...
IDEA搭建SpringBoot,MyBatis,Mysql工程项目
目录 一、前言 二、项目结构 三、初始化项目 四、SpringBoot项目集成Mybatis编写接口 五、代码仓库 一、前言 构建一个基于Spring Boot框架的现代化Web应用程序,以满足[公司/组织名称]对于[业务需求描述]的需求。通过利用Spring Boot简化企业级应用开发的优势&…...
Reactor
文章目录 正确的理解发送double free问题 1.把我们的reactor进行拆分2.链接管理3.Reactor的理论 listensock只需要设置_recv_cb,而其他sock,读,写,异常 所以今天写nullptr其实就不太对,添加为空就没办法去响应事件 获…...
在ESP32使用AT指令集与服务器进行TCP/IP通信时,<link ID> 解释
在ESP32使用AT指令集与服务器进行TCP/IP通信时,<link ID> 是一个非常重要的参数。它用于标识不同的连接实例,特别是在多连接场景下(如同时建立多个TCP或UDP连接)。每个连接都有唯一的<link ID>,通过这个ID…...
铭豹扩展坞 USB转网口 突然无法识别解决方法
当 USB 转网口扩展坞在一台笔记本上无法识别,但在其他电脑上正常工作时,问题通常出在笔记本自身或其与扩展坞的兼容性上。以下是系统化的定位思路和排查步骤,帮助你快速找到故障原因: 背景: 一个M-pard(铭豹)扩展坞的网卡突然无法识别了,扩展出来的三个USB接口正常。…...
测试微信模版消息推送
进入“开发接口管理”--“公众平台测试账号”,无需申请公众账号、可在测试账号中体验并测试微信公众平台所有高级接口。 获取access_token: 自定义模版消息: 关注测试号:扫二维码关注测试号。 发送模版消息: import requests da…...
应用升级/灾备测试时使用guarantee 闪回点迅速回退
1.场景 应用要升级,当升级失败时,数据库回退到升级前. 要测试系统,测试完成后,数据库要回退到测试前。 相对于RMAN恢复需要很长时间, 数据库闪回只需要几分钟。 2.技术实现 数据库设置 2个db_recovery参数 创建guarantee闪回点,不需要开启数据库闪回。…...
练习(含atoi的模拟实现,自定义类型等练习)
一、结构体大小的计算及位段 (结构体大小计算及位段 详解请看:自定义类型:结构体进阶-CSDN博客) 1.在32位系统环境,编译选项为4字节对齐,那么sizeof(A)和sizeof(B)是多少? #pragma pack(4)st…...
遍历 Map 类型集合的方法汇总
1 方法一 先用方法 keySet() 获取集合中的所有键。再通过 gey(key) 方法用对应键获取值 import java.util.HashMap; import java.util.Set;public class Test {public static void main(String[] args) {HashMap hashMap new HashMap();hashMap.put("语文",99);has…...
el-switch文字内置
el-switch文字内置 效果 vue <div style"color:#ffffff;font-size:14px;float:left;margin-bottom:5px;margin-right:5px;">自动加载</div> <el-switch v-model"value" active-color"#3E99FB" inactive-color"#DCDFE6"…...
macOS多出来了:Google云端硬盘、YouTube、表格、幻灯片、Gmail、Google文档等应用
文章目录 问题现象问题原因解决办法 问题现象 macOS启动台(Launchpad)多出来了:Google云端硬盘、YouTube、表格、幻灯片、Gmail、Google文档等应用。 问题原因 很明显,都是Google家的办公全家桶。这些应用并不是通过独立安装的…...
多模态大语言模型arxiv论文略读(108)
CROME: Cross-Modal Adapters for Efficient Multimodal LLM ➡️ 论文标题:CROME: Cross-Modal Adapters for Efficient Multimodal LLM ➡️ 论文作者:Sayna Ebrahimi, Sercan O. Arik, Tejas Nama, Tomas Pfister ➡️ 研究机构: Google Cloud AI Re…...
【HarmonyOS 5 开发速记】如何获取用户信息(头像/昵称/手机号)
1.获取 authorizationCode: 2.利用 authorizationCode 获取 accessToken:文档中心 3.获取手机:文档中心 4.获取昵称头像:文档中心 首先创建 request 若要获取手机号,scope必填 phone,permissions 必填 …...
安卓基础(aar)
重新设置java21的环境,临时设置 $env:JAVA_HOME "D:\Android Studio\jbr" 查看当前环境变量 JAVA_HOME 的值 echo $env:JAVA_HOME 构建ARR文件 ./gradlew :private-lib:assembleRelease 目录是这样的: MyApp/ ├── app/ …...
