blob: 798d73bc1ecb6e850d7b6cca519b1e99cd63d4f1 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_80) on Mon Mar 05 08:19:26 EST 2018 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DTypeUtils (The Eclipse January API Documentation)</title>
<meta name="date" content="2018-03-05">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="DTypeUtils (The Eclipse January API Documentation)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><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/DTypeUtils.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/eclipse/january/dataset/DoubleDataset.html" title="class in org.eclipse.january.dataset"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/eclipse/january/dataset/FloatDataset.html" title="class in org.eclipse.january.dataset"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/eclipse/january/dataset/DTypeUtils.html" target="_top">Frames</a></li>
<li><a href="DTypeUtils.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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.eclipse.january.dataset</div>
<h2 title="Class DTypeUtils" class="title">Class DTypeUtils</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.eclipse.january.dataset.DTypeUtils</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.22">DTypeUtils</a>
extends <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected static org.slf4j.Logger</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#logger">logger</a></strong></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#DTypeUtils()">DTypeUtils</a></strong>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#fromDoublesToBiggestPrimitives(double[],%20int)">fromDoublesToBiggestPrimitives</a></strong>(double[]&nbsp;x,
int&nbsp;dtype)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#fromDoubleToBiggestNumber(double,%20int)">fromDoubleToBiggestNumber</a></strong>(double&nbsp;x,
int&nbsp;dtype)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#getBestDType(int,%20int)">getBestDType</a></strong>(int&nbsp;atype,
int&nbsp;btype)</code>
<div class="block">Find dataset type that best fits given types The best type takes into account complex and array datasets</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#getBestFloatDType(java.lang.Class)">getBestFloatDType</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;cls)</code>
<div class="block">Find floating point dataset type that best fits given class The best type takes into account complex and array
datasets</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#getBestFloatDType(int)">getBestFloatDType</a></strong>(int&nbsp;otype)</code>
<div class="block">Find floating point dataset type that best fits given types.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#getDType(java.lang.Class)">getDType</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&gt;&nbsp;clazz)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#getDType(org.eclipse.january.dataset.ILazyDataset)">getDType</a></strong>(<a href="../../../../org/eclipse/january/dataset/ILazyDataset.html" title="interface in org.eclipse.january.dataset">ILazyDataset</a>&nbsp;d)</code>
<div class="block">Get dataset type from given dataset</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#getDTypeFromClass(java.lang.Class)">getDTypeFromClass</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;cls)</code>
<div class="block">Get dataset type from an element class</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#getDTypeFromClass(java.lang.Class,%20int)">getDTypeFromClass</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;cls,
int&nbsp;isize)</code>
<div class="block">Get dataset type from an element class</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#getDTypeFromObject(java.lang.Object)">getDTypeFromObject</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;obj)</code>
<div class="block">Get dataset type from an object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#getDTypeName(org.eclipse.january.dataset.Dataset)">getDTypeName</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#getDTypeName(org.eclipse.january.dataset.ILazyDataset)">getDTypeName</a></strong>(<a href="../../../../org/eclipse/january/dataset/ILazyDataset.html" title="interface in org.eclipse.january.dataset">ILazyDataset</a>&nbsp;a)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#getDTypeName(int,%20int)">getDTypeName</a></strong>(int&nbsp;dtype,
int&nbsp;itemSize)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#getElementalDType(int)">getElementalDType</a></strong>(int&nbsp;otype)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#getElementClass(int)">getElementClass</a></strong>(int&nbsp;dtype)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#getElementsPerItem(int)">getElementsPerItem</a></strong>(int&nbsp;dtype)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#getItemBytes(int)">getItemBytes</a></strong>(int&nbsp;dtype)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#getItemBytes(int,%20int)">getItemBytes</a></strong>(int&nbsp;dtype,
int&nbsp;isize)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#getLargestDType(int)">getLargestDType</a></strong>(int&nbsp;otype)</code>
<div class="block">The largest dataset type suitable for a summation of around a few thousand items without changing from the "kind"
of dataset</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#getLength(java.lang.Object)">getLength</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#isClassSupportedAsElement(java.lang.Class)">isClassSupportedAsElement</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;comp)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#isDTypeComplex(int)">isDTypeComplex</a></strong>(int&nbsp;dtype)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#isDTypeElemental(int)">isDTypeElemental</a></strong>(int&nbsp;dtype)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#isDTypeFloating(int)">isDTypeFloating</a></strong>(int&nbsp;dtype)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#isDTypeInteger(int)">isDTypeInteger</a></strong>(int&nbsp;dtype)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#isDTypeNumerical(int)">isDTypeNumerical</a></strong>(int&nbsp;dtype)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#toBoolean(java.lang.Object)">toBoolean</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#toByteArray(java.lang.Object,%20int)">toByteArray</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b,
int&nbsp;itemSize)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static double[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#toDoubleArray(java.lang.Object,%20int)">toDoubleArray</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b,
int&nbsp;itemSize)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static float[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#toFloatArray(java.lang.Object,%20int)">toFloatArray</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b,
int&nbsp;itemSize)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#toImag(java.lang.Object)">toImag</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#toIntegerArray(java.lang.Object,%20int)">toIntegerArray</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b,
int&nbsp;itemSize)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#toLong(double)">toLong</a></strong>(double&nbsp;d)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#toLong(float)">toLong</a></strong>(float&nbsp;d)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#toLong(java.lang.Object)">toLong</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static long[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#toLongArray(java.lang.Object,%20int)">toLongArray</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b,
int&nbsp;itemSize)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#toReal(java.lang.Object)">toReal</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static short[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DTypeUtils.html#toShortArray(java.lang.Object,%20int)">toShortArray</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b,
int&nbsp;itemSize)</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/7/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/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/7/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/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/7/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/7/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/7/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/7/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/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/7/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/7/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/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="logger">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>logger</h4>
<pre>protected static final&nbsp;org.slf4j.Logger <a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.23">logger</a></pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="DTypeUtils()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>DTypeUtils</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.22">DTypeUtils</a>()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getDTypeName(org.eclipse.january.dataset.Dataset)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDTypeName</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.81">getDTypeName</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&nbsp;a)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>name of dataset type</dd></dl>
</li>
</ul>
<a name="getDTypeName(org.eclipse.january.dataset.ILazyDataset)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDTypeName</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.89">getDTypeName</a>(<a href="../../../../org/eclipse/january/dataset/ILazyDataset.html" title="interface in org.eclipse.january.dataset">ILazyDataset</a>&nbsp;a)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>name of dataset type</dd></dl>
</li>
</ul>
<a name="getDTypeName(int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDTypeName</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.98">getDTypeName</a>(int&nbsp;dtype,
int&nbsp;itemSize)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>dtype</code> - </dd><dd><code>itemSize</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>name of dataset type</dd></dl>
</li>
</ul>
<a name="getDType(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDType</h4>
<pre>public static&nbsp;int&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.128">getDType</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>&gt;&nbsp;clazz)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>clazz</code> - dataset class</dd>
<dt><span class="strong">Returns:</span></dt><dd>dataset type for dataset class</dd></dl>
</li>
</ul>
<a name="isDTypeElemental(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDTypeElemental</h4>
<pre>public static&nbsp;boolean&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.135">isDTypeElemental</a>(int&nbsp;dtype)</pre>
</li>
</ul>
<a name="isDTypeInteger(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDTypeInteger</h4>
<pre>public static&nbsp;boolean&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.139">isDTypeInteger</a>(int&nbsp;dtype)</pre>
</li>
</ul>
<a name="isDTypeFloating(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDTypeFloating</h4>
<pre>public static&nbsp;boolean&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.144">isDTypeFloating</a>(int&nbsp;dtype)</pre>
</li>
</ul>
<a name="isDTypeComplex(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDTypeComplex</h4>
<pre>public static&nbsp;boolean&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.149">isDTypeComplex</a>(int&nbsp;dtype)</pre>
</li>
</ul>
<a name="isDTypeNumerical(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDTypeNumerical</h4>
<pre>public static&nbsp;boolean&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.157">isDTypeNumerical</a>(int&nbsp;dtype)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>dtype</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>true if dataset type is numerical, i.e. a dataset contains numbers</dd></dl>
</li>
</ul>
<a name="getBestDType(int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBestDType</h4>
<pre>public static&nbsp;int&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.170">getBestDType</a>(int&nbsp;atype,
int&nbsp;btype)</pre>
<div class="block">Find dataset type that best fits given types The best type takes into account complex and array datasets</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>atype</code> - first dataset type</dd><dd><code>btype</code> - second dataset type</dd>
<dt><span class="strong">Returns:</span></dt><dd>best dataset type</dd></dl>
</li>
</ul>
<a name="getBestFloatDType(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBestFloatDType</h4>
<pre>public static&nbsp;int&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.209">getBestFloatDType</a>(int&nbsp;otype)</pre>
<div class="block">Find floating point dataset type that best fits given types. The best type takes into account complex and array
datasets</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>otype</code> - old dataset type</dd>
<dt><span class="strong">Returns:</span></dt><dd>best dataset type</dd></dl>
</li>
</ul>
<a name="getBestFloatDType(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBestFloatDType</h4>
<pre>public static&nbsp;int&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.248">getBestFloatDType</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;cls)</pre>
<div class="block">Find floating point dataset type that best fits given class The best type takes into account complex and array
datasets</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>cls</code> - of an item or element</dd>
<dt><span class="strong">Returns:</span></dt><dd>best dataset type</dd></dl>
</li>
</ul>
<a name="getDTypeFromClass(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDTypeFromClass</h4>
<pre>public static&nbsp;int&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.258">getDTypeFromClass</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;cls)</pre>
<div class="block">Get dataset type from an element class</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>cls</code> - element class</dd>
<dt><span class="strong">Returns:</span></dt><dd>dataset type</dd></dl>
</li>
</ul>
<a name="getDTypeFromClass(java.lang.Class, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDTypeFromClass</h4>
<pre>public static&nbsp;int&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.268">getDTypeFromClass</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;cls,
int&nbsp;isize)</pre>
<div class="block">Get dataset type from an element class</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>cls</code> - element class</dd>
<dt><span class="strong">Returns:</span></dt><dd>dataset type</dd></dl>
</li>
</ul>
<a name="getDTypeFromObject(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDTypeFromObject</h4>
<pre>public static&nbsp;int&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.287">getDTypeFromObject</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;obj)</pre>
<div class="block">Get dataset type from an object. The following are supported: Java Number objects, Apache common math Complex
objects, Java arrays and lists</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>obj</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>dataset type</dd></dl>
</li>
</ul>
<a name="getDType(org.eclipse.january.dataset.ILazyDataset)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDType</h4>
<pre>public static&nbsp;int&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.331">getDType</a>(<a href="../../../../org/eclipse/january/dataset/ILazyDataset.html" title="interface in org.eclipse.january.dataset">ILazyDataset</a>&nbsp;d)</pre>
<div class="block">Get dataset type from given dataset</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>dataset type</dd></dl>
</li>
</ul>
<a name="getLargestDType(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLargestDType</h4>
<pre>public static&nbsp;int&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.344">getLargestDType</a>(int&nbsp;otype)</pre>
<div class="block">The largest dataset type suitable for a summation of around a few thousand items without changing from the "kind"
of dataset</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>otype</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>largest dataset type available for given dataset type</dd></dl>
</li>
</ul>
<a name="getElementalDType(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getElementalDType</h4>
<pre>public static&nbsp;int&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.381">getElementalDType</a>(int&nbsp;otype)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>otype</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>elemental dataset type available for given dataset type</dd></dl>
</li>
</ul>
<a name="isClassSupportedAsElement(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isClassSupportedAsElement</h4>
<pre>public static&nbsp;boolean&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.409">isClassSupportedAsElement</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;comp)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>comp</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>true if supported</dd></dl>
</li>
</ul>
<a name="getElementsPerItem(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getElementsPerItem</h4>
<pre>public static&nbsp;int&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.418">getElementsPerItem</a>(int&nbsp;dtype)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>dtype</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>number of elements per item</dd></dl>
</li>
</ul>
<a name="getItemBytes(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getItemBytes</h4>
<pre>public static&nbsp;int&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.440">getItemBytes</a>(int&nbsp;dtype)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>dtype</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>length of single item in bytes</dd></dl>
</li>
</ul>
<a name="getItemBytes(int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getItemBytes</h4>
<pre>public static&nbsp;int&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.450">getItemBytes</a>(int&nbsp;dtype,
int&nbsp;isize)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>dtype</code> - </dd><dd><code>isize</code> - number of elements in an item</dd>
<dt><span class="strong">Returns:</span></dt><dd>length of single item in bytes</dd></dl>
</li>
</ul>
<a name="toBoolean(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toBoolean</h4>
<pre>public static&nbsp;boolean&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.492">toBoolean</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b)</pre>
</li>
</ul>
<a name="toLong(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toLong</h4>
<pre>public static final&nbsp;long&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.524">toLong</a>(double&nbsp;d)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>returns a long or 0 if d is NaN or infinite</dd><dt><span class="strong">Since:</span></dt>
<dd>2.1</dd></dl>
</li>
</ul>
<a name="toLong(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toLong</h4>
<pre>public static final&nbsp;long&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.535">toLong</a>(float&nbsp;d)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>returns a long or 0 if d is NaN or infinite</dd><dt><span class="strong">Since:</span></dt>
<dd>2.1</dd></dl>
</li>
</ul>
<a name="toLong(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toLong</h4>
<pre>public static&nbsp;long&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.541">toLong</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b)</pre>
</li>
</ul>
<a name="toReal(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toReal</h4>
<pre>public static&nbsp;double&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.569">toReal</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b)</pre>
</li>
</ul>
<a name="toImag(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toImag</h4>
<pre>public static&nbsp;double&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.600">toImag</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b)</pre>
</li>
</ul>
<a name="toDoubleArray(java.lang.Object, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toDoubleArray</h4>
<pre>public static&nbsp;double[]&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.631">toDoubleArray</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b,
int&nbsp;itemSize)</pre>
</li>
</ul>
<a name="toFloatArray(java.lang.Object, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toFloatArray</h4>
<pre>public static&nbsp;float[]&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.710">toFloatArray</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b,
int&nbsp;itemSize)</pre>
</li>
</ul>
<a name="toLongArray(java.lang.Object, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toLongArray</h4>
<pre>public static&nbsp;long[]&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.794">toLongArray</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b,
int&nbsp;itemSize)</pre>
</li>
</ul>
<a name="toIntegerArray(java.lang.Object, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toIntegerArray</h4>
<pre>public static&nbsp;int[]&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.879">toIntegerArray</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b,
int&nbsp;itemSize)</pre>
</li>
</ul>
<a name="toShortArray(java.lang.Object, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toShortArray</h4>
<pre>public static&nbsp;short[]&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.964">toShortArray</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b,
int&nbsp;itemSize)</pre>
</li>
</ul>
<a name="toByteArray(java.lang.Object, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toByteArray</h4>
<pre>public static&nbsp;byte[]&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.1049">toByteArray</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b,
int&nbsp;itemSize)</pre>
</li>
</ul>
<a name="fromDoublesToBiggestPrimitives(double[], int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fromDoublesToBiggestPrimitives</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.1134">fromDoublesToBiggestPrimitives</a>(double[]&nbsp;x,
int&nbsp;dtype)</pre>
</li>
</ul>
<a name="fromDoubleToBiggestNumber(double, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fromDoubleToBiggestNumber</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</a>&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.1165">fromDoubleToBiggestNumber</a>(double&nbsp;x,
int&nbsp;dtype)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - </dd><dd><code>dtype</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>biggest native primitive if integer (should test for 64bit?)</dd></dl>
</li>
</ul>
<a name="getLength(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLength</h4>
<pre>public static final&nbsp;int&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.1186">getLength</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;b)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>b</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>length of object</dd></dl>
</li>
</ul>
<a name="getElementClass(int)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getElementClass</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;<a href="../../../../src-html/org/eclipse/january/dataset/DTypeUtils.html#line.1208">getElementClass</a>(int&nbsp;dtype)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>dtype</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>(boxed) class of constituent element</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><a href="#skip-navbar_bottom" title="Skip navigation links"></a><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/DTypeUtils.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/eclipse/january/dataset/DoubleDataset.html" title="class in org.eclipse.january.dataset"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/eclipse/january/dataset/FloatDataset.html" title="class in org.eclipse.january.dataset"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/eclipse/january/dataset/DTypeUtils.html" target="_top">Frames</a></li>
<li><a href="DTypeUtils.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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2014&#x2013;2018 <a href="http://www.eclipse.org/">Eclipse Foundation</a>. All rights reserved.</small></p>
</body>
</html>