Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/yannrichet/jmathio
- Owner: yannrichet
- License: bsd-2-clause
- Created: 2015-03-14T13:21:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-03-16T17:03:18.000Z (over 3 years ago)
- Last Synced: 2024-10-08T18:06:20.285Z (30 days ago)
- Language: Java
- Homepage:
- Size: 245 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)