blob: 8468ab3d6129a97f683acbb14332b00beb3c2e45 [file]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>DenseBlockLDRB (Apache SystemDS 3.2.0-SNAPSHOT API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../../jquery/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="../../../../../jquery/jquery-ui.min.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="DenseBlockLDRB (Apache SystemDS 3.2.0-SNAPSHOT API)";
}
}
catch(err) {
}
//-->
var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/DenseBlockLDRB.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" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&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><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.apache.sysds.runtime.data</a></div>
<h2 title="Class DenseBlockLDRB" class="title">Class DenseBlockLDRB</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">org.apache.sysds.runtime.data.DenseBlock</a></li>
<li>
<ul class="inheritance">
<li>org.apache.sysds.runtime.data.DenseBlockLDRB</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/Serializable.html?is-external=true" title="class or interface in java.io" class="externalLink">Serializable</a></code>, <code><a href="Block.html" title="interface in org.apache.sysds.runtime.data">Block</a></code></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><code><a href="DenseBlockLBool.html" title="class in org.apache.sysds.runtime.data">DenseBlockLBool</a></code>, <code><a href="DenseBlockLFP32.html" title="class in org.apache.sysds.runtime.data">DenseBlockLFP32</a></code>, <code><a href="DenseBlockLFP64.html" title="class in org.apache.sysds.runtime.data">DenseBlockLFP64</a></code>, <code><a href="DenseBlockLInt32.html" title="class in org.apache.sysds.runtime.data">DenseBlockLInt32</a></code>, <code><a href="DenseBlockLInt64.html" title="class in org.apache.sysds.runtime.data">DenseBlockLInt64</a></code>, <code><a href="DenseBlockLString.html" title="class in org.apache.sysds.runtime.data">DenseBlockLString</a></code></dd>
</dl>
<hr>
<pre>public abstract class <span class="typeNameLabel">DenseBlockLDRB</span>
extends <a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></pre>
<div class="block">Dense Large Row Blocks have multiple 1D arrays (blocks), which contain complete rows.
Except the last block all blocks have the same size (size refers to the number of rows contained and space allocated).</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../serialized-form.html#org.apache.sysds.runtime.data.DenseBlockLDRB">Serialized Form</a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<section>
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a id="nested.classes.inherited.from.class.org.apache.sysds.runtime.data.DenseBlock">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from class&nbsp;org.apache.sysds.runtime.data.<a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></h3>
<code><a href="DenseBlock.Type.html" title="enum in org.apache.sysds.runtime.data">DenseBlock.Type</a></code></li>
</ul>
</li>
</ul>
</section>
<!-- =========== FIELD SUMMARY =========== -->
<section>
<ul class="blockList">
<li class="blockList"><a id="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#MAX_ALLOC">MAX_ALLOC</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section>
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</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="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="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#blockSize()">blockSize</a></span>()</code></th>
<td class="colLast">
<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>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#blockSize(int)">blockSize</a></span>&#8203;(int&nbsp;bix)</code></th>
<td class="colLast">
<div class="block">Get the number of rows of the given block.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#countNonZeros()">countNonZeros</a></span>()</code></th>
<td class="colLast">
<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="i3" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#countNonZeros(int)">countNonZeros</a></span>&#8203;(int&nbsp;r)</code></th>
<td class="colLast">
<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="i4" class="altColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#countNonZeros(int,int,int,int)">countNonZeros</a></span>&#8203;(int&nbsp;rl,
int&nbsp;ru,
int&nbsp;cl,
int&nbsp;cu)</code></th>
<td class="colLast">
<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="i5" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#index(int)">index</a></span>&#8203;(int&nbsp;r)</code></th>
<td class="colLast">
<div class="block">Get the block index for a given row.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isContiguous(int,int)">isContiguous</a></span>&#8203;(int&nbsp;rl,
int&nbsp;ru)</code></th>
<td class="colLast">
<div class="block">Indicates if the dense block has a single
underlying block for the given row range.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#pos(int)">pos</a></span>&#8203;(int&nbsp;r)</code></th>
<td class="colLast">
<div class="block">Get the position for a given row within
its associated block.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#pos(int%5B%5D)">pos</a></span>&#8203;(int[]&nbsp;ix)</code></th>
<td class="colLast">
<div class="block">Get the position for a given cell
within the associated block.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#pos(int,int)">pos</a></span>&#8203;(int&nbsp;r,
int&nbsp;c)</code></th>
<td class="colLast">
<div class="block">Get the position for a given row and column
within the associated block.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reset(int,int%5B%5D,double)">reset</a></span>&#8203;(int&nbsp;rlen,
int[]&nbsp;odims,
double&nbsp;v)</code></th>
<td class="colLast">
<div class="block">Resets the dense block by setting the given value.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#resetNoFill(int,int%5B%5D)">resetNoFill</a></span>&#8203;(int&nbsp;rlen,
int[]&nbsp;odims)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#set(double)">set</a></span>&#8203;(double&nbsp;v)</code></th>
<td class="colLast">
<div class="block">Set the given value for the entire dense block (fill).</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#set(int,double%5B%5D)">set</a></span>&#8203;(int&nbsp;r,
double[]&nbsp;v)</code></th>
<td class="colLast">
<div class="block">Copy the given vector into the given row.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#set(int,int,int,int,double)">set</a></span>&#8203;(int&nbsp;rl,
int&nbsp;ru,
int&nbsp;cl,
int&nbsp;cu,
double&nbsp;v)</code></th>
<td class="colLast">
<div class="block">Set the given value for an entire index range of the
dense block (fill).</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#set(org.apache.sysds.runtime.data.DenseBlock)">set</a></span>&#8203;(<a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;db)</code></th>
<td class="colLast">
<div class="block">Copy the given dense block.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#size(int)">size</a></span>&#8203;(int&nbsp;bix)</code></th>
<td class="colLast">
<div class="block">Get the length of the given block.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.apache.sysds.runtime.data.DenseBlock">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.sysds.runtime.data.<a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></h3>
<code><a href="DenseBlock.html#capacity()">capacity</a>, <a href="DenseBlock.html#contains(double)">contains</a>, <a href="DenseBlock.html#equals(java.lang.Object)">equals</a>, <a href="DenseBlock.html#equals(org.apache.sysds.runtime.data.DenseBlock,double)">equals</a>, <a href="DenseBlock.html#estimateMemory(long,long)">estimateMemory</a>, <a href="DenseBlock.html#get(int%5B%5D)">get</a>, <a href="DenseBlock.html#get(int,int)">get</a>, <a href="DenseBlock.html#getCumODims(int)">getCumODims</a>, <a href="DenseBlock.html#getDim(int)">getDim</a>, <a href="DenseBlock.html#getLong(int%5B%5D)">getLong</a>, <a href="DenseBlock.html#getNextIndexes(int%5B%5D)">getNextIndexes</a>, <a href="DenseBlock.html#getString(int%5B%5D)">getString</a>, <a href="DenseBlock.html#incr(int,int)">incr</a>, <a href="DenseBlock.html#incr(int,int,double)">incr</a>, <a href="DenseBlock.html#isContiguous()">isContiguous</a>, <a href="DenseBlock.html#isNumeric()">isNumeric</a>, <a href="DenseBlock.html#isNumeric(org.apache.sysds.common.Types.ValueType)">isNumeric</a>, <a href="DenseBlock.html#numBlocks()">numBlocks</a>, <a href="DenseBlock.html#numCols()">numCols</a>, <a href="DenseBlock.html#numDims()">numDims</a>, <a href="DenseBlock.html#numRows()">numRows</a>, <a href="DenseBlock.html#reset()">reset</a>, <a href="DenseBlock.html#reset(int%5B%5D)">reset</a>, <a href="DenseBlock.html#reset(int%5B%5D,double)">reset</a>, <a href="DenseBlock.html#reset(int,int)">reset</a>, <a href="DenseBlock.html#reset(int,int%5B%5D)">reset</a>, <a href="DenseBlock.html#reset(int,int,double)">reset</a>, <a href="DenseBlock.html#resetNoFill(int,int)">resetNoFill</a>, <a href="DenseBlock.html#set(int%5B%5D,double)">set</a>, <a href="DenseBlock.html#set(int%5B%5D,long)">set</a>, <a href="DenseBlock.html#set(int%5B%5D,java.lang.String)">set</a>, <a href="DenseBlock.html#set(int,int,double)">set</a>, <a href="DenseBlock.html#set(int,int,int,int,org.apache.sysds.runtime.data.DenseBlock)">set</a>, <a href="DenseBlock.html#set(int,org.apache.sysds.runtime.instructions.cp.KahanObject)">set</a>, <a href="DenseBlock.html#set(java.lang.String)">set</a>, <a href="DenseBlock.html#set(org.apache.sysds.runtime.instructions.cp.KahanObject)">set</a>, <a href="DenseBlock.html#setDims(int%5B%5D)">setDims</a>, <a href="DenseBlock.html#size()">size</a>, <a href="DenseBlock.html#toString()">toString</a>, <a href="DenseBlock.html#values(int)">values</a>, <a href="DenseBlock.html#valuesAt(int)">valuesAt</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></h3>
<code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang" class="externalLink">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink">wait</a></code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<section>
<ul class="blockList">
<li class="blockList"><a id="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a id="MAX_ALLOC">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>MAX_ALLOC</h4>
<pre>public static&nbsp;int MAX_ALLOC</pre>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ METHOD DETAIL ========== -->
<section>
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="blockSize()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>blockSize</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;blockSize()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="DenseBlock.html#blockSize()">DenseBlock</a></code></span></div>
<div class="block">Get the number of rows per block, except last one.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="DenseBlock.html#blockSize()">blockSize</a></code>&nbsp;in class&nbsp;<code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>number of rows in block</dd>
</dl>
</li>
</ul>
<a id="blockSize(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>blockSize</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;blockSize&#8203;(int&nbsp;bix)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="DenseBlock.html#blockSize(int)">DenseBlock</a></code></span></div>
<div class="block">Get the number of rows of the given block.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="DenseBlock.html#blockSize(int)">blockSize</a></code>&nbsp;in class&nbsp;<code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></dd>
<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 id="reset(int,int[],double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reset</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;reset&#8203;(int&nbsp;rlen,
int[]&nbsp;odims,
double&nbsp;v)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="DenseBlock.html#reset(int,int%5B%5D,double)">DenseBlock</a></code></span></div>
<div class="block">Resets the dense block by setting the given value.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="DenseBlock.html#reset(int,int%5B%5D,double)">reset</a></code>&nbsp;in class&nbsp;<code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></dd>
<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 id="resetNoFill(int,int[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>resetNoFill</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;resetNoFill&#8203;(int&nbsp;rlen,
int[]&nbsp;odims)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="DenseBlock.html#resetNoFill(int,int%5B%5D)">resetNoFill</a></code>&nbsp;in class&nbsp;<code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></dd>
</dl>
</li>
</ul>
<a id="pos(int[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pos</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;pos&#8203;(int[]&nbsp;ix)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="DenseBlock.html#pos(int%5B%5D)">DenseBlock</a></code></span></div>
<div class="block">Get the position for a given cell
within the associated block.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="DenseBlock.html#pos(int%5B%5D)">pos</a></code>&nbsp;in class&nbsp;<code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></dd>
<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 id="isContiguous(int,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isContiguous</h4>
<pre class="methodSignature">public&nbsp;boolean&nbsp;isContiguous&#8203;(int&nbsp;rl,
int&nbsp;ru)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="DenseBlock.html#isContiguous(int,int)">DenseBlock</a></code></span></div>
<div class="block">Indicates if the dense block has a single
underlying block for the given row range.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="DenseBlock.html#isContiguous(int,int)">isContiguous</a></code>&nbsp;in class&nbsp;<code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></dd>
<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 id="size(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>size</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;size&#8203;(int&nbsp;bix)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="DenseBlock.html#size(int)">DenseBlock</a></code></span></div>
<div class="block">Get the length of the given block.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="DenseBlock.html#size(int)">size</a></code>&nbsp;in class&nbsp;<code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></dd>
<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 id="index(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>index</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;index&#8203;(int&nbsp;r)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="DenseBlock.html#index(int)">DenseBlock</a></code></span></div>
<div class="block">Get the block index for a given row.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="DenseBlock.html#index(int)">index</a></code>&nbsp;in class&nbsp;<code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></dd>
<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 id="pos(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pos</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;pos&#8203;(int&nbsp;r)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="DenseBlock.html#pos(int)">DenseBlock</a></code></span></div>
<div class="block">Get the position for a given row within
its associated block.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="DenseBlock.html#pos(int)">pos</a></code>&nbsp;in class&nbsp;<code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></dd>
<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 id="pos(int,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pos</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;pos&#8203;(int&nbsp;r,
int&nbsp;c)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="DenseBlock.html#pos(int,int)">DenseBlock</a></code></span></div>
<div class="block">Get the position for a given row and column
within the associated block.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="DenseBlock.html#pos(int,int)">pos</a></code>&nbsp;in class&nbsp;<code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></dd>
<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 id="countNonZeros()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>countNonZeros</h4>
<pre class="methodSignature">public&nbsp;long&nbsp;countNonZeros()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="DenseBlock.html#countNonZeros()">DenseBlock</a></code></span></div>
<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="DenseBlock.html#countNonZeros()">countNonZeros</a></code>&nbsp;in class&nbsp;<code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>number of non-zeros</dd>
</dl>
</li>
</ul>
<a id="countNonZeros(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>countNonZeros</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;countNonZeros&#8203;(int&nbsp;r)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="DenseBlock.html#countNonZeros(int)">DenseBlock</a></code></span></div>
<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="DenseBlock.html#countNonZeros(int)">countNonZeros</a></code>&nbsp;in class&nbsp;<code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></dd>
<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 id="countNonZeros(int,int,int,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>countNonZeros</h4>
<pre class="methodSignature">public&nbsp;long&nbsp;countNonZeros&#8203;(int&nbsp;rl,
int&nbsp;ru,
int&nbsp;cl,
int&nbsp;cu)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="DenseBlock.html#countNonZeros(int,int,int,int)">DenseBlock</a></code></span></div>
<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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="DenseBlock.html#countNonZeros(int,int,int,int)">countNonZeros</a></code>&nbsp;in class&nbsp;<code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></dd>
<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 id="set(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre class="methodSignature">public&nbsp;<a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;set&#8203;(double&nbsp;v)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="DenseBlock.html#set(double)">DenseBlock</a></code></span></div>
<div class="block">Set the given value for the entire dense block (fill).</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="DenseBlock.html#set(double)">set</a></code>&nbsp;in class&nbsp;<code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></dd>
<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 id="set(int,int,int,int,double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre class="methodSignature">public&nbsp;<a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;set&#8203;(int&nbsp;rl,
int&nbsp;ru,
int&nbsp;cl,
int&nbsp;cu,
double&nbsp;v)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="DenseBlock.html#set(int,int,int,int,double)">DenseBlock</a></code></span></div>
<div class="block">Set the given value for an entire index range of the
dense block (fill).</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="DenseBlock.html#set(int,int,int,int,double)">set</a></code>&nbsp;in class&nbsp;<code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></dd>
<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 id="set(int,double[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre class="methodSignature">public&nbsp;<a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;set&#8203;(int&nbsp;r,
double[]&nbsp;v)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="DenseBlock.html#set(int,double%5B%5D)">DenseBlock</a></code></span></div>
<div class="block">Copy the given vector into the given row.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="DenseBlock.html#set(int,double%5B%5D)">set</a></code>&nbsp;in class&nbsp;<code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></dd>
<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 id="set(org.apache.sysds.runtime.data.DenseBlock)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>set</h4>
<pre class="methodSignature">public&nbsp;<a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;set&#8203;(<a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a>&nbsp;db)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="DenseBlock.html#set(org.apache.sysds.runtime.data.DenseBlock)">DenseBlock</a></code></span></div>
<div class="block">Copy the given dense block.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="DenseBlock.html#set(org.apache.sysds.runtime.data.DenseBlock)">set</a></code>&nbsp;in class&nbsp;<code><a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></dd>
<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>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/DenseBlockLDRB.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" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses.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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&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><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small>Copyright &#169; 2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</footer>
</body>
</html>