kmath-dimensions
/
space.kscience.kmath.dimensions
/
DMatrixContext
common
D
Matrix
Context
inline class
DMatrixContext
<
T
:
Any
, out
A
:
Ring
<
T
>>(context:
LinearSpace
<
T
,
A
>)
Content copied to clipboard
Basic operations on dimension-safe matrices. Operates on
Matrix
Types
Constructors
Functions
Properties
Extensions
Constructors
DMatrixContext
Link copied to clipboard
common
fun <
T
:
Any
, out
A
:
Ring
<
T
>>
DMatrixContext
(context:
LinearSpace
<
T
,
A
>)
Content copied to clipboard
Types
Companion
Link copied to clipboard
common
object
Companion
Content copied to clipboard
Functions
coerce
Link copied to clipboard
common
inline fun <
R
:
Dimension
,
C
:
Dimension
>
Matrix
<
T
>.
coerce
():
DMatrix
<
T
,
R
,
C
>
Content copied to clipboard
dot
Link copied to clipboard
common
infix inline fun <
R1
:
Dimension
,
C1
:
Dimension
,
C2
:
Dimension
>
DMatrix
<
T
,
R1
,
C1
>.
dot
(other:
DMatrix
<
T
,
C1
,
C2
>):
DMatrix
<
T
,
R1
,
C2
>
Content copied to clipboard
infix inline fun <
R
:
Dimension
,
C
:
Dimension
>
DMatrix
<
T
,
R
,
C
>.
dot
(vector:
DPoint
<
T
,
C
>):
DPoint
<
T
,
R
>
Content copied to clipboard
equals
Link copied to clipboard
common
open operator override fun
equals
(other:
Any
?):
Boolean
Content copied to clipboard
hashCode
Link copied to clipboard
common
open override fun
hashCode
():
Int
Content copied to clipboard
minus
Link copied to clipboard
common
inline operator fun <
R
:
Dimension
,
C
:
Dimension
>
DMatrix
<
T
,
C
,
R
>.
minus
(other:
DMatrix
<
T
,
C
,
R
>):
DMatrix
<
T
,
C
,
R
>
Content copied to clipboard
plus
Link copied to clipboard
common
inline operator fun <
R
:
Dimension
,
C
:
Dimension
>
DMatrix
<
T
,
C
,
R
>.
plus
(other:
DMatrix
<
T
,
C
,
R
>):
DMatrix
<
T
,
C
,
R
>
Content copied to clipboard
point
Link copied to clipboard
common
inline fun <
D
:
Dimension
>
point
(noinline initializer:
A
.(
Int
) ->
T
):
DPoint
<
T
,
D
>
Content copied to clipboard
produce
Link copied to clipboard
common
inline fun <
R
:
Dimension
,
C
:
Dimension
>
produce
(noinline initializer:
A
.(i:
Int
, j:
Int
) ->
T
):
DMatrix
<
T
,
R
,
C
>
Content copied to clipboard
Produce a matrix with this context and given dimensions
times
Link copied to clipboard
common
inline operator fun <
R
:
Dimension
,
C
:
Dimension
>
T
.
times
(m:
DMatrix
<
T
,
R
,
C
>):
DMatrix
<
T
,
R
,
C
>
Content copied to clipboard
inline operator fun <
R
:
Dimension
,
C
:
Dimension
>
DMatrix
<
T
,
R
,
C
>.
times
(value:
T
):
DMatrix
<
T
,
R
,
C
>
Content copied to clipboard
toString
Link copied to clipboard
common
open override fun
toString
():
String
Content copied to clipboard
transpose
Link copied to clipboard
common
inline fun <
R
:
Dimension
,
C
:
Dimension
>
DMatrix
<
T
,
C
,
R
>.
transpose
():
DMatrix
<
T
,
R
,
C
>
Content copied to clipboard
unaryMinus
Link copied to clipboard
common
inline operator fun <
R
:
Dimension
,
C
:
Dimension
>
DMatrix
<
T
,
C
,
R
>.
unaryMinus
():
DMatrix
<
T
,
C
,
R
>
Content copied to clipboard
Properties
context
Link copied to clipboard
common
val
context
:
LinearSpace
<
T
,
A
>
Content copied to clipboard
Extensions
one
Link copied to clipboard
common
inline fun <
D
:
Dimension
>
DMatrixContext
<
Double
,
RealField
>.
one
():
DMatrix
<
Double
,
D
,
D
>
Content copied to clipboard
A square unit matrix
zero
Link copied to clipboard
common
inline fun <
R
:
Dimension
,
C
:
Dimension
>
DMatrixContext
<
Double
,
RealField
>.
zero
():
DMatrix
<
Double
,
R
,
C
>
Content copied to clipboard