https://github.com/yannrichet/jmathio
Easy read/write java classes for double arrays
https://github.com/yannrichet/jmathio
Last synced: 19 days ago
JSON representation
Easy read/write java classes for double arrays
- Host: GitHub
- URL: https://github.com/yannrichet/jmathio
- Owner: yannrichet
- License: bsd-2-clause
- Created: 2015-03-14T13:21:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-03-16T17:03:18.000Z (over 4 years ago)
- Last Synced: 2025-04-02T11:21:39.469Z (3 months ago)
- Language: Java
- Homepage:
- Size: 245 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://maven-badges.herokuapp.com/maven-central/com.github.yannrichet/JMathIO)
[](https://travis-ci.org/yannrichet/jmathio)
[](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
...```
