All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.meliorbis.numerics.test.NumericsTestBase Maven / Gradle / Ivy

Go to download

A library for working with large multi-dimensional arrays and the functions they represent

There is a newer version: 1.2
Show newest version
package com.meliorbis.numerics.test;

import com.meliorbis.numerics.DoubleNumerics;
import com.meliorbis.numerics.Numerics;
import com.meliorbis.numerics.generic.primitives.DoubleArray;

/**
 * Created by toby on 04/04/2014.
 */
public class NumericsTestBase
{
    public static final double MAX_ERROR = 1e-15;
    protected Numerics _numerics = DoubleNumerics.instance();

    protected DoubleArray createArray(double... values_)
    {
        return _numerics.getArrayFactory().newArray(values_);
    }
    
    protected DoubleArray createArray(int... dimensions_)
    {
        return _numerics.getArrayFactory().newArray(dimensions_);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy