Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yannrichet/jmathio

Easy read/write java classes for double arrays
https://github.com/yannrichet/jmathio

Last synced: 11 days ago
JSON representation

Easy read/write java classes for double arrays

Awesome Lists containing this project

README

        

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.yannrichet/JMathIO/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.yannrichet/JMathIO)
[![Build Status](https://travis-ci.org/yannrichet/jmathio.png)](https://travis-ci.org/yannrichet/jmathio)
[![codecov](https://codecov.io/gh/yannrichet/jmathio/branch/master/graph/badge.svg)](https://codecov.io/gh/yannrichet/jmathio)

# JMathIO: easy to use read/write classes for double arrays

JMathIO allows to create, read, write, append your datas in:

* ASCII files : org.math.io.files.ASCIIFile
* Binary files (big or little endian) : org.math.io.files.BinaryFile?

## Example Java code ##
```java
import static org.math.io.files.ASCIIFile.*;
import static org.math.io.parser.ArrayString.*;

...

double[][] b = { { 1.0, 2.0, 3.0, 4.0 }, { 11.0, 12.0, 13.0, 14.0 } };
// write file in ASCII
writeDoubleArray(new File("b.txt"), b);
// read this file
double[][] b_read = readDoubleArray(new File("b.txt"));
```
## Use it ##

Just put https://github.com/yannrichet/jmathio/blob/master/dist/jmathio.jar in your java classpath

Or include maven dependency:
```xml

...

com.github.yannrichet
jmathio
1.0

...

```

![Analytics](https://ga-beacon.appspot.com/UA-109580-20/jmathio)