---
title: "Discussion on \"《深度学习入门》的cpp实现-ch01: Eigen的基本操作\" | Hashnode"
description: "Discussion on \"《深度学习入门》的cpp实现-ch01: Eigen的基本操作\". 在《深度学习入门》这本书中使用 numpy 进行数据的操作和运算，我们要使用cpp来实现，因此选用了Eigen这个库, 下面是 Eigen 的一些基本操作。\n\nvoid create_matrix() {\n    // 在Eigen中, 向量和矩阵都是 Matrix 模版类的对象\n\n    // 创建矩阵需要Matrix<>构造, 前三个为必须参数，后三个为可选参数\n    // 第一个参数为数据类型，后两个参数分别为矩阵的行数和列数\n    Eigen::Matrix<double, 3, 4..."
url: "https://hashnode.com/posts/dlfs-cpp-ch01-eigen/62ee7e81ba649046e8d8d617"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [《深度学习入门》的cpp实现-ch01: Eigen的基本操作](https://qilingzhao.com/dlfs-cpp-ch01-eigen?utm_source=hashnode&utm_medium=feed)

在《深度学习入门》这本书中使用 numpy 进行数据的操作和运算，我们要使用cpp来实现，因此选用了Eigen这个库, 下面是 Eigen 的一些基本操作。 void create\_matrix() { // 在Eigen中, 向量和矩阵都是 Matrix 模版类的对象 // 创建矩阵需要Matrix<>构造, 前三个为必须参数，后三个为可选参数 // 第一个参数为数据类型，后两个参数分别为矩阵的行数和列数 Eigen::Matrix<double, 3, 4...

Aug 6, 2022 · 2 min read · qilingzhao.com  
Updated Aug 10, 2022  
Read the article

-   [#dlfs-cpp](https://hashnode.com/tag/dlfs-cpp)
-   [#eigen](https://hashnode.com/tag/eigen)

## Written by

[qilingzhao](https://hashnode.com/@Zhao70)

@Zhao70

  
[View profile](https://hashnode.com/@Zhao70)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
