forked from pola-rs/polars
/
type.Array2.html
8 lines (8 loc) · 5.52 KB
/
type.Array2.html
1
2
3
4
5
6
7
8
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="two-dimensional array"><meta name="keywords" content="rust, rustlang, rust-lang, Array2"><title>ndarray::Array2 - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc type"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../ndarray/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Type Definition Array2</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-From%3CVec%3CV%2C%20Global%3E%3E">From<Vec<V, Global>></a></div></div><p class="location"><a href="index.html">ndarray</a></p><div id="sidebar-vars" data-name="Array2" data-ty="type" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Type Definition <a href="index.html">ndarray</a>::<wbr><a class="type" href="">Array2</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/ndarray/aliases.rs.html#107" title="goto source code">[src]</a></span></h1><pre class="rust typedef">type Array2<A> = <a class="type" href="../ndarray/type.Array.html" title="type ndarray::Array">Array</a><A, <a class="type" href="../ndarray/type.Ix2.html" title="type ndarray::Ix2">Ix2</a>>;</pre><div class="docblock"><p>two-dimensional array</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-From%3CVec%3CV%2C%20Global%3E%3E" class="impl"><code class="in-band">impl<A, V> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><V, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>> for <a class="type" href="../ndarray/type.Array2.html" title="type ndarray::Array2">Array2</a><A> <span class="where fmt-newline">where<br> V: <a class="trait" href="../ndarray/trait.FixedInitializer.html" title="trait ndarray::FixedInitializer">FixedInitializer</a><Elem = A>, </span></code><a href="#impl-From%3CVec%3CV%2C%20Global%3E%3E" class="anchor"></a><a class="srclink" href="../src/ndarray/free_functions.rs.html#217-245" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from" class="method"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(xs: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><V>) -> Self</code><a class="srclink" href="../src/ndarray/free_functions.rs.html#224-244" title="goto source code">[src]</a></h4><div class="docblock"><p>Converts the <code>Vec</code> of arrays to an owned 2-D array.</p>
<p><strong>Panics</strong> if the product of non-zero axis lengths overflows <code>isize</code>.</p>
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="ndarray" data-search-js="../search-index.js"></div>
<script src="../main.js"></script></body></html>