This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!require("RJDBC")) { | |
install.packages("RJDBC",repos="http://cran.rstudio.com/") | |
library("RJDBC") | |
} | |
jdbcDriver <- JDBC("org.apache.ignite.IgniteJdbcThinDriver", | |
"/Users/pranas/Apps/apache-ignite-fabric-2.1.0-bin/libs/ignite-core-2.1.0.jar:/Users/pranas/Apps/apache-ignite-fabric-2.1.0-bin/libs/log4j-1.2.17.jar") | |
conn <- dbConnect(jdbcDriver, "jdbc:ignite:thin://localhost") | |
dbGetQuery(conn, "SELECT * FROM OHLC Oder WHERE SECURITYID = 100") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.rivendell.collections; | |
import java.lang.reflect.Array; | |
public class SkipListNode<T extends Comparable<? super T>> { | |
private final T value; | |
private final SkipListNode<T>[] next; | |
/** | |
* this is to provide index based access |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if defined(__ARM_NEON__) | |
vec4 dot(vec4 a, vec4 b) | |
{ | |
vec4 prod = vmulq_f32(a, b); | |
vec4 sum1 = vaddq_f32(prod, vrev64q_f32(prod)); | |
vec4 sum2 = vaddq_f32(sum1, vcombine_f32(vget_high_f32(sum1), vget_low_f32(sum1))); | |
return sum2; | |
} | |
#else if defined(__SSE3__) | |
static inline vec4 vdot(vec4 x, vec4 y) |