blob: 8ea24939ea1b9e0548938f360efdedd6ff91ad48 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>UtilFunctions (SystemDS 2.1.0-SNAPSHOT API)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="UtilFunctions (SystemDS 2.1.0-SNAPSHOT API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9,"i38":9,"i39":9,"i40":9,"i41":9,"i42":9,"i43":9,"i44":9,"i45":9,"i46":9,"i47":9,"i48":9,"i49":9,"i50":9,"i51":9,"i52":9,"i53":9,"i54":9,"i55":9,"i56":9,"i57":9,"i58":9,"i59":9,"i60":9,"i61":9,"i62":9,"i63":9,"i64":9,"i65":9,"i66":9,"i67":9,"i68":9,"i69":9,"i70":9,"i71":9,"i72":9,"i73":9,"i74":9,"i75":9,"i76":9,"i77":9,"i78":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/UtilFunctions.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/sysds/runtime/util/UniformPRNGenerator.html" title="class in org.apache.sysds.runtime.util"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/sysds/runtime/util/UtilFunctions.html" target="_top">Frames</a></li>
<li><a href="UtilFunctions.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.sysds.runtime.util</div>
<h2 title="Class UtilFunctions" class="title">Class UtilFunctions</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.sysds.runtime.util.UtilFunctions</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">UtilFunctions</span>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#ADD_PRIME1">ADD_PRIME1</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#DIVIDE_PRIME">DIVIDE_PRIME</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#DOUBLE_EPS">DOUBLE_EPS</a></span></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#UtilFunctions--">UtilFunctions</a></span>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#columnStringToCSVString-java.lang.String-java.lang.String-">columnStringToCSVString</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;input,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;separator)</code>&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#compareTo-org.apache.sysds.common.Types.ValueType-java.lang.Object-java.lang.Object-">compareTo</a></span>(<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>&nbsp;vt,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;in1,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;in2)</code>&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#compareVersion-java.lang.String-java.lang.String-">compareVersion</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;version1,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;version2)</code>
<div class="block">Compares two version strings of format x.y.z, where x is major,
y is minor, and z is maintenance release.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#computeBlockIndex-long-int-">computeBlockIndex</a></span>(long&nbsp;cellIndex,
int&nbsp;blockSize)</code>
<div class="block">Computes the 1-based block index based on the global cell index and block size meta
data.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#computeBlockNumber-int:A-long:A-int-">computeBlockNumber</a></span>(int[]&nbsp;ix,
long[]&nbsp;dims,
int&nbsp;blen)</code>
<div class="block">Calculates the number of the block this index refers to (basically a linearisation).</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#computeBlockSize-long-long-long-">computeBlockSize</a></span>(long&nbsp;len,
long&nbsp;blockIndex,
long&nbsp;blockSize)</code>
<div class="block">Computes the actual block size based on matrix dimension, block index, and block size
meta data.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#computeCellInBlock-long-int-">computeCellInBlock</a></span>(long&nbsp;cellIndex,
int&nbsp;blockSize)</code>
<div class="block">Computes the 0-based cell-in-block index based on the global cell index and block
size meta data.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#computeCellIndex-long-int-int-">computeCellIndex</a></span>(long&nbsp;blockIndex,
int&nbsp;blockSize,
int&nbsp;cellInBlock)</code>
<div class="block">Computes the global 1-based cell index based on the block index, block size meta data,
and specific 0-based in-block cell index.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static long[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#computeNextTensorIndexes-org.apache.sysds.runtime.meta.TensorCharacteristics-long:A-">computeNextTensorIndexes</a></span>(<a href="../../../../../org/apache/sysds/runtime/meta/TensorCharacteristics.html" title="class in org.apache.sysds.runtime.meta">TensorCharacteristics</a>&nbsp;tc,
long[]&nbsp;ix)</code>
<div class="block">Computes the next tensor indexes array.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#computeNnz-java.util.BitSet-int-int-">computeNnz</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/BitSet.html?is-external=true" title="class or interface in java.util">BitSet</a>&nbsp;a,
int&nbsp;ai,
int&nbsp;len)</code>&nbsp;</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#computeNnz-double:A-int-int-">computeNnz</a></span>(double[]&nbsp;a,
int&nbsp;ai,
int&nbsp;len)</code>&nbsp;</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#computeNnz-float:A-int-int-">computeNnz</a></span>(float[]&nbsp;a,
int&nbsp;ai,
int&nbsp;len)</code>&nbsp;</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#computeNnz-int:A-int-int-">computeNnz</a></span>(int[]&nbsp;a,
int&nbsp;ai,
int&nbsp;len)</code>&nbsp;</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#computeNnz-long:A-int-int-">computeNnz</a></span>(long[]&nbsp;a,
int&nbsp;ai,
int&nbsp;len)</code>&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#computeNnz-org.apache.sysds.runtime.data.SparseBlock-int:A-int-int-">computeNnz</a></span>(<a href="../../../../../org/apache/sysds/runtime/data/SparseBlock.html" title="class in org.apache.sysds.runtime.data">SparseBlock</a>&nbsp;a,
int[]&nbsp;aix,
int&nbsp;ai,
int&nbsp;alen)</code>&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#computeNnz-java.lang.String:A-int-int-">computeNnz</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;a,
int&nbsp;ai,
int&nbsp;len)</code>&nbsp;</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#computeSliceInfo-org.apache.sysds.runtime.meta.TensorCharacteristics-long:A-int:A-int:A-">computeSliceInfo</a></span>(<a href="../../../../../org/apache/sysds/runtime/meta/TensorCharacteristics.html" title="class in org.apache.sysds.runtime.meta">TensorCharacteristics</a>&nbsp;tc,
long[]&nbsp;blockIx,
int[]&nbsp;outDims,
int[]&nbsp;offset)</code>
<div class="block">Computes the slice dimensions and offsets for the block slice of another tensor with the size given by
<code>TensorCharacteristics</code>.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>static long[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#computeTensorIndexes-org.apache.sysds.runtime.meta.TensorCharacteristics-long-">computeTensorIndexes</a></span>(<a href="../../../../../org/apache/sysds/runtime/meta/TensorCharacteristics.html" title="class in org.apache.sysds.runtime.meta">TensorCharacteristics</a>&nbsp;tc,
long&nbsp;blockIndex)</code>
<div class="block">Computes the tensor indexes array given a blockIndex we ant to compute.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#containsZero-double:A-int-int-">containsZero</a></span>(double[]&nbsp;data,
int&nbsp;pos,
int&nbsp;len)</code>&nbsp;</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#copyOf-org.apache.sysds.common.Types.ValueType:A-org.apache.sysds.common.Types.ValueType:A-">copyOf</a></span>(<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>[]&nbsp;schema1,
<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>[]&nbsp;schema2)</code>&nbsp;</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#countNonZeros-double:A-int-int-">countNonZeros</a></span>(double[]&nbsp;data,
int&nbsp;pos,
int&nbsp;len)</code>&nbsp;</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#doubleToObject-org.apache.sysds.common.Types.ValueType-double-">doubleToObject</a></span>(<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>&nbsp;vt,
double&nbsp;in)</code>&nbsp;</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#doubleToObject-org.apache.sysds.common.Types.ValueType-double-boolean-">doubleToObject</a></span>(<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>&nbsp;vt,
double&nbsp;in,
boolean&nbsp;sparse)</code>&nbsp;</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#formatMemorySize-long-">formatMemorySize</a></span>(long&nbsp;arg)</code>
<div class="block">Format a memory size with g/m/k quantifiers into its
number representation.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#frequency-org.apache.sysds.common.Types.ValueType:A-org.apache.sysds.common.Types.ValueType-">frequency</a></span>(<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>[]&nbsp;schema,
<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>&nbsp;vt)</code>&nbsp;</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/sysds/runtime/matrix/data/FrameBlock.html" title="class in org.apache.sysds.runtime.matrix.data">FrameBlock</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#generateRandomFrameBlock-int-int-org.apache.sysds.common.Types.ValueType:A-java.util.Random-">generateRandomFrameBlock</a></span>(int&nbsp;rows,
int&nbsp;cols,
<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>[]&nbsp;schema,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</a>&nbsp;random)</code>
<div class="block">Generates a random FrameBlock with given parameters.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#generateRandomValueFromValueType-org.apache.sysds.common.Types.ValueType-java.util.Random-">generateRandomValueFromValueType</a></span>(<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>&nbsp;valueType,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</a>&nbsp;random)</code>
<div class="block">Generates a random value for a given Value Type</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#getAlignedBlockSizes-int-int-int-">getAlignedBlockSizes</a></span>(int&nbsp;len,
int&nbsp;k,
int&nbsp;align)</code>&nbsp;</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#getAsciiAtIdx-java.lang.String-int-">getAsciiAtIdx</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;s,
int&nbsp;idx)</code>&nbsp;</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#getBalancedBlockSizesDefault-int-int-boolean-">getBalancedBlockSizesDefault</a></span>(int&nbsp;len,
int&nbsp;k,
boolean&nbsp;constK)</code>&nbsp;</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#getBlockBounds-org.apache.sysds.runtime.data.TensorIndexes-long:A-int-int:A-int:A-">getBlockBounds</a></span>(<a href="../../../../../org/apache/sysds/runtime/data/TensorIndexes.html" title="class in org.apache.sysds.runtime.data">TensorIndexes</a>&nbsp;ix,
long[]&nbsp;dims,
int&nbsp;blen,
int[]&nbsp;lower,
int[]&nbsp;upper)</code>&nbsp;</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#getDouble-java.lang.Object-">getDouble</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;obj)</code>&nbsp;</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/sysds/runtime/util/IndexRange.html" title="class in org.apache.sysds.runtime.util">IndexRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#getSelectedRangeForZeroOut-org.apache.sysds.runtime.instructions.spark.data.IndexedMatrixValue-int-org.apache.sysds.runtime.util.IndexRange-">getSelectedRangeForZeroOut</a></span>(<a href="../../../../../org/apache/sysds/runtime/instructions/spark/data/IndexedMatrixValue.html" title="class in org.apache.sysds.runtime.instructions.spark.data">IndexedMatrixValue</a>&nbsp;in,
int&nbsp;blen,
<a href="../../../../../org/apache/sysds/runtime/util/IndexRange.html" title="class in org.apache.sysds.runtime.util">IndexRange</a>&nbsp;indexRange)</code>&nbsp;</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/sysds/runtime/util/IndexRange.html" title="class in org.apache.sysds.runtime.util">IndexRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#getSelectedRangeForZeroOut-org.apache.sysds.runtime.matrix.data.Pair-int-org.apache.sysds.runtime.util.IndexRange-long-long-">getSelectedRangeForZeroOut</a></span>(<a href="../../../../../org/apache/sysds/runtime/matrix/data/Pair.html" title="class in org.apache.sysds.runtime.matrix.data">Pair</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>,<a href="../../../../../org/apache/sysds/runtime/matrix/data/FrameBlock.html" title="class in org.apache.sysds.runtime.matrix.data">FrameBlock</a>&gt;&nbsp;in,
int&nbsp;blen,
<a href="../../../../../org/apache/sysds/runtime/util/IndexRange.html" title="class in org.apache.sysds.runtime.util">IndexRange</a>&nbsp;indexRange,
long&nbsp;lSrcRowIndex,
long&nbsp;lDestRowIndex)</code>&nbsp;</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>static int[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#getSeqArray-int-int-int-">getSeqArray</a></span>(int&nbsp;low,
int&nbsp;up,
int&nbsp;incr)</code>
<div class="block">Obtain sequence array</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#getSeqLength-double-double-double-">getSeqLength</a></span>(double&nbsp;from,
double&nbsp;to,
double&nbsp;incr)</code>&nbsp;</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#getSeqLength-double-double-double-boolean-">getSeqLength</a></span>(double&nbsp;from,
double&nbsp;to,
double&nbsp;incr,
boolean&nbsp;check)</code>&nbsp;</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#getSeqList-int-int-int-">getSeqList</a></span>(int&nbsp;low,
int&nbsp;up,
int&nbsp;incr)</code>
<div class="block">Obtain sequence list</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code>static int[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#getSortedSampleIndexes-int-int-">getSortedSampleIndexes</a></span>(int&nbsp;range,
int&nbsp;sampleSize)</code>&nbsp;</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code>static int[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#getSortedSampleIndexes-int-int-long-">getSortedSampleIndexes</a></span>(int&nbsp;range,
int&nbsp;sampleSize,
long&nbsp;seed)</code>&nbsp;</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#getSplittedStringAsArray-java.lang.String-">getSplittedStringAsArray</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;input)</code>&nbsp;</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#intHashCode-int-int-">intHashCode</a></span>(int&nbsp;key1,
int&nbsp;key2)</code>&nbsp;</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#intHashCodeRobust-int-int-">intHashCodeRobust</a></span>(int&nbsp;key1,
int&nbsp;key2)</code>&nbsp;</td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#isInBlockRange-org.apache.sysds.runtime.matrix.data.MatrixIndexes-int-org.apache.sysds.runtime.util.IndexRange-">isInBlockRange</a></span>(<a href="../../../../../org/apache/sysds/runtime/matrix/data/MatrixIndexes.html" title="class in org.apache.sysds.runtime.matrix.data">MatrixIndexes</a>&nbsp;ix,
int&nbsp;blen,
<a href="../../../../../org/apache/sysds/runtime/util/IndexRange.html" title="class in org.apache.sysds.runtime.util">IndexRange</a>&nbsp;ixrange)</code>&nbsp;</td>
</tr>
<tr id="i44" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#isInBlockRange-org.apache.sysds.runtime.matrix.data.MatrixIndexes-int-long-long-long-long-">isInBlockRange</a></span>(<a href="../../../../../org/apache/sysds/runtime/matrix/data/MatrixIndexes.html" title="class in org.apache.sysds.runtime.matrix.data">MatrixIndexes</a>&nbsp;ix,
int&nbsp;blen,
long&nbsp;rl,
long&nbsp;ru,
long&nbsp;cl,
long&nbsp;cu)</code>&nbsp;</td>
</tr>
<tr id="i45" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#isInFrameBlockRange-java.lang.Long-int-org.apache.sysds.runtime.util.IndexRange-">isInFrameBlockRange</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&nbsp;ix,
int&nbsp;blen,
<a href="../../../../../org/apache/sysds/runtime/util/IndexRange.html" title="class in org.apache.sysds.runtime.util">IndexRange</a>&nbsp;ixrange)</code>&nbsp;</td>
</tr>
<tr id="i46" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#isInFrameBlockRange-java.lang.Long-int-long-long-">isInFrameBlockRange</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&nbsp;ix,
int&nbsp;blen,
long&nbsp;rl,
long&nbsp;ru)</code>&nbsp;</td>
</tr>
<tr id="i47" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#isIntegerNumber-java.lang.String-">isIntegerNumber</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;str)</code>&nbsp;</td>
</tr>
<tr id="i48" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#isNonZero-java.lang.Object-">isNonZero</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;obj)</code>&nbsp;</td>
</tr>
<tr id="i49" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#isSpecial-double-">isSpecial</a></span>(double&nbsp;value)</code>&nbsp;</td>
</tr>
<tr id="i50" class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#jaccardSim-java.lang.String-java.lang.String-">jaccardSim</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;x,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;y)</code>&nbsp;</td>
</tr>
<tr id="i51" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#longHashCode-long-">longHashCode</a></span>(long&nbsp;key1)</code>&nbsp;</td>
</tr>
<tr id="i52" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#longHashCode-long-long-">longHashCode</a></span>(long&nbsp;key1,
long&nbsp;key2)</code>
<div class="block">Returns the hash code for a long-long pair.</div>
</td>
</tr>
<tr id="i53" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#longHashCode-long-long-long-">longHashCode</a></span>(long&nbsp;key1,
long&nbsp;key2,
long&nbsp;key3)</code>
<div class="block">Returns the hash code for a long-long-long triple.</div>
</td>
</tr>
<tr id="i54" class="altColor">
<td class="colFirst"><code>static byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#max-byte:A-">max</a></span>(byte[]&nbsp;array)</code>&nbsp;</td>
</tr>
<tr id="i55" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#nCopies-int-org.apache.sysds.common.Types.ValueType-">nCopies</a></span>(int&nbsp;n,
<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>&nbsp;vt)</code>&nbsp;</td>
</tr>
<tr id="i56" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#nextIntPow2-int-">nextIntPow2</a></span>(int&nbsp;in)</code>&nbsp;</td>
</tr>
<tr id="i57" class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#objectToDouble-org.apache.sysds.common.Types.ValueType-java.lang.Object-">objectToDouble</a></span>(<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>&nbsp;vt,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;in)</code>&nbsp;</td>
</tr>
<tr id="i58" class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#objectToObject-org.apache.sysds.common.Types.ValueType-java.lang.Object-">objectToObject</a></span>(<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>&nbsp;vt,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;in)</code>&nbsp;</td>
</tr>
<tr id="i59" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#objectToObject-org.apache.sysds.common.Types.ValueType-java.lang.Object-boolean-">objectToObject</a></span>(<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>&nbsp;vt,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;in,
boolean&nbsp;ignoreNull)</code>&nbsp;</td>
</tr>
<tr id="i60" class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#objectToString-java.lang.Object-">objectToString</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;in)</code>&nbsp;</td>
</tr>
<tr id="i61" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#objectToString-java.lang.Object-boolean-">objectToString</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;in,
boolean&nbsp;ignoreNull)</code>
<div class="block">Convert object to string</div>
</td>
</tr>
<tr id="i62" class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#parseMemorySize-java.lang.String-">parseMemorySize</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;arg)</code>
<div class="block">Parses a memory size with optional g/m/k quantifiers into its
number representation.</div>
</td>
</tr>
<tr id="i63" class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#parseToDouble-java.lang.String-java.util.Set-">parseToDouble</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;str,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;isNan)</code>
<div class="block">Safe double parsing including handling of NAs.</div>
</td>
</tr>
<tr id="i64" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#parseToInt-java.lang.String-">parseToInt</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;str)</code>&nbsp;</td>
</tr>
<tr id="i65" class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#parseToLong-java.lang.String-">parseToLong</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;str)</code>&nbsp;</td>
</tr>
<tr id="i66" class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#pow-int-int-">pow</a></span>(int&nbsp;base,
int&nbsp;exp)</code>&nbsp;</td>
</tr>
<tr id="i67" class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#prod-int:A-">prod</a></span>(int[]&nbsp;arr)</code>&nbsp;</td>
</tr>
<tr id="i68" class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#prod-int:A-int-">prod</a></span>(int[]&nbsp;arr,
int&nbsp;off)</code>&nbsp;</td>
</tr>
<tr id="i69" class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#prod-long:A-">prod</a></span>(long[]&nbsp;arr)</code>&nbsp;</td>
</tr>
<tr id="i70" class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#quote-java.lang.String-">quote</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;s)</code>&nbsp;</td>
</tr>
<tr id="i71" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#roundToNext-int-int-">roundToNext</a></span>(int&nbsp;val,
int&nbsp;factor)</code>&nbsp;</td>
</tr>
<tr id="i72" class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#stringToObject-org.apache.sysds.common.Types.ValueType-java.lang.String-">stringToObject</a></span>(<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>&nbsp;vt,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;in)</code>&nbsp;</td>
</tr>
<tr id="i73" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#stringToValueType-java.lang.String:A-">stringToValueType</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;schemaValues)</code>
<div class="block">Generates a ValueType array from a String array</div>
</td>
</tr>
<tr id="i74" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#toInt-double-">toInt</a></span>(double&nbsp;val)</code>&nbsp;</td>
</tr>
<tr id="i75" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#toInt-java.lang.Object-">toInt</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;obj)</code>&nbsp;</td>
</tr>
<tr id="i76" class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#toLong-double-">toLong</a></span>(double&nbsp;val)</code>&nbsp;</td>
</tr>
<tr id="i77" class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#toMillis-java.lang.String-">toMillis</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dateString)</code>&nbsp;</td>
</tr>
<tr id="i78" class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/util/UtilFunctions.html#unquote-java.lang.String-">unquote</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;s)</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="DOUBLE_EPS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DOUBLE_EPS</h4>
<pre>public static final&nbsp;double DOUBLE_EPS</pre>
</li>
</ul>
<a name="ADD_PRIME1">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ADD_PRIME1</h4>
<pre>public static final&nbsp;long ADD_PRIME1</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.apache.sysds.runtime.util.UtilFunctions.ADD_PRIME1">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="DIVIDE_PRIME">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>DIVIDE_PRIME</h4>
<pre>public static final&nbsp;int DIVIDE_PRIME</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.apache.sysds.runtime.util.UtilFunctions.DIVIDE_PRIME">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="UtilFunctions--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>UtilFunctions</h4>
<pre>public&nbsp;UtilFunctions()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="intHashCode-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>intHashCode</h4>
<pre>public static&nbsp;int&nbsp;intHashCode(int&nbsp;key1,
int&nbsp;key2)</pre>
</li>
</ul>
<a name="intHashCodeRobust-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>intHashCodeRobust</h4>
<pre>public static&nbsp;int&nbsp;intHashCodeRobust(int&nbsp;key1,
int&nbsp;key2)</pre>
</li>
</ul>
<a name="longHashCode-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>longHashCode</h4>
<pre>public static&nbsp;int&nbsp;longHashCode(long&nbsp;key1)</pre>
</li>
</ul>
<a name="longHashCode-long-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>longHashCode</h4>
<pre>public static&nbsp;int&nbsp;longHashCode(long&nbsp;key1,
long&nbsp;key2)</pre>
<div class="block">Returns the hash code for a long-long pair. This is the default
hash function for the keys of a distributed matrix in MR/Spark.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>key1</code> - first long key</dd>
<dd><code>key2</code> - second long key</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>hash code</dd>
</dl>
</li>
</ul>
<a name="longHashCode-long-long-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>longHashCode</h4>
<pre>public static&nbsp;int&nbsp;longHashCode(long&nbsp;key1,
long&nbsp;key2,
long&nbsp;key3)</pre>
<div class="block">Returns the hash code for a long-long-long triple. This is the default
hash function for the keys of a distributed matrix in MR/Spark.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>key1</code> - first long key</dd>
<dd><code>key2</code> - second long key</dd>
<dd><code>key3</code> - third long key</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>hash code</dd>
</dl>
</li>
</ul>
<a name="nextIntPow2-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nextIntPow2</h4>
<pre>public static&nbsp;int&nbsp;nextIntPow2(int&nbsp;in)</pre>
</li>
</ul>
<a name="pow-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pow</h4>
<pre>public static&nbsp;long&nbsp;pow(int&nbsp;base,
int&nbsp;exp)</pre>
</li>
</ul>
<a name="computeBlockIndex-long-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeBlockIndex</h4>
<pre>public static&nbsp;long&nbsp;computeBlockIndex(long&nbsp;cellIndex,
int&nbsp;blockSize)</pre>
<div class="block">Computes the 1-based block index based on the global cell index and block size meta
data. See computeCellIndex for the inverse operation.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>cellIndex</code> - global cell index</dd>
<dd><code>blockSize</code> - block size</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>1-based block index</dd>
</dl>
</li>
</ul>
<a name="computeCellInBlock-long-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeCellInBlock</h4>
<pre>public static&nbsp;int&nbsp;computeCellInBlock(long&nbsp;cellIndex,
int&nbsp;blockSize)</pre>
<div class="block">Computes the 0-based cell-in-block index based on the global cell index and block
size meta data. See computeCellIndex for the inverse operation.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>cellIndex</code> - global cell index</dd>
<dd><code>blockSize</code> - block size</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>0-based cell-in-block index</dd>
</dl>
</li>
</ul>
<a name="computeCellIndex-long-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeCellIndex</h4>
<pre>public static&nbsp;long&nbsp;computeCellIndex(long&nbsp;blockIndex,
int&nbsp;blockSize,
int&nbsp;cellInBlock)</pre>
<div class="block">Computes the global 1-based cell index based on the block index, block size meta data,
and specific 0-based in-block cell index.
NOTE: this is equivalent to cellIndexCalculation.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>blockIndex</code> - block index</dd>
<dd><code>blockSize</code> - block size</dd>
<dd><code>cellInBlock</code> - 0-based cell-in-block index</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>global 1-based cell index</dd>
</dl>
</li>
</ul>
<a name="computeBlockSize-long-long-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeBlockSize</h4>
<pre>public static&nbsp;int&nbsp;computeBlockSize(long&nbsp;len,
long&nbsp;blockIndex,
long&nbsp;blockSize)</pre>
<div class="block">Computes the actual block size based on matrix dimension, block index, and block size
meta data. For boundary blocks, the actual block size is less or equal than the block
size meta data; otherwise they are identical.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>len</code> - matrix dimension</dd>
<dd><code>blockIndex</code> - block index</dd>
<dd><code>blockSize</code> - block size metadata</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>actual block size</dd>
</dl>
</li>
</ul>
<a name="computeNextTensorIndexes-org.apache.sysds.runtime.meta.TensorCharacteristics-long:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeNextTensorIndexes</h4>
<pre>public static&nbsp;long[]&nbsp;computeNextTensorIndexes(<a href="../../../../../org/apache/sysds/runtime/meta/TensorCharacteristics.html" title="class in org.apache.sysds.runtime.meta">TensorCharacteristics</a>&nbsp;tc,
long[]&nbsp;ix)</pre>
<div class="block">Computes the next tensor indexes array.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>tc</code> - the tensor characteristics</dd>
<dd><code>ix</code> - the tensor indexes array (will be changed)</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the tensor indexes array (changed)</dd>
</dl>
</li>
</ul>
<a name="computeTensorIndexes-org.apache.sysds.runtime.meta.TensorCharacteristics-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeTensorIndexes</h4>
<pre>public static&nbsp;long[]&nbsp;computeTensorIndexes(<a href="../../../../../org/apache/sysds/runtime/meta/TensorCharacteristics.html" title="class in org.apache.sysds.runtime.meta">TensorCharacteristics</a>&nbsp;tc,
long&nbsp;blockIndex)</pre>
<div class="block">Computes the tensor indexes array given a blockIndex we ant to compute. Note that if a sequence of tensor indexes
array will be computed, it is faster to use
<code>UtilFunctions.computeNextTensorIndexes(TensorCharacteristics,long[])</code>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>tc</code> - the tensor characteristics</dd>
<dd><code>blockIndex</code> - the number of the block ([0-<code>tc.getNumBlocks()</code>[ valid)</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the tensor index array</dd>
</dl>
</li>
</ul>
<a name="computeSliceInfo-org.apache.sysds.runtime.meta.TensorCharacteristics-long:A-int:A-int:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeSliceInfo</h4>
<pre>public static&nbsp;void&nbsp;computeSliceInfo(<a href="../../../../../org/apache/sysds/runtime/meta/TensorCharacteristics.html" title="class in org.apache.sysds.runtime.meta">TensorCharacteristics</a>&nbsp;tc,
long[]&nbsp;blockIx,
int[]&nbsp;outDims,
int[]&nbsp;offset)</pre>
<div class="block">Computes the slice dimensions and offsets for the block slice of another tensor with the size given by
<code>TensorCharacteristics</code>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>tc</code> - tensor characteristics of the block to slice</dd>
<dd><code>blockIx</code> - the tensor block index</dd>
<dd><code>outDims</code> - the slice dimension size</dd>
<dd><code>offset</code> - the offset where the slice should start</dd>
</dl>
</li>
</ul>
<a name="computeBlockNumber-int:A-long:A-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeBlockNumber</h4>
<pre>public static&nbsp;long&nbsp;computeBlockNumber(int[]&nbsp;ix,
long[]&nbsp;dims,
int&nbsp;blen)</pre>
<div class="block">Calculates the number of the block this index refers to (basically a linearisation).</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ix</code> - the dimensional indexes</dd>
<dd><code>dims</code> - length of dimensions</dd>
<dd><code>blen</code> - length of blocks</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the number of the block</dd>
</dl>
</li>
</ul>
<a name="getBalancedBlockSizesDefault-int-int-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBalancedBlockSizesDefault</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&gt;&nbsp;getBalancedBlockSizesDefault(int&nbsp;len,
int&nbsp;k,
boolean&nbsp;constK)</pre>
</li>
</ul>
<a name="getAlignedBlockSizes-int-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAlignedBlockSizes</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&gt;&nbsp;getAlignedBlockSizes(int&nbsp;len,
int&nbsp;k,
int&nbsp;align)</pre>
</li>
</ul>
<a name="isInBlockRange-org.apache.sysds.runtime.matrix.data.MatrixIndexes-int-long-long-long-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isInBlockRange</h4>
<pre>public static&nbsp;boolean&nbsp;isInBlockRange(<a href="../../../../../org/apache/sysds/runtime/matrix/data/MatrixIndexes.html" title="class in org.apache.sysds.runtime.matrix.data">MatrixIndexes</a>&nbsp;ix,
int&nbsp;blen,
long&nbsp;rl,
long&nbsp;ru,
long&nbsp;cl,
long&nbsp;cu)</pre>
</li>
</ul>
<a name="isInFrameBlockRange-java.lang.Long-int-long-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isInFrameBlockRange</h4>
<pre>public static&nbsp;boolean&nbsp;isInFrameBlockRange(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&nbsp;ix,
int&nbsp;blen,
long&nbsp;rl,
long&nbsp;ru)</pre>
</li>
</ul>
<a name="isInBlockRange-org.apache.sysds.runtime.matrix.data.MatrixIndexes-int-org.apache.sysds.runtime.util.IndexRange-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isInBlockRange</h4>
<pre>public static&nbsp;boolean&nbsp;isInBlockRange(<a href="../../../../../org/apache/sysds/runtime/matrix/data/MatrixIndexes.html" title="class in org.apache.sysds.runtime.matrix.data">MatrixIndexes</a>&nbsp;ix,
int&nbsp;blen,
<a href="../../../../../org/apache/sysds/runtime/util/IndexRange.html" title="class in org.apache.sysds.runtime.util">IndexRange</a>&nbsp;ixrange)</pre>
</li>
</ul>
<a name="isInFrameBlockRange-java.lang.Long-int-org.apache.sysds.runtime.util.IndexRange-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isInFrameBlockRange</h4>
<pre>public static&nbsp;boolean&nbsp;isInFrameBlockRange(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&nbsp;ix,
int&nbsp;blen,
<a href="../../../../../org/apache/sysds/runtime/util/IndexRange.html" title="class in org.apache.sysds.runtime.util">IndexRange</a>&nbsp;ixrange)</pre>
</li>
</ul>
<a name="getSelectedRangeForZeroOut-org.apache.sysds.runtime.instructions.spark.data.IndexedMatrixValue-int-org.apache.sysds.runtime.util.IndexRange-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSelectedRangeForZeroOut</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/sysds/runtime/util/IndexRange.html" title="class in org.apache.sysds.runtime.util">IndexRange</a>&nbsp;getSelectedRangeForZeroOut(<a href="../../../../../org/apache/sysds/runtime/instructions/spark/data/IndexedMatrixValue.html" title="class in org.apache.sysds.runtime.instructions.spark.data">IndexedMatrixValue</a>&nbsp;in,
int&nbsp;blen,
<a href="../../../../../org/apache/sysds/runtime/util/IndexRange.html" title="class in org.apache.sysds.runtime.util">IndexRange</a>&nbsp;indexRange)</pre>
</li>
</ul>
<a name="getSelectedRangeForZeroOut-org.apache.sysds.runtime.matrix.data.Pair-int-org.apache.sysds.runtime.util.IndexRange-long-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSelectedRangeForZeroOut</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/sysds/runtime/util/IndexRange.html" title="class in org.apache.sysds.runtime.util">IndexRange</a>&nbsp;getSelectedRangeForZeroOut(<a href="../../../../../org/apache/sysds/runtime/matrix/data/Pair.html" title="class in org.apache.sysds.runtime.matrix.data">Pair</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>,<a href="../../../../../org/apache/sysds/runtime/matrix/data/FrameBlock.html" title="class in org.apache.sysds.runtime.matrix.data">FrameBlock</a>&gt;&nbsp;in,
int&nbsp;blen,
<a href="../../../../../org/apache/sysds/runtime/util/IndexRange.html" title="class in org.apache.sysds.runtime.util">IndexRange</a>&nbsp;indexRange,
long&nbsp;lSrcRowIndex,
long&nbsp;lDestRowIndex)</pre>
</li>
</ul>
<a name="parseToDouble-java.lang.String-java.util.Set-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parseToDouble</h4>
<pre>public static&nbsp;double&nbsp;parseToDouble(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;str,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;isNan)</pre>
<div class="block">Safe double parsing including handling of NAs. Previously, we also
used this wrapper for handling thread contention in multi-threaded
environments because Double.parseDouble relied on a synchronized cache
(which was replaced with thread-local caches in JDK8).</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>str</code> - string to parse to double</dd>
<dd><code>isNan</code> - collection of Nan string which if encountered should be parsed to nan value</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>double value</dd>
</dl>
</li>
</ul>
<a name="parseToInt-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parseToInt</h4>
<pre>public static&nbsp;int&nbsp;parseToInt(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;str)</pre>
</li>
</ul>
<a name="parseToLong-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parseToLong</h4>
<pre>public static&nbsp;long&nbsp;parseToLong(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;str)</pre>
</li>
</ul>
<a name="toInt-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toInt</h4>
<pre>public static&nbsp;int&nbsp;toInt(double&nbsp;val)</pre>
</li>
</ul>
<a name="toLong-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toLong</h4>
<pre>public static&nbsp;long&nbsp;toLong(double&nbsp;val)</pre>
</li>
</ul>
<a name="toInt-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toInt</h4>
<pre>public static&nbsp;int&nbsp;toInt(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;obj)</pre>
</li>
</ul>
<a name="getSeqLength-double-double-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSeqLength</h4>
<pre>public static&nbsp;long&nbsp;getSeqLength(double&nbsp;from,
double&nbsp;to,
double&nbsp;incr)</pre>
</li>
</ul>
<a name="getSeqLength-double-double-double-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSeqLength</h4>
<pre>public static&nbsp;long&nbsp;getSeqLength(double&nbsp;from,
double&nbsp;to,
double&nbsp;incr,
boolean&nbsp;check)</pre>
</li>
</ul>
<a name="getSeqList-int-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSeqList</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&gt;&nbsp;getSeqList(int&nbsp;low,
int&nbsp;up,
int&nbsp;incr)</pre>
<div class="block">Obtain sequence list</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>low</code> - lower bound (inclusive)</dd>
<dd><code>up</code> - upper bound (inclusive)</dd>
<dd><code>incr</code> - increment</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>list of integers</dd>
</dl>
</li>
</ul>
<a name="getSeqArray-int-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSeqArray</h4>
<pre>public static&nbsp;int[]&nbsp;getSeqArray(int&nbsp;low,
int&nbsp;up,
int&nbsp;incr)</pre>
<div class="block">Obtain sequence array</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>low</code> - lower bound (inclusive)</dd>
<dd><code>up</code> - upper bound (inclusive)</dd>
<dd><code>incr</code> - increment</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>array of integers</dd>
</dl>
</li>
</ul>
<a name="roundToNext-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>roundToNext</h4>
<pre>public static&nbsp;int&nbsp;roundToNext(int&nbsp;val,
int&nbsp;factor)</pre>
</li>
</ul>
<a name="doubleToObject-org.apache.sysds.common.Types.ValueType-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>doubleToObject</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;doubleToObject(<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>&nbsp;vt,
double&nbsp;in)</pre>
</li>
</ul>
<a name="doubleToObject-org.apache.sysds.common.Types.ValueType-double-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>doubleToObject</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;doubleToObject(<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>&nbsp;vt,
double&nbsp;in,
boolean&nbsp;sparse)</pre>
</li>
</ul>
<a name="stringToObject-org.apache.sysds.common.Types.ValueType-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stringToObject</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;stringToObject(<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>&nbsp;vt,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;in)</pre>
</li>
</ul>
<a name="objectToDouble-org.apache.sysds.common.Types.ValueType-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>objectToDouble</h4>
<pre>public static&nbsp;double&nbsp;objectToDouble(<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>&nbsp;vt,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;in)</pre>
</li>
</ul>
<a name="objectToString-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>objectToString</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;objectToString(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;in)</pre>
</li>
</ul>
<a name="objectToString-java.lang.Object-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>objectToString</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;objectToString(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;in,
boolean&nbsp;ignoreNull)</pre>
<div class="block">Convert object to string</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>in</code> - object</dd>
<dd><code>ignoreNull</code> - If this flag has set, it will ignore null. This flag is mainly used in merge functionality to override data with "null" data.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>string representation of object</dd>
</dl>
</li>
</ul>
<a name="objectToObject-org.apache.sysds.common.Types.ValueType-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>objectToObject</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;objectToObject(<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>&nbsp;vt,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;in)</pre>
</li>
</ul>
<a name="objectToObject-org.apache.sysds.common.Types.ValueType-java.lang.Object-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>objectToObject</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;objectToObject(<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>&nbsp;vt,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;in,
boolean&nbsp;ignoreNull)</pre>
</li>
</ul>
<a name="compareTo-org.apache.sysds.common.Types.ValueType-java.lang.Object-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareTo</h4>
<pre>public static&nbsp;int&nbsp;compareTo(<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>&nbsp;vt,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;in1,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;in2)</pre>
</li>
</ul>
<a name="compareVersion-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareVersion</h4>
<pre>public static&nbsp;int&nbsp;compareVersion(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;version1,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;version2)</pre>
<div class="block">Compares two version strings of format x.y.z, where x is major,
y is minor, and z is maintenance release.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>version1</code> - first version string</dd>
<dd><code>version2</code> - second version string</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>1 if version1 greater, -1 if version2 greater, 0 if equal</dd>
</dl>
</li>
</ul>
<a name="isIntegerNumber-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isIntegerNumber</h4>
<pre>public static&nbsp;boolean&nbsp;isIntegerNumber(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;str)</pre>
</li>
</ul>
<a name="isSpecial-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isSpecial</h4>
<pre>public static&nbsp;boolean&nbsp;isSpecial(double&nbsp;value)</pre>
</li>
</ul>
<a name="getSortedSampleIndexes-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSortedSampleIndexes</h4>
<pre>public static&nbsp;int[]&nbsp;getSortedSampleIndexes(int&nbsp;range,
int&nbsp;sampleSize)</pre>
</li>
</ul>
<a name="getSortedSampleIndexes-int-int-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSortedSampleIndexes</h4>
<pre>public static&nbsp;int[]&nbsp;getSortedSampleIndexes(int&nbsp;range,
int&nbsp;sampleSize,
long&nbsp;seed)</pre>
</li>
</ul>
<a name="max-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>max</h4>
<pre>public static&nbsp;byte&nbsp;max(byte[]&nbsp;array)</pre>
</li>
</ul>
<a name="unquote-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unquote</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;unquote(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;s)</pre>
</li>
</ul>
<a name="quote-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>quote</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;quote(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;s)</pre>
</li>
</ul>
<a name="getAsciiAtIdx-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAsciiAtIdx</h4>
<pre>public static&nbsp;int&nbsp;getAsciiAtIdx(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;s,
int&nbsp;idx)</pre>
</li>
</ul>
<a name="parseMemorySize-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parseMemorySize</h4>
<pre>public static&nbsp;long&nbsp;parseMemorySize(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;arg)</pre>
<div class="block">Parses a memory size with optional g/m/k quantifiers into its
number representation.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>arg</code> - memory size as readable string</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>byte count of memory size</dd>
</dl>
</li>
</ul>
<a name="formatMemorySize-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>formatMemorySize</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;formatMemorySize(long&nbsp;arg)</pre>
<div class="block">Format a memory size with g/m/k quantifiers into its
number representation.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>arg</code> - byte count of memory size</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>memory size as readable string</dd>
</dl>
</li>
</ul>
<a name="getDouble-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDouble</h4>
<pre>public static&nbsp;double&nbsp;getDouble(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;obj)</pre>
</li>
</ul>
<a name="isNonZero-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNonZero</h4>
<pre>public static&nbsp;boolean&nbsp;isNonZero(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;obj)</pre>
</li>
</ul>
<a name="computeNnz-double:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeNnz</h4>
<pre>public static&nbsp;int&nbsp;computeNnz(double[]&nbsp;a,
int&nbsp;ai,
int&nbsp;len)</pre>
</li>
</ul>
<a name="computeNnz-float:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeNnz</h4>
<pre>public static&nbsp;int&nbsp;computeNnz(float[]&nbsp;a,
int&nbsp;ai,
int&nbsp;len)</pre>
</li>
</ul>
<a name="computeNnz-long:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeNnz</h4>
<pre>public static&nbsp;int&nbsp;computeNnz(long[]&nbsp;a,
int&nbsp;ai,
int&nbsp;len)</pre>
</li>
</ul>
<a name="computeNnz-int:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeNnz</h4>
<pre>public static&nbsp;int&nbsp;computeNnz(int[]&nbsp;a,
int&nbsp;ai,
int&nbsp;len)</pre>
</li>
</ul>
<a name="computeNnz-java.util.BitSet-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeNnz</h4>
<pre>public static&nbsp;int&nbsp;computeNnz(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/BitSet.html?is-external=true" title="class or interface in java.util">BitSet</a>&nbsp;a,
int&nbsp;ai,
int&nbsp;len)</pre>
</li>
</ul>
<a name="computeNnz-java.lang.String:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeNnz</h4>
<pre>public static&nbsp;int&nbsp;computeNnz(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;a,
int&nbsp;ai,
int&nbsp;len)</pre>
</li>
</ul>
<a name="computeNnz-org.apache.sysds.runtime.data.SparseBlock-int:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeNnz</h4>
<pre>public static&nbsp;long&nbsp;computeNnz(<a href="../../../../../org/apache/sysds/runtime/data/SparseBlock.html" title="class in org.apache.sysds.runtime.data">SparseBlock</a>&nbsp;a,
int[]&nbsp;aix,
int&nbsp;ai,
int&nbsp;alen)</pre>
</li>
</ul>
<a name="nCopies-int-org.apache.sysds.common.Types.ValueType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nCopies</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>[]&nbsp;nCopies(int&nbsp;n,
<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>&nbsp;vt)</pre>
</li>
</ul>
<a name="frequency-org.apache.sysds.common.Types.ValueType:A-org.apache.sysds.common.Types.ValueType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>frequency</h4>
<pre>public static&nbsp;int&nbsp;frequency(<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>[]&nbsp;schema,
<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>&nbsp;vt)</pre>
</li>
</ul>
<a name="copyOf-org.apache.sysds.common.Types.ValueType:A-org.apache.sysds.common.Types.ValueType:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copyOf</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>[]&nbsp;copyOf(<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>[]&nbsp;schema1,
<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>[]&nbsp;schema2)</pre>
</li>
</ul>
<a name="countNonZeros-double:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>countNonZeros</h4>
<pre>public static&nbsp;int&nbsp;countNonZeros(double[]&nbsp;data,
int&nbsp;pos,
int&nbsp;len)</pre>
</li>
</ul>
<a name="containsZero-double:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>containsZero</h4>
<pre>public static&nbsp;boolean&nbsp;containsZero(double[]&nbsp;data,
int&nbsp;pos,
int&nbsp;len)</pre>
</li>
</ul>
<a name="prod-long:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>prod</h4>
<pre>public static&nbsp;long&nbsp;prod(long[]&nbsp;arr)</pre>
</li>
</ul>
<a name="prod-int:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>prod</h4>
<pre>public static&nbsp;long&nbsp;prod(int[]&nbsp;arr)</pre>
</li>
</ul>
<a name="prod-int:A-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>prod</h4>
<pre>public static&nbsp;long&nbsp;prod(int[]&nbsp;arr,
int&nbsp;off)</pre>
</li>
</ul>
<a name="getBlockBounds-org.apache.sysds.runtime.data.TensorIndexes-long:A-int-int:A-int:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBlockBounds</h4>
<pre>public static&nbsp;void&nbsp;getBlockBounds(<a href="../../../../../org/apache/sysds/runtime/data/TensorIndexes.html" title="class in org.apache.sysds.runtime.data">TensorIndexes</a>&nbsp;ix,
long[]&nbsp;dims,
int&nbsp;blen,
int[]&nbsp;lower,
int[]&nbsp;upper)</pre>
</li>
</ul>
<a name="toMillis-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toMillis</h4>
<pre>public static&nbsp;long&nbsp;toMillis(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dateString)</pre>
</li>
</ul>
<a name="getSplittedStringAsArray-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSplittedStringAsArray</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;getSplittedStringAsArray(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;input)</pre>
</li>
</ul>
<a name="jaccardSim-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>jaccardSim</h4>
<pre>public static&nbsp;double&nbsp;jaccardSim(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;x,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;y)</pre>
</li>
</ul>
<a name="columnStringToCSVString-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>columnStringToCSVString</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;columnStringToCSVString(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;input,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;separator)</pre>
</li>
</ul>
<a name="generateRandomFrameBlock-int-int-org.apache.sysds.common.Types.ValueType:A-java.util.Random-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>generateRandomFrameBlock</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/sysds/runtime/matrix/data/FrameBlock.html" title="class in org.apache.sysds.runtime.matrix.data">FrameBlock</a>&nbsp;generateRandomFrameBlock(int&nbsp;rows,
int&nbsp;cols,
<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>[]&nbsp;schema,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</a>&nbsp;random)</pre>
<div class="block">Generates a random FrameBlock with given parameters.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rows</code> - frame rows</dd>
<dd><code>cols</code> - frame cols</dd>
<dd><code>schema</code> - frame schema</dd>
<dd><code>random</code> - random number generator</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>FrameBlock</dd>
</dl>
</li>
</ul>
<a name="generateRandomValueFromValueType-org.apache.sysds.common.Types.ValueType-java.util.Random-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>generateRandomValueFromValueType</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;generateRandomValueFromValueType(<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>&nbsp;valueType,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</a>&nbsp;random)</pre>
<div class="block">Generates a random value for a given Value Type</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>valueType</code> - the ValueType of which to generate the value</dd>
<dd><code>random</code> - random number generator</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Object</dd>
</dl>
</li>
</ul>
<a name="stringToValueType-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>stringToValueType</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/sysds/common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a>[]&nbsp;stringToValueType(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;schemaValues)</pre>
<div class="block">Generates a ValueType array from a String array</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>schemaValues</code> - the string schema of which to generate the ValueType</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>ValueType[]</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/UtilFunctions.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/sysds/runtime/util/UniformPRNGenerator.html" title="class in org.apache.sysds.runtime.util"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/sysds/runtime/util/UtilFunctions.html" target="_top">Frames</a></li>
<li><a href="UtilFunctions.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2021 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>