det(base)
det()所属R语言包:base
Calculate the Determinant of a Matrix
计算一个矩阵的行列式
译者:生物统计家园网 机器人LoveR
描述----------Description----------
det calculates the determinant of a matrix. determinant is a generic function that returns separately the modulus of the determinant, optionally on the logarithm scale, and the sign of the determinant.
det计算矩阵的行列式。 determinant是一个泛型函数,分别返回行列式模,可选对数规模,行列式的符号。
用法----------Usage----------
det(x, ...)
determinant(x, logarithm = TRUE, ...)
参数----------Arguments----------
参数:x
numeric matrix.
数字矩阵。
参数:logarithm
logical; if TRUE (default) return the logarithm of the modulus of the determinant.
逻辑;如果TRUE(默认)返回行列式模量的对数。
参数:...
Optional arguments. At present none are used. Previous versions of det allowed an optional method argument. This argument will be ignored but will not produce an error.
可选参数。目前没有使用。以前版本的det允许可选method参数。此参数将被忽略,但不会产生一个错误。
Details
详情----------Details----------
The determinant function uses an LU decomposition and the det function is simply a wrapper around a call to determinant.
determinant函数使用LU分解和det函数是简单的调用determinant周围的包装。
Often, computing the determinant is not what you should be doing to solve a given problem.
通常情况下,计算行列式是不是你应该做的事,以解决某一问题。
值----------Value----------
For det, the determinant of x. For determinant, a list with components
detx的决定性因素。对于的determinant,一个组件的列表
参数:modulus
a numeric value. The modulus (absolute value) of the determinant if logarithm is FALSE; otherwise the logarithm of the modulus.
一个数值。行列式的模(绝对值)logarithm如果是FALSE,否则模量的对数。
参数:sign
integer; either +1 or -1 according to whether the determinant is positive or negative.
整数,要么+1或-1根据行列式是否是正面还是负面。
举例----------Examples----------
(x <- matrix(1:4, ncol=2))
unlist(determinant(x))
det(x)
det(print(cbind(1,1:3,c(2,0,1))))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|