com.anrisoftware.globalpom.data.Data Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of globalpomutils-data Show documentation
Show all versions of globalpomutils-data Show documentation
Arbitrary data for mathematical calculations.
/*
* Copyright 2016 Erwin Müller
*
* 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 com.anrisoftware.globalpom.data;
import org.ejml.data.MatrixIterator;
import org.ejml.data.ReshapeMatrix64F;
/**
* Access and modify generic data.
*
* @author Erwin Mueller, [email protected]
* @since 1.9
*/
public interface Data {
/**
* Returns the matrix of the data.
*
* @return the {@link ReshapeMatrix64F}.
*
* @since 1.10
*/
ReshapeMatrix64F getMatrix();
/**
* @see ReshapeMatrix64F#reshape(int, int, boolean)
*/
void reshape(int numRows, int numCols, boolean saveValues);
/**
* @see ReshapeMatrix64F#reshape(int, int)
*/
void reshape(int numRows, int numCols);
/**
* @see ReshapeMatrix64F#get(int, int)
*/
double get(int row, int col);
/**
* @see ReshapeMatrix64F#unsafe_get(int, int)
*/
double unsafe_get(int row, int col);
/**
* @see ReshapeMatrix64F#set(int, int, double)
*/
void set(int row, int col, double val);
/**
* @see ReshapeMatrix64F#unsafe_set(int, int, double)
*/
void unsafe_set(int row, int col, double val);
/**
* @see ReshapeMatrix64F#iterator(boolean, int, int, int, int)
*/
MatrixIterator iterator(boolean rowMajor, int minRow, int minCol,
int maxRow, int maxCol);
/**
* @see ReshapeMatrix64F#getNumRows()
*/
int getNumRows();
/**
* @see ReshapeMatrix64F#getNumCols()
*/
int getNumCols();
/**
* @see ReshapeMatrix64F#setNumRows(int)
*/
void setNumRows(int numRows);
/**
* @see ReshapeMatrix64F#setNumCols(int)
*/
void setNumCols(int numCols);
/**
* @see ReshapeMatrix64F#getNumElements()
*/
int getNumElements();
/**
* @see ReshapeMatrix64F#set(ReshapeMatrix64F)
*/
void set(ReshapeMatrix64F A);
/**
* @see ReshapeMatrix64F#copy()
*
* @since 1.10
*/
T copy();
/**
* @see ReshapeMatrix64F#print()
*/
void print();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy