org.nd4j.linalg.jcublas.complex.JCublasComplexNDArray Maven / Gradle / Ivy
/*
* Copyright 2015 Skymind,Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.nd4j.linalg.jcublas.complex;
import org.nd4j.linalg.api.buffer.DataBuffer;
import org.nd4j.linalg.api.complex.BaseComplexNDArray;
import org.nd4j.linalg.api.complex.IComplexDouble;
import org.nd4j.linalg.api.complex.IComplexNDArray;
import org.nd4j.linalg.api.complex.IComplexNumber;
import org.nd4j.linalg.api.ndarray.INDArray;
import java.util.List;
/**
* Created by mjk on 8/23/14.
*
* @author mjk
* @author Adam Gibson
*/
public class JCublasComplexNDArray extends BaseComplexNDArray {
public JCublasComplexNDArray(int[] shape, int offset, char ordering) {
super(shape, offset, ordering);
}
public JCublasComplexNDArray(int[] shape) {
super(shape);
}
public JCublasComplexNDArray(float[] data, int[] shape, int[] stride, char ordering) {
super(data, shape, stride, ordering);
}
public JCublasComplexNDArray(int[] shape, char ordering) {
super(shape, ordering);
}
/**
* Initialize the given ndarray as the real component
*
* @param m the real component
* @param stride the stride of the ndarray
* @param ordering the ordering for the ndarray
*/
public JCublasComplexNDArray(INDArray m, int[] stride, char ordering) {
super(m, stride, ordering);
}
/**
* Construct a complex matrix from a realComponent matrix.
*
* @param m
* @param ordering
*/
public JCublasComplexNDArray(INDArray m, char ordering) {
super(m, ordering);
}
/**
* Construct a complex matrix from a realComponent matrix.
*
* @param m
*/
public JCublasComplexNDArray(INDArray m) {
super(m);
}
/**
* Create with the specified ndarray as the real component
* and the given stride
*
* @param m the ndarray to use as the stride
* @param stride the stride of the ndarray
*/
public JCublasComplexNDArray(INDArray m, int[] stride) {
super(m, stride);
}
/**
* Create an ndarray from the specified slices
* and the given shape
*
* @param slices the slices of the ndarray
* @param shape the final shape of the ndarray
* @param stride the stride of the ndarray
*/
public JCublasComplexNDArray(List slices, int[] shape, int[] stride) {
super(slices, shape, stride);
}
/**
* Create an ndarray from the specified slices
* and the given shape
*
* @param slices the slices of the ndarray
* @param shape the final shape of the ndarray
* @param stride the stride of the ndarray
* @param ordering the ordering for the ndarray
*/
public JCublasComplexNDArray(List slices, int[] shape, int[] stride, char ordering) {
super(slices, shape, stride, ordering);
}
/**
* Create an ndarray from the specified slices
* and the given shape
*
* @param slices the slices of the ndarray
* @param shape the final shape of the ndarray
* @param ordering the ordering of the ndarray
*/
public JCublasComplexNDArray(List slices, int[] shape, char ordering) {
super(slices, shape, ordering);
}
public JCublasComplexNDArray(float[] data, int[] shape, int[] stride, int offset, Character order) {
super(data, shape, stride, offset, order);
}
public JCublasComplexNDArray(DataBuffer data) {
super(data);
}
/**
* Create an ndarray from the specified slices
* and the given shape
*
* @param slices the slices of the ndarray
* @param shape the final shape of the ndarray
*/
public JCublasComplexNDArray(List slices, int[] shape) {
super(slices, shape);
}
/**
* Create a complex ndarray with the given complex doubles.
* Note that this maybe an easier setup than the new double[]
*
* @param newData the new data for this array
* @param shape the shape of the ndarray
*/
public JCublasComplexNDArray(IComplexNumber[] newData, int[] shape) {
super(newData, shape);
}
/**
* Create a complex ndarray with the given complex doubles.
* Note that this maybe an easier setup than the new double[]
*
* @param newData the new data for this array
* @param shape the shape of the ndarray
* @param stride
*/
public JCublasComplexNDArray(IComplexNumber[] newData, int[] shape, int[] stride) {
super(newData, shape, stride);
}
public JCublasComplexNDArray(IComplexNumber[] newData, int[] shape, char ordering) {
super(newData, shape, ordering);
}
public JCublasComplexNDArray(float[] data, int[] shape, int[] stride) {
super(data, shape, stride);
}
public JCublasComplexNDArray(float[] data, int[] shape) {
super(data, shape);
}
/**
* Create a complex ndarray with the given complex doubles.
* Note that this maybe an easier setup than the new double[]
*
* @param newData the new data for this array
* @param shape the shape of the ndarray
*/
public JCublasComplexNDArray(IComplexDouble[] newData, int[] shape) {
super(newData, shape);
}
/**
* Create a complex ndarray with the given complex doubles.
* Note that this maybe an easier setup than the new double[]
*
* @param newData the new data for this array
* @param shape the shape of the ndarray
* @param ordering the ordering for the ndarray
*/
public JCublasComplexNDArray(IComplexDouble[] newData, int[] shape, char ordering) {
super(newData, shape, ordering);
}
/**
* Construct an ndarray of the specified shape
* with an empty data array
*
* @param shape the shape of the ndarray
* @param stride the stride of the ndarray
* @param offset the desired offset
*/
public JCublasComplexNDArray(int[] shape, int[] stride, int offset) {
super(shape, stride, offset);
}
/**
* Construct an ndarray of the specified shape
* with an empty data array
*
* @param shape the shape of the ndarray
* @param stride the stride of the ndarray
* @param offset the desired offset
* @param ordering the ordering for the ndarray
*/
public JCublasComplexNDArray(int[] shape, int[] stride, int offset, char ordering) {
super(shape, stride, offset, ordering);
}
/**
* Create the ndarray with
* the specified shape and stride and an offset of 0
*
* @param shape the shape of the ndarray
* @param stride the stride of the ndarray
* @param ordering
*/
public JCublasComplexNDArray(int[] shape, int[] stride, char ordering) {
super(shape, stride, ordering);
}
/**
* Create the ndarray with
* the specified shape and stride and an offset of 0
*
* @param shape the shape of the ndarray
* @param stride the stride of the ndarray
*/
public JCublasComplexNDArray(int[] shape, int[] stride) {
super(shape, stride);
}
/**
* @param shape
* @param offset
*/
public JCublasComplexNDArray(int[] shape, int offset) {
super(shape, offset);
}
/**
* Creates a new n times m ComplexDoubleMatrix.
*
* @param newRows the number of rows (n) of the new matrix.
* @param newColumns the number of columns (m) of the new matrix.
*/
public JCublasComplexNDArray(int newRows, int newColumns) {
super(newRows, newColumns);
}
/**
* Creates a new n times m ComplexDoubleMatrix.
*
* @param newRows the number of rows (n) of the new matrix.
* @param newColumns the number of columns (m) of the new matrix.
* @param ordering the ordering of the ndarray
*/
public JCublasComplexNDArray(int newRows, int newColumns, char ordering) {
super(newRows, newColumns, ordering);
}
/**
* Float overloading for constructor
*
* @param data the data to use
* @param shape the shape to use
* @param stride the stride of the ndarray
* @param offset the offset of the ndarray
* @param ordering the ordering for the ndarrayg
*/
public JCublasComplexNDArray(float[] data, int[] shape, int[] stride, int offset, char ordering) {
super(data, shape, stride, offset, ordering);
}
public JCublasComplexNDArray(float[] data, int[] shape, int[] stride, int offset) {
super(data, shape, stride, offset);
}
public JCublasComplexNDArray(float[] floats, int[] shape, int offset, char ordering) {
super(floats, shape, offset, ordering);
}
public JCublasComplexNDArray(float[] floats, int[] shape, int offset) {
super(floats, shape, offset);
}
public JCublasComplexNDArray(DataBuffer data, int[] shape, int[] stride, int offset) {
super(data, shape, stride, offset);
}
public JCublasComplexNDArray(IComplexNumber[] data, int[] shape, int[] stride, int offset, char ordering) {
super(data, shape, stride, offset, ordering);
}
public JCublasComplexNDArray(DataBuffer data, int[] shape) {
super(data, shape);
}
public JCublasComplexNDArray(IComplexNumber[] data, int[] shape, int[] stride, int offset) {
super(data, shape, stride, offset);
}
public JCublasComplexNDArray(IComplexNumber[] data, int[] shape, int offset, char ordering) {
super(data, shape, offset, ordering);
}
public JCublasComplexNDArray(DataBuffer buffer, int[] shape, int offset, char ordering) {
super(buffer, shape, offset, ordering);
}
public JCublasComplexNDArray(DataBuffer buffer, int[] shape, int offset) {
super(buffer, shape, offset);
}
public JCublasComplexNDArray() {
}
public JCublasComplexNDArray(DataBuffer data, int[] shape, int[] stride) {
super(data, shape, stride);
}
public JCublasComplexNDArray(float[] data) {
super(data);
}
public JCublasComplexNDArray(DataBuffer buffer, int[] shape, int[] stride, int offset, char ordering) {
super(buffer, shape, stride, offset, ordering);
}
public JCublasComplexNDArray(float[] data, int[] shape, char ordering) {
super(data, shape, ordering);
}
public JCublasComplexNDArray(float[] data, Character order) {
super(data, order);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy