-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathops64.Rd
More file actions
94 lines (78 loc) · 2.2 KB
/
Copy pathops64.Rd
File metadata and controls
94 lines (78 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ops64.R
\name{ops64}
\alias{ops64}
\alias{binattr}
\alias{+.integer64}
\alias{-.integer64}
\alias{\%/\%.integer64}
\alias{\%\%.integer64}
\alias{*.integer64}
\alias{^.integer64}
\alias{/.integer64}
\alias{==.integer64}
\alias{!=.integer64}
\alias{<.integer64}
\alias{<=.integer64}
\alias{>.integer64}
\alias{>=.integer64}
\alias{&.integer64}
\alias{|.integer64}
\alias{!.integer64}
\title{Binary operators for integer64 vectors}
\usage{
binattr(e1, e2)
\method{+}{integer64}(e1, e2)
\method{-}{integer64}(e1, e2)
\method{\%/\%}{integer64}(e1, e2)
\method{\%\%}{integer64}(e1, e2)
\method{*}{integer64}(e1, e2)
\method{^}{integer64}(e1, e2)
\method{/}{integer64}(e1, e2)
\method{==}{integer64}(e1, e2)
\method{!=}{integer64}(e1, e2)
\method{<}{integer64}(e1, e2)
\method{<=}{integer64}(e1, e2)
\method{>}{integer64}(e1, e2)
\method{>=}{integer64}(e1, e2)
\method{&}{integer64}(e1, e2)
\method{|}{integer64}(e1, e2)
\method{!}{integer64}(x)
}
\arguments{
\item{e1, e2, x}{numeric or complex vectors or objects which can be coerced to such,
or other objects for which methods have been written for - especially 'integer64' vectors.}
}
\value{
\itemize{
\item \code{\link{&}}, \code{\link{|}}, \code{\link{!}}, \code{\link{!=}}, \code{\link{==}}, \code{\link{<}}, \code{\link{<=}}, \code{\link{>}}, \code{\link{>=}} return a logical vector
\item \code{\link{/}} returns a double vector
\item \code{\link{+}}, \code{\link{-}}, \code{\link{*}}, \code{\link[=Arithmetic]{\%/\%}}, \code{\link[=Arithmetic]{\%\%}}, \code{\link{^}} return a vector of class
'integer64' or different class depending on the operands
}
}
\description{
Binary operators for integer64 vectors.
}
\details{
\code{\link{^}} with 'integer' or 'integer64' exponent now calculates the power precisely and returns
an overflow warning, if an overflow appears.
}
\examples{
as.integer64(1:12) - 1
options(integer64_semantics="new")
d <- 2.5
i <- as.integer64(5)
d/i # new 0.5
d*i # new 13
i*d # new 13
options(integer64_semantics="old")
d/i # old: 0.4
d*i # old: 10
i*d # old: 13
}
\seealso{
\code{\link[=integer64]{integer64()}}
}
\keyword{classes}
\keyword{manip}