mikera.matrixx.impl.MatrixColumnList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vectorz Show documentation
Show all versions of vectorz Show documentation
Fast double-precision vector and matrix maths library for Java, supporting N-dimensional numeric arrays.
package mikera.matrixx.impl;
import java.util.AbstractList;
import mikera.matrixx.AMatrix;
import mikera.vectorz.AVector;
/**
* Lightweight wrapper for the list of columns of a matrix
*
* @author Mike
*
*/
public class MatrixColumnList extends AbstractList {
private AMatrix source;
public MatrixColumnList(AMatrix m) {
this.source=m;
}
@Override
public AVector get(int index) {
return source.getColumn(index);
}
@Override
public int size() {
return source.columnCount();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy