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

org.nd4j.linalg.indexing.Apply Maven / Gradle / Ivy

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

import com.google.common.base.Function;
import org.nd4j.linalg.api.complex.IComplexNDArray;
import org.nd4j.linalg.api.ndarray.INDArray;

/**
 * Created by agibsonccc on 10/1/14.
 */
public class Apply {

    private INDArray toTransform;
    private Function apply;

    public void apply() {
        if(toTransform instanceof IComplexNDArray) {
            IComplexNDArray linear = (IComplexNDArray) toTransform.linearView();
            for(int i = 0; i < linear.length(); i++) {

            }
        }
        else {
            INDArray linear = toTransform.linearView();
            for(int i = 0; i < linear.length(); i++) {

            }
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy