blob: 2acd2885ad122de7f6a0393e67bcf548a1dd2f9f [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>DenseBlock (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="DenseBlock (SystemDS 2.1.0-SNAPSHOT API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":9,"i7":6,"i8":6,"i9":10,"i10":10,"i11":6,"i12":10,"i13":6,"i14":6,"i15":6,"i16":6,"i17":6,"i18":6,"i19":6,"i20":6,"i21":10,"i22":10,"i23":6,"i24":6,"i25":6,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":6,"i32":10,"i33":6,"i34":6,"i35":6,"i36":6,"i37":6,"i38":6,"i39":6,"i40":10,"i41":6,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":6,"i48":10,"i49":6,"i50":6};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],4:["t3","Abstract 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/DenseBlock.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/data/DataTensorBlock.html" title="class in org.apache.sysds.runtime.data"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.Type.html" title="enum in org.apache.sysds.runtime.data"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/sysds/runtime/data/DenseBlock.html" target="_top">Frames</a></li>
<li><a href="DenseBlock.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><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&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.data</div>
<h2 title="Class DenseBlock" class="title">Class DenseBlock</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.data.DenseBlock</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../../org/apache/sysds/runtime/data/DenseBlockDRB.html" title="class in org.apache.sysds.runtime.data">DenseBlockDRB</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlockLDRB.html" title="class in org.apache.sysds.runtime.data">DenseBlockLDRB</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <span class="typeNameLabel">DenseBlock</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>
implements <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre>
<div class="block">This DenseBlock is an abstraction for different dense, row-major
matrix formats. For efficient dense operations, this API does not
expose a row but a row-block abstraction, where a block can contain
one or many contiguous rows.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../serialized-form.html#org.apache.sysds.runtime.data.DenseBlock">Serialized Form</a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.Type.html" title="enum in org.apache.sysds.runtime.data">DenseBlock.Type</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="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract 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>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#blockSize--">blockSize</a></span>()</code>
<div class="block">Get the number of rows per block, except last one.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#blockSize-int-">blockSize</a></span>(int&nbsp;bix)</code>
<div class="block">Get the number of rows of the given block.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>abstract long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#capacity--">capacity</a></span>()</code>
<div class="block">Get the total length of allocated blocks.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>abstract long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#countNonZeros--">countNonZeros</a></span>()</code>
<div class="block">Compute the number of non-zero values, which potentially
makes a full pass over the underlying blocks.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#countNonZeros-int-">countNonZeros</a></span>(int&nbsp;r)</code>
<div class="block">Compute the number of non-zero values for the given row,
which potentially makes a full pass over the underlying row.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>abstract long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#countNonZeros-int-int-int-int-">countNonZeros</a></span>(int&nbsp;rl,
int&nbsp;ru,
int&nbsp;cl,
int&nbsp;cu)</code>
<div class="block">Compute the number of non-zero values, which potentially
makes a full pass over the underlying blocks in the row range.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#estimateMemory-long-long-">estimateMemory</a></span>(long&nbsp;nrows,
long&nbsp;ncols)</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>abstract double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#get-int:A-">get</a></span>(int[]&nbsp;ix)</code>
<div class="block">Get the value of a given cell</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>abstract double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#get-int-int-">get</a></span>(int&nbsp;r,
int&nbsp;c)</code>
<div class="block">Get the value for a given row and column.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#getCumODims-int-">getCumODims</a></span>(int&nbsp;i)</code>
<div class="block">Get the ith cumulative dimensions size of the dense block, without row.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#getDim-int-">getDim</a></span>(int&nbsp;i)</code>
<div class="block">Get the ith dimensions size of the dense block.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>abstract long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#getLong-int:A-">getLong</a></span>(int[]&nbsp;ix)</code>
<div class="block">Get the value of a given cell as long</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#getNextIndexes-int:A-">getNextIndexes</a></span>(int[]&nbsp;ix)</code>
<div class="block">Calculates the next index array.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>abstract <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/data/DenseBlock.html#getString-int:A-">getString</a></span>(int[]&nbsp;ix)</code>
<div class="block">Get the value of a given cell as a String</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#incr-int-int-">incr</a></span>(int&nbsp;r,
int&nbsp;c)</code>
<div class="block">Increments the given value for a given row and column.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#incr-int-int-double-">incr</a></span>(int&nbsp;r,
int&nbsp;c,
double&nbsp;delta)</code>
<div class="block">Increments the given value for a given row and column
by delta.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#index-int-">index</a></span>(int&nbsp;r)</code>
<div class="block">Get the block index for a given row.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#isContiguous--">isContiguous</a></span>()</code>
<div class="block">Indicates if the dense block has a single
underlying block, i.e., if numBlocks==1.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#isContiguous-int-int-">isContiguous</a></span>(int&nbsp;rl,
int&nbsp;ru)</code>
<div class="block">Indicates if the dense block has a single
underlying block for the given row range.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#isNumeric--">isNumeric</a></span>()</code>
<div class="block">Indicates if the dense block is numeric.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#numBlocks--">numBlocks</a></span>()</code>
<div class="block">Get the number of allocated blocks.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#numDims--">numDims</a></span>()</code>
<div class="block">Get the number of dimensions.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#numRows--">numRows</a></span>()</code>
<div class="block">Get the number of rows.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#pos-int-">pos</a></span>(int&nbsp;r)</code>
<div class="block">Get the position for a given row within
its associated block.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#pos-int:A-">pos</a></span>(int[]&nbsp;ix)</code>
<div class="block">Get the position for a given cell
within the associated block.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#pos-int-int-">pos</a></span>(int&nbsp;r,
int&nbsp;c)</code>
<div class="block">Get the position for a given row and column
within the associated block.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#reset--">reset</a></span>()</code>
<div class="block">Resets the dense block by deleting non-zero values.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#reset-int:A-">reset</a></span>(int[]&nbsp;dims)</code>
<div class="block">Resets the dense block by deleting non-zero values.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#reset-int:A-double-">reset</a></span>(int[]&nbsp;dims,
double&nbsp;v)</code>
<div class="block">Resets the dense block by deleting non-zeros.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#reset-int-int-">reset</a></span>(int&nbsp;rlen,
int&nbsp;clen)</code>
<div class="block">Resets the dense block by deleting non-zeros.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#reset-int-int:A-">reset</a></span>(int&nbsp;rlen,
int[]&nbsp;odims)</code>
<div class="block">Resets the dense block by deleting non-zeros.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#reset-int-int:A-double-">reset</a></span>(int&nbsp;rlen,
int[]&nbsp;odims,
double&nbsp;v)</code>
<div class="block">Resets the dense block by setting the given value.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#reset-int-int-double-">reset</a></span>(int&nbsp;rlen,
int&nbsp;clen,
double&nbsp;v)</code>
<div class="block">Resets the dense block by setting the given value.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-org.apache.sysds.runtime.data.DenseBlock-">set</a></span>(<a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;db)</code>
<div class="block">Copy the given dense block.</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-double-">set</a></span>(double&nbsp;v)</code>
<div class="block">Set the given value for the entire dense block (fill).</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-int:A-double-">set</a></span>(int[]&nbsp;ix,
double&nbsp;v)</code>
<div class="block">Set the specified cell to the given value.</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-int:A-long-">set</a></span>(int[]&nbsp;ix,
long&nbsp;v)</code>
<div class="block">Set the specified cell to the given value.</div>
</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-int:A-java.lang.String-">set</a></span>(int[]&nbsp;ix,
<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;v)</code>
<div class="block">Set the specified cell to the given value.</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code>abstract <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-int-double:A-">set</a></span>(int&nbsp;r,
double[]&nbsp;v)</code>
<div class="block">Copy the given vector into the given row.</div>
</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-int-int-double-">set</a></span>(int&nbsp;r,
int&nbsp;c,
double&nbsp;v)</code>
<div class="block">Set the given value for a given row and column.</div>
</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-int-int-int-int-org.apache.sysds.runtime.data.DenseBlock-">set</a></span>(int&nbsp;rl,
int&nbsp;ru,
int&nbsp;cl,
int&nbsp;cu,
<a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;db)</code>
<div class="block">Copy the given dense block into the specified
index range.</div>
</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-int-int-int-int-double-">set</a></span>(int&nbsp;rl,
int&nbsp;ru,
int&nbsp;cl,
int&nbsp;cu,
double&nbsp;v)</code>
<div class="block">Set the given value for an entire index range of the
dense block (fill).</div>
</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-int-org.apache.sysds.runtime.instructions.cp.KahanObject-">set</a></span>(int&nbsp;r,
<a href="../../../../../org/apache/sysds/runtime/instructions/cp/KahanObject.html" title="class in org.apache.sysds.runtime.instructions.cp">KahanObject</a>&nbsp;kbuff)</code>
<div class="block">Copy the given kahan object sum and correction
into the given row.</div>
</td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-org.apache.sysds.runtime.instructions.cp.KahanObject-">set</a></span>(<a href="../../../../../org/apache/sysds/runtime/instructions/cp/KahanObject.html" title="class in org.apache.sysds.runtime.instructions.cp">KahanObject</a>&nbsp;kbuff)</code>
<div class="block">Copy the given kahan object sum and correction.</div>
</td>
</tr>
<tr id="i44" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-java.lang.String-">set</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>
<div class="block">Set the given string for the entire dense block (fill).</div>
</td>
</tr>
<tr id="i45" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#setDims-int:A-">setDims</a></span>(int[]&nbsp;dims)</code>
<div class="block">Set the dimensions of the dense MatrixBlock.</div>
</td>
</tr>
<tr id="i46" class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#size--">size</a></span>()</code>
<div class="block">Get the length of the dense block as the product
of all dimensions.</div>
</td>
</tr>
<tr id="i47" class="rowColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#size-int-">size</a></span>(int&nbsp;bix)</code>
<div class="block">Get the length of the given block.</div>
</td>
</tr>
<tr id="i48" class="altColor">
<td class="colFirst"><code><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/data/DenseBlock.html#toString--">toString</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i49" class="rowColor">
<td class="colFirst"><code>abstract double[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#values-int-">values</a></span>(int&nbsp;r)</code>
<div class="block">Get the allocated block for the given row.</div>
</td>
</tr>
<tr id="i50" class="altColor">
<td class="colFirst"><code>abstract double[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#valuesAt-int-">valuesAt</a></span>(int&nbsp;bix)</code>
<div class="block">Get an allocated block.</div>
</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#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">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getDim-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDim</h4>
<pre>public final&nbsp;int&nbsp;getDim(int&nbsp;i)</pre>
<div class="block">Get the ith dimensions size of the dense block.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>i</code> - the number of dimension to get</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the size of the dimension</dd>
</dl>
</li>
</ul>
<a name="getCumODims-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCumODims</h4>
<pre>public final&nbsp;int&nbsp;getCumODims(int&nbsp;i)</pre>
<div class="block">Get the ith cumulative dimensions size of the dense block, without row.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>i</code> - the number of the cumulative dimension to get (0 equals the second dimension!)</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the size of the dimension cumulative with all following dimensions</dd>
</dl>
</li>
</ul>
<a name="reset--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reset</h4>
<pre>public final&nbsp;void&nbsp;reset()</pre>
<div class="block">Resets the dense block by deleting non-zero values. After this
call all countNonZeros() calls are guaranteed to return 0.</div>
</li>
</ul>
<a name="reset-int:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reset</h4>
<pre>public final&nbsp;void&nbsp;reset(int[]&nbsp;dims)</pre>
<div class="block">Resets the dense block by deleting non-zero values. After this
call all countNonZeros() calls are guaranteed to return 0. If
the new dimensions exceed the current capacity, the underlying
storage is extended accordingly.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dims</code> - length and size of dimensions.</dd>
</dl>
</li>
</ul>
<a name="reset-int:A-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reset</h4>
<pre>public final&nbsp;void&nbsp;reset(int[]&nbsp;dims,
double&nbsp;v)</pre>
<div class="block">Resets the dense block by deleting non-zeros.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dims</code> - lenth and size of dimensions</dd>
<dd><code>v</code> - value</dd>
</dl>
</li>
</ul>
<a name="reset-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reset</h4>
<pre>public final&nbsp;void&nbsp;reset(int&nbsp;rlen,
int&nbsp;clen)</pre>
<div class="block">Resets the dense block by deleting non-zeros.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rlen</code> - number of rows</dd>
<dd><code>clen</code> - number of columns</dd>
</dl>
</li>
</ul>
<a name="reset-int-int:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reset</h4>
<pre>public final&nbsp;void&nbsp;reset(int&nbsp;rlen,
int[]&nbsp;odims)</pre>
<div class="block">Resets the dense block by deleting non-zeros.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rlen</code> - number of rows</dd>
<dd><code>odims</code> - offsets of other dimensions</dd>
</dl>
</li>
</ul>
<a name="reset-int-int-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reset</h4>
<pre>public final&nbsp;void&nbsp;reset(int&nbsp;rlen,
int&nbsp;clen,
double&nbsp;v)</pre>
<div class="block">Resets the dense block by setting the given value.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rlen</code> - number of rows</dd>
<dd><code>clen</code> - number of columns</dd>
<dd><code>v</code> - value</dd>
</dl>
</li>
</ul>
<a name="reset-int-int:A-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reset</h4>
<pre>public abstract&nbsp;void&nbsp;reset(int&nbsp;rlen,
int[]&nbsp;odims,
double&nbsp;v)</pre>
<div class="block">Resets the dense block by setting the given value.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rlen</code> - number of rows</dd>
<dd><code>odims</code> - other dimensions</dd>
<dd><code>v</code> - value</dd>
</dl>
</li>
</ul>
<a name="estimateMemory-long-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>estimateMemory</h4>
<pre>public static&nbsp;double&nbsp;estimateMemory(long&nbsp;nrows,
long&nbsp;ncols)</pre>
</li>
</ul>
<a name="setDims-int:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDims</h4>
<pre>public&nbsp;void&nbsp;setDims(int[]&nbsp;dims)</pre>
<div class="block">Set the dimensions of the dense MatrixBlock.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dims</code> - The dimensions to set, first dimension is rows, second cols.</dd>
</dl>
</li>
</ul>
<a name="numRows--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>numRows</h4>
<pre>public final&nbsp;int&nbsp;numRows()</pre>
<div class="block">Get the number of rows.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>number of rows</dd>
</dl>
</li>
</ul>
<a name="numDims--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>numDims</h4>
<pre>public final&nbsp;int&nbsp;numDims()</pre>
<div class="block">Get the number of dimensions.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>number of dimensions, min 2</dd>
</dl>
</li>
</ul>
<a name="numBlocks--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>numBlocks</h4>
<pre>public abstract&nbsp;int&nbsp;numBlocks()</pre>
<div class="block">Get the number of allocated blocks.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>number of blocks</dd>
</dl>
</li>
</ul>
<a name="blockSize--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>blockSize</h4>
<pre>public abstract&nbsp;int&nbsp;blockSize()</pre>
<div class="block">Get the number of rows per block, except last one.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>number of rows in block</dd>
</dl>
</li>
</ul>
<a name="blockSize-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>blockSize</h4>
<pre>public abstract&nbsp;int&nbsp;blockSize(int&nbsp;bix)</pre>
<div class="block">Get the number of rows of the given block.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>bix</code> - block index</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>number of rows in block</dd>
</dl>
</li>
</ul>
<a name="isNumeric--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNumeric</h4>
<pre>public abstract&nbsp;boolean&nbsp;isNumeric()</pre>
<div class="block">Indicates if the dense block is numeric.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if numeric (FP, INT, BOOLEAN)</dd>
</dl>
</li>
</ul>
<a name="isContiguous--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isContiguous</h4>
<pre>public abstract&nbsp;boolean&nbsp;isContiguous()</pre>
<div class="block">Indicates if the dense block has a single
underlying block, i.e., if numBlocks==1.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if single block</dd>
</dl>
</li>
</ul>
<a name="isContiguous-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isContiguous</h4>
<pre>public abstract&nbsp;boolean&nbsp;isContiguous(int&nbsp;rl,
int&nbsp;ru)</pre>
<div class="block">Indicates if the dense block has a single
underlying block for the given row range.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rl</code> - row lower index</dd>
<dd><code>ru</code> - row upper index (inclusive)</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if single block in row range</dd>
</dl>
</li>
</ul>
<a name="size--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>size</h4>
<pre>public final&nbsp;long&nbsp;size()</pre>
<div class="block">Get the length of the dense block as the product
of all dimensions.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>length</dd>
</dl>
</li>
</ul>
<a name="size-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>size</h4>
<pre>public abstract&nbsp;int&nbsp;size(int&nbsp;bix)</pre>
<div class="block">Get the length of the given block.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>bix</code> - block index</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>length</dd>
</dl>
</li>
</ul>
<a name="capacity--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>capacity</h4>
<pre>public abstract&nbsp;long&nbsp;capacity()</pre>
<div class="block">Get the total length of allocated blocks.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>capacity</dd>
</dl>
</li>
</ul>
<a name="countNonZeros--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>countNonZeros</h4>
<pre>public abstract&nbsp;long&nbsp;countNonZeros()</pre>
<div class="block">Compute the number of non-zero values, which potentially
makes a full pass over the underlying blocks.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>number of non-zeros</dd>
</dl>
</li>
</ul>
<a name="countNonZeros-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>countNonZeros</h4>
<pre>public abstract&nbsp;int&nbsp;countNonZeros(int&nbsp;r)</pre>
<div class="block">Compute the number of non-zero values for the given row,
which potentially makes a full pass over the underlying row.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>r</code> - row index</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>number of non-zeros</dd>
</dl>
</li>
</ul>
<a name="countNonZeros-int-int-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>countNonZeros</h4>
<pre>public abstract&nbsp;long&nbsp;countNonZeros(int&nbsp;rl,
int&nbsp;ru,
int&nbsp;cl,
int&nbsp;cu)</pre>
<div class="block">Compute the number of non-zero values, which potentially
makes a full pass over the underlying blocks in the row range.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rl</code> - row lower index</dd>
<dd><code>ru</code> - row upper index (exclusive)</dd>
<dd><code>cl</code> - column lower index</dd>
<dd><code>cu</code> - column upper index (exclusive)</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>number of non-zeros</dd>
</dl>
</li>
</ul>
<a name="values-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>values</h4>
<pre>public abstract&nbsp;double[]&nbsp;values(int&nbsp;r)</pre>
<div class="block">Get the allocated block for the given row. This call
is equivalent to valuesAt(indexes(r)).</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>r</code> - row index</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>block</dd>
</dl>
</li>
</ul>
<a name="valuesAt-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>valuesAt</h4>
<pre>public abstract&nbsp;double[]&nbsp;valuesAt(int&nbsp;bix)</pre>
<div class="block">Get an allocated block.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>bix</code> - block index</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>block</dd>
</dl>
</li>
</ul>
<a name="index-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>index</h4>
<pre>public abstract&nbsp;int&nbsp;index(int&nbsp;r)</pre>
<div class="block">Get the block index for a given row.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>r</code> - row index</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>block index</dd>
</dl>
</li>
</ul>
<a name="pos-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pos</h4>
<pre>public abstract&nbsp;int&nbsp;pos(int&nbsp;r)</pre>
<div class="block">Get the position for a given row within
its associated block.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>r</code> - row index</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>block position</dd>
</dl>
</li>
</ul>
<a name="pos-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pos</h4>
<pre>public abstract&nbsp;int&nbsp;pos(int&nbsp;r,
int&nbsp;c)</pre>
<div class="block">Get the position for a given row and column
within the associated block.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>r</code> - row index</dd>
<dd><code>c</code> - column index</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>block position</dd>
</dl>
</li>
</ul>
<a name="pos-int:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pos</h4>
<pre>public abstract&nbsp;int&nbsp;pos(int[]&nbsp;ix)</pre>
<div class="block">Get the position for a given cell
within the associated block.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ix</code> - cell indexes</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>block position</dd>
</dl>
</li>
</ul>
<a name="incr-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>incr</h4>
<pre>public abstract&nbsp;void&nbsp;incr(int&nbsp;r,
int&nbsp;c)</pre>
<div class="block">Increments the given value for a given row and column.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>r</code> - row index</dd>
<dd><code>c</code> - column index</dd>
</dl>
</li>
</ul>
<a name="incr-int-int-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>incr</h4>
<pre>public abstract&nbsp;void&nbsp;incr(int&nbsp;r,
int&nbsp;c,
double&nbsp;delta)</pre>
<div class="block">Increments the given value for a given row and column
by delta.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>r</code> - row index</dd>
<dd><code>c</code> - column index</dd>
<dd><code>delta</code> - increment value</dd>
</dl>
</li>
</ul>
<a name="set-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public abstract&nbsp;<a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;set(double&nbsp;v)</pre>
<div class="block">Set the given value for the entire dense block (fill).</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>v</code> - value</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>self</dd>
</dl>
</li>
</ul>
<a name="set-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;set(<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>
<div class="block">Set the given string for the entire dense block (fill). Generally the string will be parsed, except for string
DenseBlock.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>s</code> - string</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>self</dd>
</dl>
</li>
</ul>
<a name="set-int-int-int-int-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public abstract&nbsp;<a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;set(int&nbsp;rl,
int&nbsp;ru,
int&nbsp;cl,
int&nbsp;cu,
double&nbsp;v)</pre>
<div class="block">Set the given value for an entire index range of the
dense block (fill).</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rl</code> - row lower index</dd>
<dd><code>ru</code> - row upper index (exclusive)</dd>
<dd><code>cl</code> - column lower index</dd>
<dd><code>cu</code> - column upper index (exclusive)</dd>
<dd><code>v</code> - value</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>self</dd>
</dl>
</li>
</ul>
<a name="set-int-int-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public abstract&nbsp;<a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;set(int&nbsp;r,
int&nbsp;c,
double&nbsp;v)</pre>
<div class="block">Set the given value for a given row and column.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>r</code> - row index</dd>
<dd><code>c</code> - column index</dd>
<dd><code>v</code> - value</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>self</dd>
</dl>
</li>
</ul>
<a name="set-int-double:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public abstract&nbsp;<a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;set(int&nbsp;r,
double[]&nbsp;v)</pre>
<div class="block">Copy the given vector into the given row.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>r</code> - row index</dd>
<dd><code>v</code> - value vector</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>self</dd>
</dl>
</li>
</ul>
<a name="set-org.apache.sysds.runtime.data.DenseBlock-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public abstract&nbsp;<a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;set(<a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;db)</pre>
<div class="block">Copy the given dense block.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>db</code> - dense block</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>self</dd>
</dl>
</li>
</ul>
<a name="set-int-int-int-int-org.apache.sysds.runtime.data.DenseBlock-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;set(int&nbsp;rl,
int&nbsp;ru,
int&nbsp;cl,
int&nbsp;cu,
<a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;db)</pre>
<div class="block">Copy the given dense block into the specified
index range.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rl</code> - row lower index</dd>
<dd><code>ru</code> - row upper index (exclusive)</dd>
<dd><code>cl</code> - column lower index</dd>
<dd><code>cu</code> - column upper index (exclusive)</dd>
<dd><code>db</code> - dense block</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>self</dd>
</dl>
</li>
</ul>
<a name="getNextIndexes-int:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNextIndexes</h4>
<pre>public&nbsp;void&nbsp;getNextIndexes(int[]&nbsp;ix)</pre>
<div class="block">Calculates the next index array. Note that if the given index array was the last element, the next index will
be outside of range.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ix</code> - the index array which will be incremented to the next index array</dd>
</dl>
</li>
</ul>
<a name="set-org.apache.sysds.runtime.instructions.cp.KahanObject-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;set(<a href="../../../../../org/apache/sysds/runtime/instructions/cp/KahanObject.html" title="class in org.apache.sysds.runtime.instructions.cp">KahanObject</a>&nbsp;kbuff)</pre>
<div class="block">Copy the given kahan object sum and correction.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>kbuff</code> - kahan object</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>self</dd>
</dl>
</li>
</ul>
<a name="set-int:A-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public abstract&nbsp;<a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;set(int[]&nbsp;ix,
double&nbsp;v)</pre>
<div class="block">Set the specified cell to the given value.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ix</code> - cell indexes</dd>
<dd><code>v</code> - value</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>self</dd>
</dl>
</li>
</ul>
<a name="set-int:A-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public abstract&nbsp;<a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;set(int[]&nbsp;ix,
long&nbsp;v)</pre>
<div class="block">Set the specified cell to the given value.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ix</code> - cell indexes</dd>
<dd><code>v</code> - value</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>self</dd>
</dl>
</li>
</ul>
<a name="set-int:A-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public abstract&nbsp;<a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;set(int[]&nbsp;ix,
<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;v)</pre>
<div class="block">Set the specified cell to the given value.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ix</code> - cell indexes</dd>
<dd><code>v</code> - value as String</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>self</dd>
</dl>
</li>
</ul>
<a name="set-int-org.apache.sysds.runtime.instructions.cp.KahanObject-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;set(int&nbsp;r,
<a href="../../../../../org/apache/sysds/runtime/instructions/cp/KahanObject.html" title="class in org.apache.sysds.runtime.instructions.cp">KahanObject</a>&nbsp;kbuff)</pre>
<div class="block">Copy the given kahan object sum and correction
into the given row.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>r</code> - row index</dd>
<dd><code>kbuff</code> - kahan object</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>self</dd>
</dl>
</li>
</ul>
<a name="get-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public abstract&nbsp;double&nbsp;get(int&nbsp;r,
int&nbsp;c)</pre>
<div class="block">Get the value for a given row and column.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>r</code> - row index</dd>
<dd><code>c</code> - column index</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>value</dd>
</dl>
</li>
</ul>
<a name="get-int:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public abstract&nbsp;double&nbsp;get(int[]&nbsp;ix)</pre>
<div class="block">Get the value of a given cell</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ix</code> - cell indexes</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>value</dd>
</dl>
</li>
</ul>
<a name="getString-int:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getString</h4>
<pre>public abstract&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;getString(int[]&nbsp;ix)</pre>
<div class="block">Get the value of a given cell as a String</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ix</code> - cell indexes</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>value as String</dd>
</dl>
</li>
</ul>
<a name="getLong-int:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLong</h4>
<pre>public abstract&nbsp;long&nbsp;getLong(int[]&nbsp;ix)</pre>
<div class="block">Get the value of a given cell as long</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ix</code> - cell indexes</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>value as long</dd>
</dl>
</li>
</ul>
<a name="toString--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>toString</h4>
<pre>public&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;toString()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><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></code>&nbsp;in class&nbsp;<code><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></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/DenseBlock.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/data/DataTensorBlock.html" title="class in org.apache.sysds.runtime.data"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.Type.html" title="enum in org.apache.sysds.runtime.data"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/sysds/runtime/data/DenseBlock.html" target="_top">Frames</a></li>
<li><a href="DenseBlock.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><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&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>