use of org.apache.ignite.ml.math.exceptions.UnsupportedOperationException in project ignite by apache.
the class CacheVectorTest method testTimesVector.
/**
*/
public void testTimesVector() {
IgniteUtils.setCurrentIgniteName(ignite.configuration().getIgniteInstanceName());
IdentityValueMapper valMapper = new IdentityValueMapper();
CacheVector<Integer, Double> cacheVector = new CacheVector<>(size, getCache(), keyMapper, valMapper);
cacheVector.assign(1d);
Vector testVec = new DenseLocalOnHeapVector(IntStream.range(0, size).asDoubleStream().toArray());
try {
cacheVector.times(testVec);
TestCase.fail();
} catch (UnsupportedOperationException ignored) {
}
}
use of org.apache.ignite.ml.math.exceptions.UnsupportedOperationException in project ignite by apache.
the class CacheVectorTest method testLike.
/**
*/
public void testLike() {
IgniteUtils.setCurrentIgniteName(ignite.configuration().getIgniteInstanceName());
IdentityValueMapper valMapper = new IdentityValueMapper();
CacheVector<Integer, Double> cacheVector = new CacheVector<>(size, getCache(), keyMapper, valMapper);
try {
cacheVector.like(size);
TestCase.fail("Unsupported case");
} catch (UnsupportedOperationException ignored) {
}
}
use of org.apache.ignite.ml.math.exceptions.UnsupportedOperationException in project ignite by apache.
the class CacheVectorTest method testCopy.
/**
*/
public void testCopy() {
IgniteUtils.setCurrentIgniteName(ignite.configuration().getIgniteInstanceName());
IdentityValueMapper valMapper = new IdentityValueMapper();
CacheVector<Integer, Double> cacheVector = new CacheVector<>(size, getCache(), keyMapper, valMapper);
try {
cacheVector.copy();
TestCase.fail("Unsupported case");
} catch (UnsupportedOperationException ignored) {
}
}
Aggregations