org.saddle.io.npy

Type members

Classlikes

case object ByteType extends DType[Byte]
sealed trait DType[T]
case class Descriptor(fortran: Boolean, shape: List[Long], dtype: String)
case object DoubleType extends DType[Double]
case object FloatType extends DType[Float]
case object IntType extends DType[Int]
case object LongType extends DType[Long]

Value members

Concrete methods

def parse[T](tpe: DType[T], size: Int, from: ByteBuffer): Either[String, Array[T]]
def parseHeader(s: String): Descriptor
def readDataFromChannel[T](tpe: DType[T], channel: ReadableByteChannel, len: Long): Iterator[Either[String, Array[T]]]
def readFromChannel[T](dtype: DType[T], channel: ReadableByteChannel): Either[String, (Descriptor, Iterator[Either[String, Array[T]]])]
def readHeaderFromChannel(channel: ReadableByteChannel): Either[String, Descriptor]