| <!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>DenseBlockDRB (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="DenseBlockDRB (SystemDS 2.1.0-SNAPSHOT API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"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}; |
| 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"; |
| </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/DenseBlockDRB.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/DenseBlockBool.html" title="class in org.apache.sysds.runtime.data"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/sysds/runtime/data/DenseBlockFactory.html" title="class in org.apache.sysds.runtime.data"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/sysds/runtime/data/DenseBlockDRB.html" target="_top">Frames</a></li> |
| <li><a href="DenseBlockDRB.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses-noframe.html">All 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: </li> |
| <li><a href="#nested.classes.inherited.from.class.org.apache.sysds.runtime.data.DenseBlock">Nested</a> | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </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 DenseBlockDRB" class="title">Class DenseBlockDRB</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><a href="../../../../../org/apache/sysds/runtime/data/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.DenseBlockDRB</li> |
| </ul> |
| </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/DenseBlockBool.html" title="class in org.apache.sysds.runtime.data">DenseBlockBool</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlockFP32.html" title="class in org.apache.sysds.runtime.data">DenseBlockFP32</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlockFP64.html" title="class in org.apache.sysds.runtime.data">DenseBlockFP64</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlockInt32.html" title="class in org.apache.sysds.runtime.data">DenseBlockInt32</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlockInt64.html" title="class in org.apache.sysds.runtime.data">DenseBlockInt64</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlockString.html" title="class in org.apache.sysds.runtime.data">DenseBlockString</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public abstract class <span class="typeNameLabel">DenseBlockDRB</span> |
| extends <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../serialized-form.html#org.apache.sysds.runtime.data.DenseBlockDRB">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> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested.classes.inherited.from.class.org.apache.sysds.runtime.data.DenseBlock"> |
| <!-- --> |
| </a> |
| <h3>Nested classes/interfaces inherited from class org.apache.sysds.runtime.data.<a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></h3> |
| <code><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.Type.html" title="enum in org.apache.sysds.runtime.data">DenseBlock.Type</a></code></li> |
| </ul> |
| </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"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </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>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlockDRB.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>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlockDRB.html#blockSize-int-">blockSize</a></span>(int 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>long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlockDRB.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="i3" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlockDRB.html#countNonZeros-int-">countNonZeros</a></span>(int 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="i4" class="altColor"> |
| <td class="colFirst"><code>long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlockDRB.html#countNonZeros-int-int-int-int-">countNonZeros</a></span>(int rl, |
| int ru, |
| int ol, |
| int ou)</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="i5" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlockDRB.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="i6" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlockDRB.html#isContiguous-int-int-">isContiguous</a></span>(int rl, |
| int 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="i7" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlockDRB.html#numBlocks--">numBlocks</a></span>()</code> |
| <div class="block">Get the number of allocated blocks.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlockDRB.html#pos-int-">pos</a></span>(int r)</code> |
| <div class="block">Get the position for a given row within |
| its associated block.</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/DenseBlockDRB.html#pos-int:A-">pos</a></span>(int[] ix)</code> |
| <div class="block">Get the position for a given cell |
| within the associated block.</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/DenseBlockDRB.html#pos-int-int-">pos</a></span>(int r, |
| int c)</code> |
| <div class="block">Get the position for a given row and column |
| within the associated block.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlockDRB.html#reset-int-int:A-double-">reset</a></span>(int rlen, |
| int[] odims, |
| double v)</code> |
| <div class="block">Resets the dense block by setting the given value.</div> |
| </td> |
| </tr> |
| <tr id="i12" 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/DenseBlockDRB.html#set-double-">set</a></span>(double v)</code> |
| <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="../../../../../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/DenseBlockDRB.html#set-int-int-int-int-double-">set</a></span>(int rl, |
| int ru, |
| int cl, |
| int cu, |
| double v)</code> |
| <div class="block">Set the given value for an entire index range of the |
| dense block (fill).</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/sysds/runtime/data/DenseBlockDRB.html#size-int-">size</a></span>(int bix)</code> |
| <div class="block">Get the length of the given block.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.sysds.runtime.data.DenseBlock"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.sysds.runtime.data.<a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></h3> |
| <code><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#capacity--">capacity</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#estimateMemory-long-long-">estimateMemory</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#get-int:A-">get</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#get-int-int-">get</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#getCumODims-int-">getCumODims</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#getDim-int-">getDim</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#getLong-int:A-">getLong</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#getNextIndexes-int:A-">getNextIndexes</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#getString-int:A-">getString</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#incr-int-int-">incr</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#incr-int-int-double-">incr</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#index-int-">index</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#isNumeric--">isNumeric</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#numDims--">numDims</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#numRows--">numRows</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#reset--">reset</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#reset-int:A-">reset</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#reset-int:A-double-">reset</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#reset-int-int-">reset</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#reset-int-int:A-">reset</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#reset-int-int-double-">reset</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-org.apache.sysds.runtime.data.DenseBlock-">set</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-int:A-double-">set</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-int:A-long-">set</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-int:A-java.lang.String-">set</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-int-double:A-">set</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-int-int-double-">set</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-int-int-int-int-org.apache.sysds.runtime.data.DenseBlock-">set</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-int-org.apache.sysds.runtime.instructions.cp.KahanObject-">set</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-org.apache.sysds.runtime.instructions.cp.KahanObject-">set</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-java.lang.String-">set</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#setDims-int:A-">setDims</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#size--">size</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#toString--">toString</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#values-int-">values</a>, <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#valuesAt-int-">valuesAt</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class 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="reset-int-int:A-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>reset</h4> |
| <pre>public void reset(int rlen, |
| int[] odims, |
| double v)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#reset-int-int:A-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="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#reset-int-int:A-double-">reset</a></code> in class <code><a href="../../../../../org/apache/sysds/runtime/data/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 name="numBlocks--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>numBlocks</h4> |
| <pre>public int numBlocks()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#numBlocks--">DenseBlock</a></code></span></div> |
| <div class="block">Get the number of allocated blocks.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#numBlocks--">numBlocks</a></code> in class <code><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></dd> |
| <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 int blockSize()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/sysds/runtime/data/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="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#blockSize--">blockSize</a></code> in class <code><a href="../../../../../org/apache/sysds/runtime/data/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 name="blockSize-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>blockSize</h4> |
| <pre>public int blockSize(int bix)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/sysds/runtime/data/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="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#blockSize-int-">blockSize</a></code> in class <code><a href="../../../../../org/apache/sysds/runtime/data/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 name="isContiguous--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isContiguous</h4> |
| <pre>public boolean isContiguous()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#isContiguous--">DenseBlock</a></code></span></div> |
| <div class="block">Indicates if the dense block has a single |
| underlying block, i.e., if numBlocks==1.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#isContiguous--">isContiguous</a></code> in class <code><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a></code></dd> |
| <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 boolean isContiguous(int rl, |
| int ru)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/sysds/runtime/data/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="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#isContiguous-int-int-">isContiguous</a></code> in class <code><a href="../../../../../org/apache/sysds/runtime/data/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 name="size-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>size</h4> |
| <pre>public int size(int bix)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/sysds/runtime/data/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="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#size-int-">size</a></code> in class <code><a href="../../../../../org/apache/sysds/runtime/data/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 name="pos-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pos</h4> |
| <pre>public int pos(int r)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/sysds/runtime/data/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="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#pos-int-">pos</a></code> in class <code><a href="../../../../../org/apache/sysds/runtime/data/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 name="pos-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pos</h4> |
| <pre>public int pos(int r, |
| int c)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/sysds/runtime/data/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="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#pos-int-int-">pos</a></code> in class <code><a href="../../../../../org/apache/sysds/runtime/data/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 name="pos-int:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pos</h4> |
| <pre>public int pos(int[] ix)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#pos-int:A-">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="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#pos-int:A-">pos</a></code> in class <code><a href="../../../../../org/apache/sysds/runtime/data/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 name="countNonZeros--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>countNonZeros</h4> |
| <pre>public long countNonZeros()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/sysds/runtime/data/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="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#countNonZeros--">countNonZeros</a></code> in class <code><a href="../../../../../org/apache/sysds/runtime/data/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 name="countNonZeros-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>countNonZeros</h4> |
| <pre>public int countNonZeros(int r)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/sysds/runtime/data/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="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#countNonZeros-int-">countNonZeros</a></code> in class <code><a href="../../../../../org/apache/sysds/runtime/data/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 name="countNonZeros-int-int-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>countNonZeros</h4> |
| <pre>public long countNonZeros(int rl, |
| int ru, |
| int ol, |
| int ou)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/sysds/runtime/data/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="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#countNonZeros-int-int-int-int-">countNonZeros</a></code> in class <code><a href="../../../../../org/apache/sysds/runtime/data/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>ol</code> - column lower index</dd> |
| <dd><code>ou</code> - column upper index (exclusive)</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>number of non-zeros</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="set-int-int-int-int-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre>public <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a> set(int rl, |
| int ru, |
| int cl, |
| int cu, |
| double v)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/sysds/runtime/data/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="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-int-int-int-int-double-">set</a></code> in class <code><a href="../../../../../org/apache/sysds/runtime/data/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 name="set-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre>public <a href="../../../../../org/apache/sysds/runtime/data/DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a> set(double v)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/sysds/runtime/data/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="../../../../../org/apache/sysds/runtime/data/DenseBlock.html#set-double-">set</a></code> in class <code><a href="../../../../../org/apache/sysds/runtime/data/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> |
| </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/DenseBlockDRB.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/DenseBlockBool.html" title="class in org.apache.sysds.runtime.data"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/sysds/runtime/data/DenseBlockFactory.html" title="class in org.apache.sysds.runtime.data"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/sysds/runtime/data/DenseBlockDRB.html" target="_top">Frames</a></li> |
| <li><a href="DenseBlockDRB.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses-noframe.html">All 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: </li> |
| <li><a href="#nested.classes.inherited.from.class.org.apache.sysds.runtime.data.DenseBlock">Nested</a> | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </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 © 2021 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |