MyMediaLite  3.11
Static Public Member Functions | List of all members
VectorExtensions Class Reference

Extensions for vector-like data More...

Static Public Member Functions

static IList< int > ReadIntVector (this TextReader reader)
 Read a collection of ints from a TextReader object More...
 
static IList< float > ReadVector (this TextReader reader)
 Read a collection of floats from a TextReader object More...
 
static void WriteVector (this TextWriter writer, ICollection< double > vector)
 Write a collection of doubles to a TextWriter More...
 
static void WriteVector (this TextWriter writer, ICollection< float > vector)
 Write a collection of floats to a TextWriter More...
 
static void WriteVector (this TextWriter writer, ICollection< int > vector)
 Write a collection of ints to a streamwriter More...
 

Detailed Description

Extensions for vector-like data

Member Function Documentation

static IList<int> ReadIntVector ( this TextReader  reader)
inlinestatic

Read a collection of ints from a TextReader object

Parameters
readerthe TextReader to read from
Returns
a list of int values
static IList<float> ReadVector ( this TextReader  reader)
inlinestatic

Read a collection of floats from a TextReader object

Parameters
readerthe TextReader to read from
Returns
a list of double values
static void WriteVector ( this TextWriter  writer,
ICollection< double >  vector 
)
inlinestatic

Write a collection of doubles to a TextWriter

Parameters
writera TextWriter
vectora collection of double values
static void WriteVector ( this TextWriter  writer,
ICollection< float >  vector 
)
inlinestatic

Write a collection of floats to a TextWriter

Parameters
writera TextWriter
vectora collection of float values
static void WriteVector ( this TextWriter  writer,
ICollection< int >  vector 
)
inlinestatic

Write a collection of ints to a streamwriter

Parameters
writera StreamWriter
vectora collection of int values

The documentation for this class was generated from the following file: