| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc --> |
| <title>DenseBlock (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="DenseBlock (Apache SystemDS 3.2.0-SNAPSHOT API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var data = {"i0":6,"i1":6,"i2":6,"i3":10,"i4":6,"i5":6,"i6":6,"i7":10,"i8":10,"i9":9,"i10":6,"i11":6,"i12":10,"i13":10,"i14":6,"i15":10,"i16":6,"i17":6,"i18":6,"i19":6,"i20":6,"i21":6,"i22":6,"i23":6,"i24":6,"i25":10,"i26":10,"i27":10,"i28":6,"i29":6,"i30":6,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":6,"i37":10,"i38":10,"i39":6,"i40":6,"i41":6,"i42":6,"i43":6,"i44":6,"i45":6,"i46":6,"i47":10,"i48":10,"i49":10,"i50":6,"i51":10,"i52":10,"i53":10,"i54":6,"i55":10,"i56":6,"i57":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"; |
| 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/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" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses.html">All 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: </li> |
| <li><a href="#nested.class.summary">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 id="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| </div> |
| <div class="navPadding"> </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> <a href="package-summary.html">org.apache.sysds.runtime.data</a></div> |
| <h2 title="Class DenseBlock" class="title">Class DenseBlock</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>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><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="DenseBlockDRB.html" title="class in org.apache.sysds.runtime.data">DenseBlockDRB</a></code>, <code><a href="DenseBlockLDRB.html" title="class in org.apache.sysds.runtime.data">DenseBlockLDRB</a></code></dd> |
| </dl> |
| <hr> |
| <pre>public abstract class <span class="typeNameLabel">DenseBlock</span> |
| extends <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> |
| implements <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>, <a href="Block.html" title="interface in org.apache.sysds.runtime.data">Block</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 ======== --> |
| <section> |
| <ul class="blockList"> |
| <li class="blockList"><a id="nested.class.summary"> |
| <!-- --> |
| </a> |
| <h3>Nested Class Summary</h3> |
| <table class="memberSummary"> |
| <caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Class</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="DenseBlock.Type.html" title="enum in org.apache.sysds.runtime.data">DenseBlock.Type</a></span></code></th> |
| <td class="colLast"> </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"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></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="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract 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="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>abstract 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>abstract int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#blockSize(int)">blockSize</a></span>​(int 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>abstract long</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#capacity()">capacity</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Get the total length of allocated blocks.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#contains(double)">contains</a></span>​(double pattern)</code></th> |
| <td class="colLast"> |
| <div class="block">Checks if the block contains at least one value of the given |
| pattern.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>abstract 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="i5" class="rowColor"> |
| <td class="colFirst"><code>abstract int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#countNonZeros(int)">countNonZeros</a></span>​(int 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="i6" class="altColor"> |
| <td class="colFirst"><code>abstract long</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#countNonZeros(int,int,int,int)">countNonZeros</a></span>​(int rl, |
| int ru, |
| int cl, |
| int 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="i7" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#equals(java.lang.Object)">equals</a></span>​(<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> o)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#equals(org.apache.sysds.runtime.data.DenseBlock,double)">equals</a></span>​(<a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a> o, |
| double eps)</code></th> |
| <td class="colLast"> |
| <div class="block">Verify if the values in this dense block is equivalent to that dense block, not taking into account the dimensions |
| of the contained values.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>static double</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#estimateMemory(long,long)">estimateMemory</a></span>​(long nrows, |
| long ncols)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>abstract double</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#get(int%5B%5D)">get</a></span>​(int[] ix)</code></th> |
| <td class="colLast"> |
| <div class="block">Get the value of a given cell</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>abstract double</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#get(int,int)">get</a></span>​(int r, |
| int c)</code></th> |
| <td class="colLast"> |
| <div class="block">Get the value for a given row and column.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCumODims(int)">getCumODims</a></span>​(int i)</code></th> |
| <td class="colLast"> |
| <div class="block">Get the ith cumulative dimensions size of the dense block, without row.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDim(int)">getDim</a></span>​(int i)</code></th> |
| <td class="colLast"> |
| <div class="block">Get the ith dimensions size of the dense block.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>abstract long</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLong(int%5B%5D)">getLong</a></span>​(int[] ix)</code></th> |
| <td class="colLast"> |
| <div class="block">Get the value of a given cell as long</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getNextIndexes(int%5B%5D)">getNextIndexes</a></span>​(int[] ix)</code></th> |
| <td class="colLast"> |
| <div class="block">Calculates the next index array.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>abstract <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getString(int%5B%5D)">getString</a></span>​(int[] ix)</code></th> |
| <td class="colLast"> |
| <div class="block">Get the value of a given cell as a String</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>abstract void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#incr(int,int)">incr</a></span>​(int r, |
| int c)</code></th> |
| <td class="colLast"> |
| <div class="block">Increments the given value for a given row and column.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>abstract void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#incr(int,int,double)">incr</a></span>​(int r, |
| int c, |
| double delta)</code></th> |
| <td class="colLast"> |
| <div class="block">Increments the given value for a given row and column |
| by delta.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>abstract int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#index(int)">index</a></span>​(int r)</code></th> |
| <td class="colLast"> |
| <div class="block">Get the block index for a given row.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>abstract boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isContiguous()">isContiguous</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Indicates if the dense block has a single |
| underlying block, i.e., if numBlocks==1.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>abstract boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isContiguous(int,int)">isContiguous</a></span>​(int rl, |
| int 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="i22" class="altColor"> |
| <td class="colFirst"><code>abstract boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isNumeric()">isNumeric</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Indicates if the dense block is numeric.</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>abstract boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isNumeric(org.apache.sysds.common.Types.ValueType)">isNumeric</a></span>​(<a href="../../common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a> vt)</code></th> |
| <td class="colLast"> |
| <div class="block">Indicates if the dense block is a specific numeric value type.</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>abstract int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#numBlocks()">numBlocks</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Get the number of allocated blocks.</div> |
| </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#numCols()">numCols</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Get the number of columns / first dimension</div> |
| </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#numDims()">numDims</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Get the number of dimensions.</div> |
| </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#numRows()">numRows</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Get the number of rows.</div> |
| </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>abstract int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#pos(int)">pos</a></span>​(int 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="i29" class="rowColor"> |
| <td class="colFirst"><code>abstract int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#pos(int%5B%5D)">pos</a></span>​(int[] 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="i30" class="altColor"> |
| <td class="colFirst"><code>abstract int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#pos(int,int)">pos</a></span>​(int r, |
| int 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="i31" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reset()">reset</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Resets the dense block by deleting non-zero values.</div> |
| </td> |
| </tr> |
| <tr id="i32" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reset(int%5B%5D)">reset</a></span>​(int[] dims)</code></th> |
| <td class="colLast"> |
| <div class="block">Resets the dense block by deleting non-zero values.</div> |
| </td> |
| </tr> |
| <tr id="i33" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reset(int%5B%5D,double)">reset</a></span>​(int[] dims, |
| double v)</code></th> |
| <td class="colLast"> |
| <div class="block">Resets the dense block by deleting non-zeros.</div> |
| </td> |
| </tr> |
| <tr id="i34" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reset(int,int)">reset</a></span>​(int rlen, |
| int clen)</code></th> |
| <td class="colLast"> |
| <div class="block">Resets the dense block by deleting non-zeros.</div> |
| </td> |
| </tr> |
| <tr id="i35" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reset(int,int%5B%5D)">reset</a></span>​(int rlen, |
| int[] odims)</code></th> |
| <td class="colLast"> |
| <div class="block">Resets the dense block by deleting non-zeros.</div> |
| </td> |
| </tr> |
| <tr id="i36" class="altColor"> |
| <td class="colFirst"><code>abstract void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reset(int,int%5B%5D,double)">reset</a></span>​(int rlen, |
| int[] odims, |
| double v)</code></th> |
| <td class="colLast"> |
| <div class="block">Resets the dense block by setting the given value.</div> |
| </td> |
| </tr> |
| <tr id="i37" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reset(int,int,double)">reset</a></span>​(int rlen, |
| int clen, |
| double v)</code></th> |
| <td class="colLast"> |
| <div class="block">Resets the dense block by setting the given value.</div> |
| </td> |
| </tr> |
| <tr id="i38" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#resetNoFill(int,int)">resetNoFill</a></span>​(int rlen, |
| int clen)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i39" class="rowColor"> |
| <td class="colFirst"><code>abstract void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#resetNoFill(int,int%5B%5D)">resetNoFill</a></span>​(int rlen, |
| int[] odims)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i40" class="altColor"> |
| <td class="colFirst"><code>abstract <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>​(double v)</code></th> |
| <td class="colLast"> |
| <div class="block">Set the given value for the entire dense block (fill).</div> |
| </td> |
| </tr> |
| <tr id="i41" class="rowColor"> |
| <td class="colFirst"><code>abstract <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%5B%5D,double)">set</a></span>​(int[] ix, |
| double v)</code></th> |
| <td class="colLast"> |
| <div class="block">Set the specified cell to the given value.</div> |
| </td> |
| </tr> |
| <tr id="i42" class="altColor"> |
| <td class="colFirst"><code>abstract <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%5B%5D,long)">set</a></span>​(int[] ix, |
| long v)</code></th> |
| <td class="colLast"> |
| <div class="block">Set the specified cell to the given value.</div> |
| </td> |
| </tr> |
| <tr id="i43" class="rowColor"> |
| <td class="colFirst"><code>abstract <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%5B%5D,java.lang.String)">set</a></span>​(int[] ix, |
| <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> v)</code></th> |
| <td class="colLast"> |
| <div class="block">Set the specified cell to the given value.</div> |
| </td> |
| </tr> |
| <tr id="i44" class="altColor"> |
| <td class="colFirst"><code>abstract <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>​(int r, |
| double[] v)</code></th> |
| <td class="colLast"> |
| <div class="block">Copy the given vector into the given row.</div> |
| </td> |
| </tr> |
| <tr id="i45" class="rowColor"> |
| <td class="colFirst"><code>abstract <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,double)">set</a></span>​(int r, |
| int c, |
| double v)</code></th> |
| <td class="colLast"> |
| <div class="block">Set the given value for a given row and column.</div> |
| </td> |
| </tr> |
| <tr id="i46" class="altColor"> |
| <td class="colFirst"><code>abstract <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>​(int rl, |
| int ru, |
| int cl, |
| int cu, |
| double 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="i47" 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,int,int,int,org.apache.sysds.runtime.data.DenseBlock)">set</a></span>​(int rl, |
| int ru, |
| int cl, |
| int cu, |
| <a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a> db)</code></th> |
| <td class="colLast"> |
| <div class="block">Copy the given dense block into the specified |
| index range.</div> |
| </td> |
| </tr> |
| <tr id="i48" 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,org.apache.sysds.runtime.instructions.cp.KahanObject)">set</a></span>​(int r, |
| <a href="../instructions/cp/KahanObject.html" title="class in org.apache.sysds.runtime.instructions.cp">KahanObject</a> kbuff)</code></th> |
| <td class="colLast"> |
| <div class="block">Copy the given kahan object sum and correction |
| into the given row.</div> |
| </td> |
| </tr> |
| <tr id="i49" 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(java.lang.String)">set</a></span>​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> s)</code></th> |
| <td class="colLast"> |
| <div class="block">Set the given string for the entire dense block (fill).</div> |
| </td> |
| </tr> |
| <tr id="i50" class="altColor"> |
| <td class="colFirst"><code>abstract <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>​(<a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a> db)</code></th> |
| <td class="colLast"> |
| <div class="block">Copy the given dense block.</div> |
| </td> |
| </tr> |
| <tr id="i51" 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.instructions.cp.KahanObject)">set</a></span>​(<a href="../instructions/cp/KahanObject.html" title="class in org.apache.sysds.runtime.instructions.cp">KahanObject</a> kbuff)</code></th> |
| <td class="colLast"> |
| <div class="block">Copy the given kahan object sum and correction.</div> |
| </td> |
| </tr> |
| <tr id="i52" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDims(int%5B%5D)">setDims</a></span>​(int[] dims)</code></th> |
| <td class="colLast"> |
| <div class="block">Set the dimensions of the dense MatrixBlock.</div> |
| </td> |
| </tr> |
| <tr id="i53" class="rowColor"> |
| <td class="colFirst"><code>long</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#size()">size</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Get the length of the dense block as the product |
| of all dimensions.</div> |
| </td> |
| </tr> |
| <tr id="i54" class="altColor"> |
| <td class="colFirst"><code>abstract int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#size(int)">size</a></span>​(int bix)</code></th> |
| <td class="colLast"> |
| <div class="block">Get the length of the given block.</div> |
| </td> |
| </tr> |
| <tr id="i55" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toString()">toString</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i56" class="altColor"> |
| <td class="colFirst"><code>abstract double[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#values(int)">values</a></span>​(int r)</code></th> |
| <td class="colLast"> |
| <div class="block">Get the allocated block for the given row.</div> |
| </td> |
| </tr> |
| <tr id="i57" class="rowColor"> |
| <td class="colFirst"><code>abstract double[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#valuesAt(int)">valuesAt</a></span>​(int bix)</code></th> |
| <td class="colLast"> |
| <div class="block">Get an allocated block.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class 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"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <section> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a id="getDim(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDim</h4> |
| <pre class="methodSignature">public final int getDim​(int 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 id="getCumODims(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getCumODims</h4> |
| <pre class="methodSignature">public final int getCumODims​(int 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 id="reset()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>reset</h4> |
| <pre class="methodSignature">public final void 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 id="reset(int[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>reset</h4> |
| <pre class="methodSignature">public final void reset​(int[] 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 id="reset(int[],double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>reset</h4> |
| <pre class="methodSignature">public final void reset​(int[] dims, |
| double 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 id="reset(int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>reset</h4> |
| <pre class="methodSignature">public final void reset​(int rlen, |
| int 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 id="reset(int,int[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>reset</h4> |
| <pre class="methodSignature">public final void reset​(int rlen, |
| int[] 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 id="reset(int,int,double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>reset</h4> |
| <pre class="methodSignature">public final void reset​(int rlen, |
| int clen, |
| double 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 id="reset(int,int[],double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>reset</h4> |
| <pre class="methodSignature">public abstract void reset​(int rlen, |
| int[] odims, |
| double 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 id="resetNoFill(int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>resetNoFill</h4> |
| <pre class="methodSignature">public final void resetNoFill​(int rlen, |
| int clen)</pre> |
| </li> |
| </ul> |
| <a id="resetNoFill(int,int[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>resetNoFill</h4> |
| <pre class="methodSignature">public abstract void resetNoFill​(int rlen, |
| int[] odims)</pre> |
| </li> |
| </ul> |
| <a id="estimateMemory(long,long)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>estimateMemory</h4> |
| <pre class="methodSignature">public static double estimateMemory​(long nrows, |
| long ncols)</pre> |
| </li> |
| </ul> |
| <a id="setDims(int[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setDims</h4> |
| <pre class="methodSignature">public void setDims​(int[] 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 id="numRows()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>numRows</h4> |
| <pre class="methodSignature">public final int 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 id="numCols()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>numCols</h4> |
| <pre class="methodSignature">public final int numCols()</pre> |
| <div class="block">Get the number of columns / first dimension</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>number of columns</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="numDims()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>numDims</h4> |
| <pre class="methodSignature">public final int 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 id="numBlocks()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>numBlocks</h4> |
| <pre class="methodSignature">public abstract int 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 id="blockSize()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>blockSize</h4> |
| <pre class="methodSignature">public abstract int 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 id="blockSize(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>blockSize</h4> |
| <pre class="methodSignature">public abstract int blockSize​(int 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 id="isNumeric()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isNumeric</h4> |
| <pre class="methodSignature">public abstract boolean 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 id="isNumeric(org.apache.sysds.common.Types.ValueType)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isNumeric</h4> |
| <pre class="methodSignature">public abstract boolean isNumeric​(<a href="../../common/Types.ValueType.html" title="enum in org.apache.sysds.common">Types.ValueType</a> vt)</pre> |
| <div class="block">Indicates if the dense block is a specific numeric value type.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>vt</code> - value type to check</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true if numeric and of value type vt</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="isContiguous()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isContiguous</h4> |
| <pre class="methodSignature">public abstract boolean 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 id="isContiguous(int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isContiguous</h4> |
| <pre class="methodSignature">public abstract boolean isContiguous​(int rl, |
| int 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 id="size()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>size</h4> |
| <pre class="methodSignature">public final long 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 id="size(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>size</h4> |
| <pre class="methodSignature">public abstract int size​(int 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 id="capacity()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>capacity</h4> |
| <pre class="methodSignature">public abstract long 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 id="countNonZeros()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>countNonZeros</h4> |
| <pre class="methodSignature">public abstract long 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 id="countNonZeros(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>countNonZeros</h4> |
| <pre class="methodSignature">public abstract int countNonZeros​(int 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 id="countNonZeros(int,int,int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>countNonZeros</h4> |
| <pre class="methodSignature">public abstract long countNonZeros​(int rl, |
| int ru, |
| int cl, |
| int 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 id="values(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>values</h4> |
| <pre class="methodSignature">public abstract double[] values​(int 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 id="valuesAt(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>valuesAt</h4> |
| <pre class="methodSignature">public abstract double[] valuesAt​(int 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 id="index(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>index</h4> |
| <pre class="methodSignature">public abstract int index​(int 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 id="pos(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pos</h4> |
| <pre class="methodSignature">public abstract int pos​(int 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 id="pos(int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pos</h4> |
| <pre class="methodSignature">public abstract int pos​(int r, |
| int 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 id="pos(int[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pos</h4> |
| <pre class="methodSignature">public abstract int pos​(int[] 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 id="incr(int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>incr</h4> |
| <pre class="methodSignature">public abstract void incr​(int r, |
| int 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 id="incr(int,int,double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>incr</h4> |
| <pre class="methodSignature">public abstract void incr​(int r, |
| int c, |
| double 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 id="set(double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">public abstract <a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a> set​(double 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 id="set(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">public <a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a> set​(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> 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 id="set(int,int,int,int,double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">public abstract <a href="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">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 id="set(int,int,double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">public abstract <a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a> set​(int r, |
| int c, |
| double 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 id="set(int,double[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">public abstract <a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a> set​(int r, |
| double[] 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 id="set(org.apache.sysds.runtime.data.DenseBlock)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">public abstract <a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a> set​(<a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a> 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 id="set(int,int,int,int,org.apache.sysds.runtime.data.DenseBlock)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">public <a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a> set​(int rl, |
| int ru, |
| int cl, |
| int cu, |
| <a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a> 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 id="getNextIndexes(int[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNextIndexes</h4> |
| <pre class="methodSignature">public void getNextIndexes​(int[] 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 id="set(org.apache.sysds.runtime.instructions.cp.KahanObject)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">public <a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a> set​(<a href="../instructions/cp/KahanObject.html" title="class in org.apache.sysds.runtime.instructions.cp">KahanObject</a> 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 id="set(int[],double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">public abstract <a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a> set​(int[] ix, |
| double 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 id="set(int[],long)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">public abstract <a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a> set​(int[] ix, |
| long 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 id="set(int[],java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">public abstract <a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a> set​(int[] ix, |
| <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> 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 id="set(int,org.apache.sysds.runtime.instructions.cp.KahanObject)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre class="methodSignature">public <a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a> set​(int r, |
| <a href="../instructions/cp/KahanObject.html" title="class in org.apache.sysds.runtime.instructions.cp">KahanObject</a> 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 id="get(int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>get</h4> |
| <pre class="methodSignature">public abstract double get​(int r, |
| int c)</pre> |
| <div class="block">Get the value for a given row and column.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="Block.html#get(int,int)">get</a></code> in interface <code><a href="Block.html" title="interface in org.apache.sysds.runtime.data">Block</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>value</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="get(int[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>get</h4> |
| <pre class="methodSignature">public abstract double get​(int[] 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 id="getString(int[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getString</h4> |
| <pre class="methodSignature">public abstract <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> getString​(int[] 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 id="getLong(int[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLong</h4> |
| <pre class="methodSignature">public abstract long getLong​(int[] 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 id="contains(double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>contains</h4> |
| <pre class="methodSignature">public boolean contains​(double pattern)</pre> |
| <div class="block">Checks if the block contains at least one value of the given |
| pattern. Implementations need to handle NaN patterns as well |
| (note that NaN==NaN yields false).</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pattern</code> - checked pattern</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true if pattern appears at least once, otherwise false</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="equals(java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>equals</h4> |
| <pre class="methodSignature">public boolean equals​(<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> o)</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang" class="externalLink">equals</a></code> in class <code><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></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="equals(org.apache.sysds.runtime.data.DenseBlock,double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>equals</h4> |
| <pre class="methodSignature">public boolean equals​(<a href="DenseBlock.html" title="class in org.apache.sysds.runtime.data">DenseBlock</a> o, |
| double eps)</pre> |
| <div class="block">Verify if the values in this dense block is equivalent to that dense block, not taking into account the dimensions |
| of the contained values. Note in some cases one or the other block is allocated bigger than the other, so the |
| values compared is only the values of the smaller block.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>o</code> - Other block</dd> |
| <dd><code>eps</code> - Epsilon allowed</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>If the blocs are equivalent.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="toString()"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>toString</h4> |
| <pre class="methodSignature">public <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> toString()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang" class="externalLink">toString</a></code> in class <code><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></code></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/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" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses.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> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li><a href="#nested.class.summary">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 id="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </nav> |
| <p class="legalCopy"><small>Copyright © 2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </footer> |
| </body> |
| </html> |