Package org. jetbrains. kotlinx. multik. api. io
Functions
Link copied to clipboard
inline fun <T : Any, D : Dim2> Multik.read( file: File, delimiter: Char = ',', charset: Charset = Charsets.UTF_8): NDArray<T, D>
Content copied to clipboard
inline fun <T : Any, D : Dim2> Multik.read( fileName: String, delimiter: Char = ',', charset: Charset = Charsets.UTF_8): NDArray<T, D>
Content copied to clipboard
fun <T, D : Dim2> Multik.read( file: File, dtype: DataType, dim: Dim2, delimiter: Char = ',', charset: Charset = Charsets.UTF_8): NDArray<T, D>
Content copied to clipboard
Link copied to clipboard
fun <T, D : Dim2> Multik.readDelim( reader: Reader, format: CSVFormat = CSVFormat.DEFAULT, dtype: DataType?, dim: Dim2?): NDArray<T, D>
Content copied to clipboard
Link copied to clipboard
fun Multik.readRaw( file: File, dtype: DataType? = null, dim: Dim2? = null, delimiter: Char = ',', charset: Charset = Charsets.UTF_8): NDArray<*, D2>
Content copied to clipboard
fun Multik.readRaw( fileName: String, dtype: DataType? = null, dim: Dim2? = null, delimiter: Char = ',', charset: Charset = Charsets.UTF_8): NDArray<*, D2>
Content copied to clipboard
Returns a raw array of dimension 2. The type casts to either Double or ComplexDouble.
Link copied to clipboard
fun <T, D : Dim2> Multik.write( file: File, ndarray: NDArray<T, D>, delimiter: Char = ',')
Content copied to clipboard
fun <T, D : Dim2> Multik.write( path: String, ndarray: NDArray<T, D>, delimiter: Char = ',')
Content copied to clipboard
Writes an NDArray to csv file. The NDArray must be up to the second dimension.