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

mikera.matrixx.impl.MatrixColumnList Maven / Gradle / Ivy

Go to download

Fast double-precision vector and matrix maths library for Java, supporting N-dimensional numeric arrays.

There is a newer version: 0.67.0
Show newest version
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