trait FileIOAPI extends AnyRef
- Alphabetic
- By Inheritance
- FileIOAPI
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def closeBinary(file: api.BinaryFile): api.Void
- def closeCSV(file: api.CSVFile): api.Void
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
loadBinary[T](filename: api.Text)(implicit arg0: api.Num[T]): api.Tensor1[T]
Loads the given binary file at
filename
as an Array. -
def
loadCSV1D[T](filename: api.Text, delim: api.Text = Text(","))(implicit arg0: Type[T], cast: argon.Cast[api.Text, T]): api.Tensor1[T]
Loads the CSV at
filename
as an @Array, using the supplieddelimeter
(comma by default).Loads the CSV at
filename
as an @Array, using the supplieddelimeter
(comma by default). * -
def
loadCSV2D[T](filename: api.Text, delim1: api.Text = Text(","), delim2: api.Text = Text("\n"))(implicit arg0: Type[T], cast: argon.Cast[api.Text, T]): api.Tensor2[T]
Loads the CSV at
filename
as a @Tensor2, using the supplied element delimeter and linebreaks across rows.Loads the CSV at
filename
as a @Tensor2, using the supplied element delimeter and linebreaks across rows. * - def loadConstants[A](filename: String, delim: String = "\n")(implicit arg0: Type[A]): api.Tensor1[A]
-
def
loadNumpy1D[T](name: String)(implicit arg0: api.Num[T]): api.Tensor1[T]
Creates a placeholder for a numpy array as an @Array.
Creates a placeholder for a numpy array as an @Array. *
-
def
loadNumpy2D[T](name: String)(implicit arg0: api.Num[T]): api.Tensor2[T]
Creates a placeholder for a numpy matrix as an @Tensor2.*
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def openBinary(filename: api.Text, write: Boolean): api.BinaryFile
- def openCSV(filename: api.Text, write: Boolean): api.CSVFile
- def parseValue[A](str: String)(implicit arg0: Type[A], ctx: SrcCtx, state: State): A
- def readBinary[A](file: api.BinaryFile)(implicit arg0: api.Num[A], ctx: SrcCtx, state: State): api.Tensor1[A]
- def readTokens(file: api.CSVFile, delim: api.Text): api.Tensor1[api.Text]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def writeBinary[A](file: api.BinaryFile, len: api.I32)(func: (api.I32) ⇒ A)(implicit arg0: api.Num[A], ctx: SrcCtx, state: State): api.Void
-
def
writeBinary[T](array: api.Tensor1[T], filename: api.Text)(implicit arg0: api.Num[T]): api.Void
Saves the given Array to disk as a binary file at
filename
. -
def
writeCSV1D[T](array: api.Tensor1[T], filename: api.Text, delim: api.Text = Text(","))(implicit arg0: Type[T]): api.Void
Writes the given Array to the file at
filename
using the givendelimiter
.Writes the given Array to the file at
filename
using the givendelimiter
. If no delimiter is given, defaults to comma. -
def
writeCSV2D[T](matrix: api.Tensor2[T], filename: api.Text, delim1: api.Text = Text(","), delim2: api.Text = Text("\n"))(implicit arg0: Type[T]): api.Void
Writes the given Tensor2 to the file at
filename
using the given element delimiter.Writes the given Tensor2 to the file at
filename
using the given element delimiter. If no element delimiter is given, defaults to comma. - def writeTokens(file: api.CSVFile, delim: api.Text, len: api.I32)(token: (api.I32) ⇒ api.Text): api.Void