kmath-core
/
space.kscience.kmath.nd
/
Structure1D
common
Structure1
D
interface
Structure1D
<
T
> :
NDStructure
<
T
> ,
Buffer
<
T
>
Content copied to clipboard
A structure that is guaranteed to be one-dimensional
Functions
Properties
Functions
contentEquals
Link copied to clipboard
common
open fun
contentEquals
(other:
Buffer
<*>):
Boolean
Content copied to clipboard
Checks content equality with another buffer.
elements
Link copied to clipboard
common
abstract fun
elements
():
Sequence
<
Pair
<
IntArray
,
T
>>
Content copied to clipboard
Returns the sequence of all the elements associated by their indices.
equals
Link copied to clipboard
common
abstract operator override fun
equals
(other:
Any
?):
Boolean
Content copied to clipboard
get
Link copied to clipboard
common
open operator override fun
get
(index:
IntArray
):
T
Content copied to clipboard
Returns the value at the specified indices.
abstract operator fun
get
(index:
Int
):
T
Content copied to clipboard
Gets element at given index.
getFeature
Link copied to clipboard
common
open fun <
F
:
Any
>
getFeature
(type:
KClass
<
F
>):
F
?
Content copied to clipboard
Feature is some additional strucure information which allows to access it special properties or hints.
hashCode
Link copied to clipboard
common
abstract override fun
hashCode
():
Int
Content copied to clipboard
iterator
Link copied to clipboard
common
open operator override fun
iterator
():
Iterator
<
T
>
Content copied to clipboard
Iterates over all elements.
toString
Link copied to clipboard
common
open fun
toString
():
String
Content copied to clipboard
Properties
dimension
Link copied to clipboard
common
open override val
dimension
:
Int
Content copied to clipboard
The count of dimensions in this structure.
shape
Link copied to clipboard
common
abstract val
shape
:
IntArray
Content copied to clipboard
The shape of structure, i.e.
size
Link copied to clipboard
common
abstract val
size
:
Int
Content copied to clipboard
The size of this buffer.