mpfrMatrix(Rmpfr)
mpfrMatrix()所属R语言包:Rmpfr
Classes "mpfrMatrix" and "mpfrArray"
类“mpfrMatrix”和“mpfrArray的”
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The classes "mpfrMatrix" and "mpfrArray" are, analogously to the base matrix and array functions and classes simply “numbers” of class mpfr with an additional Dim and Dimnames slot.
类"mpfrMatrix"和"mpfrArray"是,类似于basematrix和array函数和类的简单的“数字”之类的mpfr一个额外的Dim和Dimnames插槽。
类对象----------Objects from the Class----------
Objects can be created by calls of the form new("mpfrMatrix", ...) or new("mpfrArray", ...), or also by dim(x) <- dd or t(x) where x is a an mpfr “number vector”.
可以创建对象通过调用的形式new("mpfrMatrix", ...)或new("mpfrArray", ...),也由dim(x) <- dd或t(x)其中x是一个mpfr&ldquo数矢量“。
A (slightly more) alternative to dim(x) <- dd is mpfr2array(x, dd, dimnames).
A(略多)替代dim(x) <- dd是mpfr2array(x, dd, dimnames)。
插槽----------Slots----------
.Data: as for the mpfr class, a
.Data:mpfr类,
Dim: of class "integer", specifying the array
Dim:类"integer"中,指定数组
Dimnames: of class "list" and the same length as Dim, each list component either NULL or a
Dimnames:类"list"和相同长度的Dim,每个列表组件是NULL或
扩展----------Extends----------
Class "mpfrMatrix" extends "mpfrArray", directly.
类"mpfrMatrix" "mpfrArray",直接延伸。
Class "mpfrArray" extends class "mpfr", by class "mpfrArray", distance 2; class "list", by class "mpfrArray", distance 3; class "vector", by class "mpfrArray", distance 4.
类"mpfrArray"扩展类"mpfr",类的“mpfrArray”,距离2类"list",由类“mpfrArray”,距离3类"vector",类的“mpfrArray”,距离4。
方法----------Methods----------
Arith signature(e1 = "mpfr", e2 = "mpfrArray"): ...
ARITH signature(e1 = "mpfr", e2 = "mpfrArray")...
Arith signature(e1 = "numeric", e2 = "mpfrArray"): ...
ARITH signature(e1 = "numeric", e2 = "mpfrArray")...
Arith signature(e1 = "mpfrArray", e2 = "mpfrArray"): ...
ARITH signature(e1 = "mpfrArray", e2 = "mpfrArray")...
Arith signature(e1 = "mpfrArray", e2 = "mpfr"): ...
ARITH signature(e1 = "mpfrArray", e2 = "mpfr")...
Arith signature(e1 = "mpfrArray", e2 = "numeric"): ...
ARITH signature(e1 = "mpfrArray", e2 = "numeric")...
as.vector signature(x = "mpfrArray", mode = "missing"): drops the dimension "attribute", i.e., transforms x into a simple mpfr vector. This is an inverse of t(.) or dim(.) <- *
as.vector signature(x = "mpfrArray", mode = "missing"):下降的维度“属性”,即转变x成一个简单的mpfr矢量。这是逆t(.)或dim(.) <- *
atan2 signature(y = "ANY", x = "mpfrArray"): ...
ATAN2signature(y = "ANY", x = "mpfrArray"):...
atan2 signature(y = "mpfrArray", x = "mpfrArray"): ...
ATAN2signature(y = "mpfrArray", x = "mpfrArray"):...
atan2 signature(y = "mpfrArray", x = "ANY"): ...
ATAN2signature(y = "mpfrArray", x = "ANY"):...
[<- signature(x = "mpfrArray", i = "ANY", j = "ANY", value = "ANY"): ...
[< - signature(x = "mpfrArray", i = "ANY", j = "ANY", value = "ANY"):...
[ signature(x = "mpfrArray", i = "ANY", j = "ANY", drop = "ANY"): ...
[signature(x = "mpfrArray", i = "ANY", j = "ANY", drop = "ANY"):...
[ signature(x = "mpfrArray", i = "ANY", j = "missing", drop = "missing"): "mpfrArray"s can be subset (“indexed”) as regular R
[signature(x = "mpfrArray", i = "ANY", j = "missing", drop = "missing")方向:"mpfrArray"s的子集(“索引”)作为常规R
%*% signature(x = "mpfr", y = "mpfrMatrix"): Compute the matrix/vector product x y when the dimensions (dim) of x and y match. If x is not a matrix, it is treated as a 1-row or 1-column matrix (aka “row vector” or “column vector”) depending on which one makes sense, see the documentation of the base
%*%signature(x = "mpfr", y = "mpfrMatrix"):计算矩阵/矢量产品x y的的尺寸(dim)x和y匹配。如果x是不是一个矩阵,它被视为一个1行1列矩阵(又名“行向量”或“列向量”),这取决于哪一个是有道理的,看到的文档base
%*% signature(x = "mpfr", y = "Mnumber"): method definition for cases with one mpfr and any
%*%signature(x = "mpfr", y = "Mnumber"):方法定义一个mpfr和任何情况下,与
%*% signature(x = "mpfrMatrix", y = "mpfrMatrix"),
%*%signature(x = "mpfrMatrix", y = "mpfrMatrix"),
%*% signature(x = "mpfrMatrix", y = "mpfr"), etc.
%*%的signature(x = "mpfrMatrix", y = "mpfr")等
crossprod signature(x = "mpfr", y = "missing"):
crossprodsignature(x = "mpfr", y = "missing"):
crossprod signature(x = "mpfr", y = "mpfrMatrix"):
crossprodsignature(x = "mpfr", y = "mpfrMatrix"):
crossprod signature(x = "mpfrMatrix", y = "mpfrMatrix"): ...
crossprod signature(x = "mpfrMatrix", y = "mpfrMatrix")...
crossprod signature(x = "mpfrMatrix", y = "mpfr"): ...
crossprod signature(x = "mpfrMatrix", y = "mpfr")...
tcrossprod signature(x = "mpfr", y = "missing"):
tcrossprodsignature(x = "mpfr", y = "missing"):
tcrossprod signature(x = "mpfrMatrix", y = "mpfrMatrix"):
tcrossprodsignature(x = "mpfrMatrix", y = "mpfrMatrix"):
tcrossprod signature(x = "mpfrMatrix", y = "mpfr"): ...
tcrossprod signature(x = "mpfrMatrix", y = "mpfr")...
tcrossprod signature(x = "mpfr", y = "mpfrMatrix"): ...
tcrossprod signature(x = "mpfr", y = "mpfrMatrix")...
coerce signature(from = "mpfrArray", to = "array"):
强迫signature(from = "mpfrArray", to = "array"):
coerce signature(from = "mpfrArray", to = "vector"): as for standard arrays, this “drops” the dim (and dimnames), i.e., returns an
要挟signature(from = "mpfrArray", to = "vector"):为array的,这个“滴”dim(和dimnames),即返回一个
Compare signature(e1 = "mpfr", e2 = "mpfrArray"): ...
比较signature(e1 = "mpfr", e2 = "mpfrArray"):...
Compare signature(e1 = "numeric", e2 = "mpfrArray"): ...
比较signature(e1 = "numeric", e2 = "mpfrArray"):...
Compare signature(e1 = "mpfrArray", e2 = "mpfr"): ...
比较signature(e1 = "mpfrArray", e2 = "mpfr"):...
Compare signature(e1 = "mpfrArray", e2 = "numeric"): ...
比较signature(e1 = "mpfrArray", e2 = "numeric"):...
dim signature(x = "mpfrArray"): ...
昏暗的signature(x = "mpfrArray"):...
dimnames<- signature(x = "mpfrArray"): ...
dimnames < - signature(x = "mpfrArray"):...
dimnames signature(x = "mpfrArray"): ...
dimnamessignature(x = "mpfrArray"):...
show signature(object = "mpfrArray"): ...
显示signature(object = "mpfrArray"):...
sign signature(x = "mpfrArray"): ...
签署signature(x = "mpfrArray"):...
t signature(x = "mpfrMatrix"): tranpose the mpfrMatrix.
Tsignature(x = "mpfrMatrix"):tranpose的mpfrMatrix。
aperm signature(a = "mpfrArray"): aperm(a, perm) is a generalization of t(.) to permute the dimensions of an mpfrArray; it has the same semantics as the
aperm signature(a = "mpfrArray")aperm(a, perm)是一个概括的t(.)的重排的mpfrArray的尺寸,它具有相同的语义
(作者)----------Author(s)----------
Martin Maechler
参见----------See Also----------
mpfrArray, also for more examples.
mpfrArray,也为更多的例子。
实例----------Examples----------
showClass("mpfrMatrix")
validObject(mm <- new("mpfrMatrix"))
validObject(aa <- new("mpfrArray"))
v6 <- mpfr(1:6, 128)
m6 <- new("mpfrMatrix", v6, Dim = c(2L, 3L))
validObject(m6)
m6
which(m6 == 3, arr.ind = TRUE) # |--> (1, 2)[| - >(1,2)]
## Coercion back to "vector": Both of these work:[#强制的“向量”:这两个工作:]
stopifnot(identical(as(m6, "mpfr"), v6),
identical(as.vector(m6), v6)) # < but this is a "coincidence"[<但是这是一个“巧合”]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|