Example usage for org.apache.commons.math3.linear RealVector getClass

List of usage examples for org.apache.commons.math3.linear RealVector getClass

Introduction

In this page you can find the example usage for org.apache.commons.math3.linear RealVector getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:com.cloudera.oryx.common.math.VectorsTest.java

@Test
public void testLike() {
    RealVector of = Vectors.of(1.0, -2.0, 7.0);
    RealVector like = Vectors.like(of);//from  w ww.  j  a  v a2 s.  c  om
    assertEquals(of.getDimension(), like.getDimension());
    assertEquals(0.0, like.getEntry(0));
    assertSame(of.getClass(), like.getClass());
}