Eigen学习笔记(一)矩阵和向量

Matrix

 all matrices and vectors are objects of the Matrix template class. Vectors are just a special case of matrices, with either 1 row or 1 column.

Matrix<typename Scalar, int RowsAtCompileTime, int ColsAtCompileTime>

Matrix<类型 ,行数,列数>

eg:      typedef Matrix<float, 4, 4> Matrix4f;          //Matrix4f是一个4*4浮点型矩阵        

           typedef Matrix<float, 3, 1> Vector3f;         //列向量

           typedef Matrix<int, 1, 2> RowVector2i;     //行向量

构造函数

没初始化系数时,使用构造函数

eg:     Matrix3f a;

             MatrixXf b;       

            MatrixXf a(10,15);  

            VectorXf b(30);

 

template 例子
row 行  column 列
mandatory  强制性的
dimension 维
dynamic  动态的
compile 编译
variable 变量
fixed  固定的
constuctor 构造函数;构造师
initialize 初始化
coefficient 系数 
accessors 存取器
mutators 访问器
 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值