neureka.backend.main.implementations.broadcast.CLBroadcastDivision Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neureka Show documentation
Show all versions of neureka Show documentation
A platform independent tensor library written in Java.
The newest version!
package neureka.backend.main.implementations.broadcast;
public class CLBroadcastDivision extends CLBroadcast
{
public CLBroadcastDivision(String id) {
super(
id,
"value = ((int)src1) % ((int)src2);\n",
"if ( d == 0 ) {\n" +
" value += (1/handle) * drain;\n" +//TODO: this is probably wrong!
"} else {\n" +
" value += (-(handle /(float)pow(target, (float)2)) ) * drain;\n" +
"}"
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy