Kone
0.0.0-dev-1
common
kone.linearAlgebra
/
com.lounres.kone.linearAlgebra
/
Matrix
Matrix
open
class
Matrix
<
C
>
:
Iterable
<
C
>
Inheritors
ColumnVector
RowVector
SquareMatrix
Members
Constructors
Matrix
Link copied to clipboard
constructor
(
countOfRows
:
Int
,
countOfColumns
:
Int
,
coefficients
:
List
<
List
<
C
>
>
)
constructor
(
coefficients
:
List
<
List
<
C
>
>
)
constructor
(
vararg
coefficients
:
List
<
C
>
)
constructor
(
countOfRows
:
Int
,
countOfColumns
:
Int
,
init
:
(
rowIndex
:
Int
,
columnIndex
:
Int
)
->
C
)
Properties
coefficients
Link copied to clipboard
val
coefficients
:
List
<
List
<
C
>
>
column
Indices
Link copied to clipboard
val
columnIndices
:
Iterable
<
Int
>
count
Of
Columns
Link copied to clipboard
val
countOfColumns
:
Int
count
Of
Rows
Link copied to clipboard
val
countOfRows
:
Int
horizontal
Coefficients
List
Link copied to clipboard
val
horizontalCoefficientsList
:
List
<
C
>
indices
Link copied to clipboard
val
indices
:
List
<
MatrixIndex
>
row
Indices
Link copied to clipboard
val
rowIndices
:
Iterable
<
Int
>
size
Link copied to clipboard
val
size
:
Int
sizes
Link copied to clipboard
val
sizes
:
Pair
<
Int
,
Int
>
vertical
Coefficients
List
Link copied to clipboard
val
verticalCoefficientsList
:
List
<
C
>
Functions
get
Link copied to clipboard
operator
fun
get
(
index
:
MatrixIndex
)
:
C
operator
fun
get
(
index
:
Pair
<
Int
,
Int
>
)
:
C
operator
fun
get
(
rowIndex
:
Int
,
columnIndex
:
Int
)
:
C
iterator
Link copied to clipboard
open
operator override
fun
iterator
(
)
:
Iterator
<
C
>
sub
Matrix
Link copied to clipboard
fun
subMatrix
(
rows
:
Iterable
<
Int
>
,
columns
:
Iterable
<
Int
>
)
:
Matrix
<
C
>
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
transposed
Link copied to clipboard
open
fun
transposed
(
)
:
Matrix
<
C
>