找回密码
 注册
查看: 3214|回复: 0

R语言:LU-class()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-17 10:06:41 | 显示全部楼层 |阅读模式
LU-class(Matrix)
LU-class()所属R语言包:Matrix

                                        LU (dense) Matrix Decompositions
                                         卢(密)矩阵分解

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

The "LU" class is the virtual class of LU decompositions of real matrices.  "denseLU" the class of LU decompositions of dense real matrices.
类"LU"是虚拟类的实矩阵的LU分解。 "denseLU"密集的实矩阵的LU分解类。


Details

详情----------Details----------

The decomposition is of the form
分解的形式是

where typically all matrices are of size n by n, and the matrix P is a permutation matrix, L is lower triangular and U is upper triangular (both of class dtrMatrix).
通常所有矩阵大小n by n,P矩阵是一个置换矩阵,L是下三角和U是上三角(类既<X >)。

Note that the dense decomposition is also implemented for a m by n matrix A, when m != n.
需要注意的是密集的分解也矩阵m by n时A m != n实施。

If m < n (&ldquo;wide case&rdquo;), U is m by n, and hence not triangular.<br> If m > n (&ldquo;long case&rdquo;), L is m by n, and hence not triangular.
如果m < n(“全案”),U是m by n,因此没有三角。参考如果m > n(“长案”),L是m by n,因此没有三角。


类的对象----------Objects from the Class----------

Objects can be created by calls of the form new("denseLU", ...). More commonly the objects are created explicitly from calls of the form lu(mm) where mm is an object that inherits from the "dgeMatrix" class or as a side-effect of other functions applied to "dgeMatrix" objects.
创建对象可以通过电话的形式new("denseLU", ...)。更常见的是创建对象从电话的形式明确lu(mm)其中mm是一个对象继承"dgeMatrix"类或应用到其他功能的副作用的<X >的对象。


延伸----------Extends----------

"LU" directly extends the virtual class "MatrixFactorization".
"LU"直接扩展虚拟类"MatrixFactorization"。

"denseLU" directly extends "LU".
"denseLU" "LU"直接延伸。


插槽----------Slots----------




x: object of class "numeric".  The "L" (unit lower triangular) and "U" (upper triangular) factors of the original matrix.  These are stored in a packed format described in the Lapack manual, and can retrieved by the
x类"numeric"的对象。 "L"原始矩阵(单位下三角)和"U"(上三角)的因素。这些被存储在一个打包格式在LAPACK手册描述,并可以通过检索




perm: Object of class "integer" - a vector of length min(Dim) that describes the permutation applied to the rows of the original matrix.  The contents of this vector are
perm:Object类的"integer" - min(Dim)长度的向量描述原矩阵的行排列。这个向量的内容




Dim: the dimension of the original matrix; inherited
Dim:继承原始矩阵的维数;


方法----------Methods----------




expand signature(x = "denseLU"): Produce the "L" and "U" (and "P") factors as a named list of matrices,
扩大signature(x = "denseLU"):生产"L"和"U"("P")作为一个名为矩阵列表因素,




solve signature(a = "denseLU", b = "missing"): Compute the inverse of A, A^(-1), solve(A) using the LU
解决signature(a = "denseLU", b = "missing"):计算一个逆,A^(-1),solve(A)使用的LU


参见----------See Also----------

class sparseLU for LU decompositions of sparse matrices; further, class dgeMatrix and functions lu, expand.
类sparseLU卢分解稀疏矩阵;进一步,一流的dgeMatrix“功能的lu,expand。


举例----------Examples----------


set.seed(1)
mm <- Matrix(round(rnorm(9),2), nrow = 3)
mm
str(lum <- lu(mm))
elu <- expand(lum)
elu # three components: "L", "U", and "P", the permutation[三个组成部分:“L”“U”和“P”字,置换]
elu$L %*% elu$U
(m2 &lt;- with(elu, P %*% L %*% U)) # the same as 'mm'[同样作为“MM”]
stopifnot(all.equal(as(mm, "matrix"),
                    as(m2, "matrix")))

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-1-23 03:45 , Processed in 0.125508 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表