Hermes
Toggle table of contents
0.2.1
jvm
Platform filter
jvm
Switch theme
Search in API
Hermes
core
/
com.acmerobotics.roadrunner.geometry
/
DualNum
Dual
Num
@
Serializable
class
DualNum
<
Param
:
DualParameter
>
(
values
:
DoubleArray
)
Dual number
to implement forward autodifferentiation.
Parameters
Param
\(x\)
Members
Constructors
Dual
Num
Link copied to clipboard
constructor
(
values
:
List
<
Double
>
)
constructor
(
values
:
DoubleArray
)
Types
Companion
Link copied to clipboard
object
Companion
Functions
cos
Link copied to clipboard
fun
cos
(
)
:
DualNum
<
Param
>
div
Link copied to clipboard
operator
fun
div
(
d
:
DualNum
<
Param
>
)
:
DualNum
<
Param
>
operator
fun
div
(
c
:
Double
)
:
DualNum
<
Param
>
drop
Link copied to clipboard
fun
drop
(
n
:
Int
)
:
DualNum
<
Param
>
get
Link copied to clipboard
operator
fun
get
(
i
:
Int
)
:
Double
minus
Link copied to clipboard
operator
fun
minus
(
d
:
DualNum
<
Param
>
)
:
DualNum
<
Param
>
operator
fun
minus
(
c
:
Double
)
:
DualNum
<
Param
>
plus
Link copied to clipboard
operator
fun
plus
(
d
:
DualNum
<
Param
>
)
:
DualNum
<
Param
>
operator
fun
plus
(
c
:
Double
)
:
DualNum
<
Param
>
recip
Link copied to clipboard
fun
recip
(
)
:
DualNum
<
Param
>
reparam
Link copied to clipboard
fun
<
NewParam
:
DualParameter
>
reparam
(
oldParam
:
DualNum
<
NewParam
>
)
:
DualNum
<
NewParam
>
sin
Link copied to clipboard
fun
sin
(
)
:
DualNum
<
Param
>
size
Link copied to clipboard
fun
size
(
)
:
Int
sqrt
Link copied to clipboard
fun
sqrt
(
)
:
DualNum
<
Param
>
times
Link copied to clipboard
operator
fun
times
(
d
:
DualNum
<
Param
>
)
:
DualNum
<
Param
>
operator
fun
times
(
c
:
Vector2d
)
:
Vector2dDual
<
Param
>
operator
fun
times
(
c
:
Double
)
:
DualNum
<
Param
>
unary
Minus
Link copied to clipboard
operator
fun
unaryMinus
(
)
:
DualNum
<
Param
>
value
Link copied to clipboard
fun
value
(
)
:
Double
values
Link copied to clipboard
fun
values
(
)
:
List
<
Double
>