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

org.nd4j.list.FloatNDArrayList Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
package org.nd4j.list;

import org.nd4j.linalg.api.ndarray.INDArray;

/**
 * An {@link BaseNDArrayList} for float
 *
 * @author Adam Gibson
 */
public class FloatNDArrayList extends BaseNDArrayList {
    public FloatNDArrayList() {
    }

    public FloatNDArrayList(INDArray container) {
        super(container);
    }

    @Override
    public Float get(int i) {
        Number ret = container.getDouble(i);
        return ret.floatValue();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy