Package org.jblas
Class DoubleMatrix.ElementsAsListView
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<java.lang.Double>
-
- org.jblas.DoubleMatrix.ElementsAsListView
-
- All Implemented Interfaces:
java.lang.Iterable<java.lang.Double>
,java.util.Collection<java.lang.Double>
,java.util.List<java.lang.Double>
,ConvertsToDoubleMatrix
- Enclosing class:
- DoubleMatrix
public class DoubleMatrix.ElementsAsListView extends java.util.AbstractList<java.lang.Double> implements ConvertsToDoubleMatrix
A wrapper which allows to view a matrix as a List of Doubles (read-only!). Also implements theConvertsToDoubleMatrix
interface.
-
-
Constructor Summary
Constructors Constructor Description ElementsAsListView(DoubleMatrix me)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleMatrix
convertToDoubleMatrix()
java.lang.Double
get(int index)
int
size()
-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
-
-
-
Constructor Detail
-
ElementsAsListView
public ElementsAsListView(DoubleMatrix me)
-
-
Method Detail
-
get
public java.lang.Double get(int index)
- Specified by:
get
in interfacejava.util.List<java.lang.Double>
- Specified by:
get
in classjava.util.AbstractList<java.lang.Double>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<java.lang.Double>
- Specified by:
size
in interfacejava.util.List<java.lang.Double>
- Specified by:
size
in classjava.util.AbstractCollection<java.lang.Double>
-
convertToDoubleMatrix
public DoubleMatrix convertToDoubleMatrix()
- Specified by:
convertToDoubleMatrix
in interfaceConvertsToDoubleMatrix
-
-