var searchIndex = {}; searchIndex["ndarray"] = {"doc":"The `ndarray` crate provides an N-dimensional container similar to numpy’s\nndarray.","items":[[3,"Indexes","ndarray","An iterator over the indexes of an array shape.",null,null],[3,"Si","","A slice, a description of a range of an array axis.",null,null],[12,"0","","",0,null],[12,"1","","",0,null],[12,"2","","",0,null],[3,"InnerIter","","An iterator that traverses over all dimensions but the innermost,\nand yields each inner row.",null,null],[3,"InnerIterMut","","An iterator that traverses over all dimensions but the innermost,\nand yields each inner row (mutable).",null,null],[3,"OuterIter","","An iterator that traverses over the outermost dimension\nand yields each subview.",null,null],[3,"OuterIterMut","","An iterator that traverses over the outermost dimension\nand yields each subview (mutable).",null,null],[3,"AxisChunksIter","","An iterator that traverses over the specified axis\nand yields views of the specified size on this axis.",null,null],[3,"AxisChunksIterMut","","An iterator that traverses over the specified axis\nand yields mutable views of the specified size on this axis.",null,null],[3,"ArrayBase","","An *N*-dimensional array.",null,null],[3,"ViewRepr","","Array view’s representation.",null,null],[3,"Elements","","An iterator over the elements of an array.",null,null],[3,"ElementsMut","","An iterator over the elements of an array (mutable).",null,null],[3,"Indexed","","An iterator over the indexes and elements of an array.",null,null],[3,"IndexedMut","","An iterator over the indexes and elements of an array (mutable).",null,null],[4,"ShapeError","","An error that can be produced by `.into_shape()`",null,null],[13,"IncompatibleShapes","","incompatible shapes in reshape, (from, to)",1,null],[13,"IncompatibleLayout","","incompatible layout: not contiguous",1,null],[13,"DimensionTooLarge","","Dimension too large (shape)",1,null],[4,"StrideError","","An error to describe invalid stride states",null,null],[13,"OutOfBounds","","stride leads to out of bounds indexing",2,null],[13,"Unsupported","","stride leads to aliasing array elements",2,null],[5,"zeros","","***Deprecated: Use `ArrayBase::zeros` instead.***",null,{"inputs":[{"name":"d"}],"output":{"name":"ownedarray"}}],[5,"arr0","","Return a zero-dimensional array with the element `x`.",null,{"inputs":[{"name":"a"}],"output":{"name":"ownedarray"}}],[5,"arr1","","Return a one-dimensional array with elements from `xs`.",null,null],[5,"rcarr1","","Return a one-dimensional array with elements from `xs`.",null,null],[5,"aview0","","Return a zero-dimensional array view borrowing `x`.",null,{"inputs":[{"name":"a"}],"output":{"name":"arrayview"}}],[5,"aview1","","Return a one-dimensional array view with elements borrowing `xs`.",null,null],[5,"aview2","","Return a two-dimensional array view with elements borrowing `xs`.",null,null],[5,"aview_mut1","","Return a one-dimensional read-write array view with elements borrowing `xs`.",null,null],[5,"arr2","","Return a two-dimensional array with elements from `xs`.",null,null],[5,"rcarr2","","Return a two-dimensional array with elements from `xs`.",null,null],[5,"arr3","","Return a three-dimensional array with elements from `xs`.",null,null],[5,"rcarr3","","Return a three-dimensional array with elements from `xs`.",null,null],[11,"index","","",3,null],[11,"index_mut","","",3,null],[11,"eq","","",3,null],[11,"from_iter","","",3,{"inputs":[{"name":"i"}],"output":{"name":"arraybase"}}],[11,"hash","","",3,null],[11,"fmt","","",3,null],[11,"fmt","","",3,null],[11,"fmt","","",3,null],[11,"fmt","","",3,null],[11,"fmt","","",3,null],[11,"clone","","",4,null],[11,"new","","Create an iterator over the array shape `dim`.",4,{"inputs":[{"name":"d"}],"output":{"name":"indexes"}}],[11,"next","","",4,null],[11,"size_hint","","",4,null],[11,"clone","","",5,null],[11,"next","","",5,null],[11,"size_hint","","",5,null],[11,"next_back","","",5,null],[11,"next","","",6,null],[11,"size_hint","","",6,null],[11,"next","","",7,null],[11,"size_hint","","",7,null],[11,"next_back","","",7,null],[11,"next","","",8,null],[11,"size_hint","","",8,null],[11,"next","","",9,null],[11,"size_hint","","",9,null],[11,"next","","",10,null],[11,"size_hint","","",10,null],[11,"split_at","","Split the iterator at index, yielding two disjoint iterators.",11,null],[11,"clone","","",11,null],[11,"next","","",11,null],[11,"size_hint","","",11,null],[11,"next_back","","",11,null],[11,"split_at","","Split the iterator at index, yielding two disjoint iterators.",12,null],[11,"next","","",12,null],[11,"size_hint","","",12,null],[11,"next_back","","",12,null],[11,"next","","",13,null],[11,"size_hint","","",13,null],[11,"next_back","","",13,null],[11,"next","","",14,null],[11,"size_hint","","",14,null],[11,"next_back","","",14,null],[11,"fmt","","",0,null],[11,"hash","","",0,null],[11,"eq","","",0,null],[11,"ne","","",0,null],[11,"from","","",0,{"inputs":[{"name":"range"}],"output":{"name":"si"}}],[11,"from","","",0,{"inputs":[{"name":"rangefrom"}],"output":{"name":"si"}}],[11,"from","","",0,{"inputs":[{"name":"rangeto"}],"output":{"name":"si"}}],[11,"from","","",0,{"inputs":[{"name":"rangefull"}],"output":{"name":"si"}}],[11,"step","","",0,null],[11,"clone","","",0,null],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"description","","",1,null],[11,"fmt","","",1,null],[11,"eq","","",2,null],[11,"fmt","","",2,null],[11,"clone","","",2,null],[11,"description","","",2,null],[11,"fmt","","",2,null],[11,"add","","",3,null],[11,"add","","",3,null],[11,"add","","",3,null],[11,"sub","","",3,null],[11,"sub","","",3,null],[11,"sub","","",3,null],[11,"mul","","",3,null],[11,"mul","","",3,null],[11,"mul","","",3,null],[11,"div","","",3,null],[11,"div","","",3,null],[11,"div","","",3,null],[11,"rem","","",3,null],[11,"rem","","",3,null],[11,"rem","","",3,null],[11,"bitand","","",3,null],[11,"bitand","","",3,null],[11,"bitand","","",3,null],[11,"bitor","","",3,null],[11,"bitor","","",3,null],[11,"bitor","","",3,null],[11,"bitxor","","",3,null],[11,"bitxor","","",3,null],[11,"bitxor","","",3,null],[11,"shl","","",3,null],[11,"shl","","",3,null],[11,"shl","","",3,null],[11,"shr","","",3,null],[11,"shr","","",3,null],[11,"shr","","",3,null],[11,"neg","","Perform an elementwise negation of `self` and return the result.",3,null],[11,"not","","Perform an elementwise unary not of `self` and return the result.",3,null],[6,"Ix","","Array index type",null,null],[6,"Ixs","","Array index type (signed)",null,null],[6,"RcArray","","Array where the data is reference counted and copy on write, it\ncan act as both an owner as the data as well as a lightweight view.",null,null],[6,"Array","","***Deprecated: Use `RcArray` instead***",null,null],[6,"OwnedArray","","Array where the data is owned uniquely.",null,null],[6,"ArrayView","","A lightweight array view.",null,null],[6,"ArrayViewMut","","A lightweight read-write array view.",null,null],[17,"S","","Slice value for the full range of an axis.",null,null],[8,"Dimension","","Trait for the shape and index types of arrays.",null,null],[16,"SliceArg","","`SliceArg` is the type which is used to specify slicing for this\ndimension.",15,null],[8,"RemoveAxis","","Helper trait to define a larger-than relation for array shapes:\nremoving one axis from *Self* gives smaller dimension *Smaller*.",null,null],[16,"Smaller","","",16,null],[10,"remove_axis","","",16,null],[8,"NdIndex","","A tuple or fixed size array that can be used to index an array.",null,null],[16,"Dim","","",17,null],[8,"LinalgScalar","","Trait union for scalars (array elements) that support linear algebra operations.",null,null],[8,"Data","","Array’s inner representation.",null,null],[16,"Elem","","",18,null],[10,"slice","","",18,null],[8,"DataMut","","Array’s writable inner representation.",null,null],[10,"slice_mut","","",19,null],[11,"ensure_unique","","",19,{"inputs":[{"name":"arraybase"}],"output":null}],[11,"is_unique","","",19,null],[8,"DataClone","","Clone an Array’s storage.",null,null],[10,"clone_with_ptr","","Unsafe because, `ptr` must point inside the current storage.",20,null],[8,"DataOwned","","Array representation that is a unique or shared owner of its data.",null,null],[10,"new","","",21,{"inputs":[{"name":"vec"}],"output":{"name":"self"}}],[10,"into_shared","","",21,null],[8,"DataShared","","Array representation that is a lightweight view.",null,null],[8,"FixedInitializer","","Fixed-size array used for array initialization",null,null],[16,"Elem","","",22,null],[10,"as_init_slice","","",22,null],[10,"len","","",22,{"inputs":[],"output":{"name":"usize"}}],[8,"Scalar","","Elements that can be used as direct operands in arithmetic with arrays.",null,null],[11,"slice","","",23,null],[11,"clone_with_ptr","","",23,null],[11,"slice","","",23,null],[11,"slice_mut","","",23,null],[11,"clone","","",23,null],[11,"clone","","",3,null],[11,"from_vec","","Create a one-dimensional array from a vector (no allocation needed).",3,{"inputs":[{"name":"vec"}],"output":{"name":"arraybase"}}],[11,"from_iter","","Create a one-dimensional array from an iterable.",3,{"inputs":[{"name":"i"}],"output":{"name":"arraybase"}}],[11,"linspace","","Create a one-dimensional array from inclusive interval\n`[start, end]` with `n` elements. `F` must be a floating point type.",3,{"inputs":[{"name":"f"},{"name":"f"},{"name":"usize"}],"output":{"name":"arraybase"}}],[11,"eye","","Create an identity matrix of size `n` (square 2D array).",3,{"inputs":[{"name":"ix"}],"output":{"name":"arraybase"}}],[11,"from_elem","","Create an array with copies of `elem`, dimension `dim`.",3,{"inputs":[{"name":"d"},{"name":"a"}],"output":{"name":"arraybase"}}],[11,"from_elem_f","","Create an array with copies of `elem`, dimension `dim` and fortran\nmemory order.",3,{"inputs":[{"name":"d"},{"name":"a"}],"output":{"name":"arraybase"}}],[11,"zeros","","Create an array with zeros, dimension `dim`.",3,{"inputs":[{"name":"d"}],"output":{"name":"arraybase"}}],[11,"zeros_f","","Create an array with zeros, dimension `dim` and fortran memory order.",3,{"inputs":[{"name":"d"}],"output":{"name":"arraybase"}}],[11,"default","","Create an array with default values, dimension `dim`.",3,{"inputs":[{"name":"d"}],"output":{"name":"arraybase"}}],[11,"from_vec_dim","","Create an array from a vector (with no allocation needed).",3,{"inputs":[{"name":"d"},{"name":"vec"}],"output":{"name":"result"}}],[11,"from_vec_dim_unchecked","","Create an array from a vector (with no allocation needed).",3,{"inputs":[{"name":"d"},{"name":"vec"}],"output":{"name":"arraybase"}}],[11,"from_vec_dim_unchecked_f","","Create an array from a vector (with no allocation needed),\nusing fortran memory order to interpret the data.",3,{"inputs":[{"name":"d"},{"name":"vec"}],"output":{"name":"arraybase"}}],[11,"from_vec_dim_stride","","Create an array from a vector and interpret it according to the\nprovided dimensions and strides. No allocation needed.",3,{"inputs":[{"name":"d"},{"name":"d"},{"name":"vec"}],"output":{"name":"result"}}],[11,"from_vec_dim_stride_unchecked","","Create an array from a vector and interpret it according to the\nprovided dimensions and strides. No allocation needed.",3,{"inputs":[{"name":"d"},{"name":"d"},{"name":"vec"}],"output":{"name":"arraybase"}}],[11,"from_slice_dim_stride","","Create an `ArrayView` borrowing its data from a slice.",24,null],[11,"into_outer_iter","","Return an outer iterator for this view.",24,null],[11,"from_slice_dim_stride","","Create an `ArrayView` borrowing its data from a slice.",25,null],[11,"into_outer_iter","","",25,null],[11,"len","","Return the total number of elements in the array.",3,null],[11,"dim","","Return the shape of the array.",3,null],[11,"shape","","Return the shape of the array as a slice.",3,null],[11,"strides","","Return the strides of the array",3,null],[11,"ndim","","Return the number of dimensions (axes) in the array",3,null],[11,"view","","Return a read-only view of the array",3,null],[11,"view_mut","","Return a read-write view of the array",3,null],[11,"to_owned","","Return an uniquely owned copy of the array",3,null],[11,"to_shared","","Return a shared ownership (copy on write) array.",3,null],[11,"into_shared","","Turn the array into a shared ownership (copy on write) array,\nwithout any copying.",3,null],[11,"iter","","Return an iterator of references to the elements of the array.",3,null],[11,"iter_mut","","Return an iterator of mutable references to the elements of the array.",3,null],[11,"indexed_iter","","Return an iterator of indexes and references to the elements of the array.",3,null],[11,"indexed_iter_mut","","Return an iterator of indexes and mutable references to the elements of the array.",3,null],[11,"slice","","Return a sliced array.",3,null],[11,"slice_mut","","Return a sliced read-write view of the array.",3,null],[11,"islice","","Slice the array’s view in place.",3,null],[11,"get","","Return a reference to the element at `index`, or return `None`\nif the index is out of bounds.",3,null],[11,"get_mut","","Return a mutable reference to the element at `index`, or return `None`\nif the index is out of bounds.",3,null],[11,"uget","","Perform *unchecked* array indexing.",3,null],[11,"uget_mut","","Perform *unchecked* array indexing.",3,null],[11,"subview","","Along `axis`, select the subview `index` and return a\nview with that axis removed.",3,null],[11,"subview_mut","","Along `axis`, select the subview `index` and return a read-write view\nwith the axis removed.",3,null],[11,"isubview","","Collapse dimension `axis` into length one,\nand select the subview of `index` along that axis.",3,null],[11,"into_subview","","Along `axis`, select the subview `index` and return `self`\nwith that axis removed.",3,null],[11,"inner_iter","","Return an iterator that traverses over all dimensions but the innermost,\nand yields each inner row.",3,null],[11,"inner_iter_mut","","Return an iterator that traverses over all dimensions but the innermost,\nand yields each inner row.",3,null],[11,"outer_iter","","Return an iterator that traverses over the outermost dimension\nand yields each subview.",3,null],[11,"outer_iter_mut","","Return an iterator that traverses over the outermost dimension\nand yields each subview.",3,null],[11,"axis_iter","","Return an iterator that traverses over `axis`\nand yields each subview along it.",3,null],[11,"axis_iter_mut","","Return an iterator that traverses over `axis`\nand yields each mutable subview along it.",3,null],[11,"axis_chunks_iter","","Return an iterator that traverses over `axis` by chunks of `size`,\nyielding non-overlapping views along that axis.",3,null],[11,"axis_chunks_iter_mut","","Return an iterator that traverses over `axis` by chunks of `size`,\nyielding non-overlapping read-write views along that axis.",3,null],[11,"diag","","Return an view of the diagonal elements of the array.",3,null],[11,"diag_mut","","Return a read-write view over the diagonal elements of the array.",3,null],[11,"into_diag","","Return the diagonal as a one-dimensional array.",3,null],[11,"is_standard_layout","","Return `true` if the array data is laid out in contiguous “C order” in\nmemory (where the last index is the most rapidly varying).",3,null],[11,"as_slice","","Return the array’s data as a slice, if it is contiguous and\nthe element order corresponds to the memory order. Return `None` otherwise.",3,null],[11,"as_slice_mut","","Return the array’s data as a slice, if it is contiguous and\nthe element order corresponds to the memory order. Return `None` otherwise.",3,null],[11,"reshape","","Transform the array into `shape`; any shape with the same number of\nelements is accepted.",3,null],[11,"into_shape","","Transform the array into `shape`; any shape with the same number of\nelements is accepted, but the source array or view must be\ncontiguous, otherwise we cannot rearrange the dimension.",3,null],[11,"broadcast","","Act like a larger size and/or shape array by *broadcasting*\ninto a larger shape, if possible.",3,null],[11,"swap_axes","","Swap axes `ax` and `bx`.",3,null],[11,"reversed_axes","","Transpose the array by reversing axes.",3,null],[11,"raw_data","","Return a slice of the array’s backing data in memory order.",3,null],[11,"raw_data_mut","","Return a mutable slice of the array’s backing data in memory order.",3,null],[11,"assign","","Perform an elementwise assigment to `self` from `rhs`.",3,null],[11,"assign_scalar","","Perform an elementwise assigment to `self` from scalar `x`.",3,null],[11,"zip_mut_with","","Traverse two arrays in unspecified order, in lock step,\ncalling the closure `f` on each element pair.",3,null],[11,"fold","","Traverse the array elements in order and apply a fold,\nreturning the resulting value.",3,null],[11,"map","","Apply `f` elementwise and return a new array with\nthe results.",3,null],[11,"sum","","Return sum along `axis`.",3,null],[11,"scalar_sum","","Return the sum of all elements in the array.",3,null],[11,"mean","","Return mean along `axis`.",3,null],[11,"allclose","","Return `true` if the arrays' elementwise differences are all within\nthe given absolute tolerance.<br>\nReturn `false` otherwise, or if the shapes disagree.",3,null],[11,"dot","","Compute the dot product of one-dimensional arrays.",3,null],[11,"row","","Return an array view of row `index`.",3,null],[11,"row_mut","","Return a mutable array view of row `index`.",3,null],[11,"column","","Return an array view of column `index`.",3,null],[11,"column_mut","","Return a mutable array view of column `index`.",3,null],[11,"mat_mul","","Perform matrix multiplication of rectangular arrays `self` and `rhs`.",3,null],[11,"mat_mul_col","","Perform the matrix multiplication of the rectangular array `self` and\ncolumn vector `rhs`.",3,null],[11,"iadd","","Perform elementwise\naddition\n between `self` and `rhs`,\n *in place*.",3,null],[11,"iadd_scalar","","Perform elementwise\naddition\n between `self` and the scalar `x`,\n *in place*.",3,null],[11,"isub","","Perform elementwise\nsubtraction\n between `self` and `rhs`,\n *in place*.",3,null],[11,"isub_scalar","","Perform elementwise\nsubtraction\n between `self` and the scalar `x`,\n *in place*.",3,null],[11,"imul","","Perform elementwise\nmultiplication\n between `self` and `rhs`,\n *in place*.",3,null],[11,"imul_scalar","","Perform elementwise\nmultiplication\n between `self` and the scalar `x`,\n *in place*.",3,null],[11,"idiv","","Perform elementwise\ndivision\n between `self` and `rhs`,\n *in place*.",3,null],[11,"idiv_scalar","","Perform elementwise\ndivision\n between `self` and the scalar `x`,\n *in place*.",3,null],[11,"irem","","Perform elementwise\nremainder\n between `self` and `rhs`,\n *in place*.",3,null],[11,"irem_scalar","","Perform elementwise\nremainder\n between `self` and the scalar `x`,\n *in place*.",3,null],[11,"ibitand","","Perform elementwise\nbit and\n between `self` and `rhs`,\n *in place*.",3,null],[11,"ibitand_scalar","","Perform elementwise\nbit and\n between `self` and the scalar `x`,\n *in place*.",3,null],[11,"ibitor","","Perform elementwise\nbit or\n between `self` and `rhs`,\n *in place*.",3,null],[11,"ibitor_scalar","","Perform elementwise\nbit or\n between `self` and the scalar `x`,\n *in place*.",3,null],[11,"ibitxor","","Perform elementwise\nbit xor\n between `self` and `rhs`,\n *in place*.",3,null],[11,"ibitxor_scalar","","Perform elementwise\nbit xor\n between `self` and the scalar `x`,\n *in place*.",3,null],[11,"ishl","","Perform elementwise\nleft shift\n between `self` and `rhs`,\n *in place*.",3,null],[11,"ishl_scalar","","Perform elementwise\nleft shift\n between `self` and the scalar `x`,\n *in place*.",3,null],[11,"ishr","","Perform elementwise\nright shift\n between `self` and `rhs`,\n *in place*.",3,null],[11,"ishr_scalar","","Perform elementwise\nright shift\n between `self` and the scalar `x`,\n *in place*.",3,null],[11,"ineg","","Perform an elementwise negation of `self`, *in place*.",3,null],[11,"inot","","Perform an elementwise unary not of `self`, *in place*.",3,null],[11,"clone","","",6,null],[14,"s!","","Slice argument constructor.",null,null],[11,"into_iter","","",24,null],[11,"into_iter","","",25,null],[11,"ndim","","",26,null],[11,"size","","",26,null],[11,"size_checked","","",26,null],[11,"default_strides","","",26,null],[11,"first_index","","",26,null],[11,"next_for","","",26,null],[11,"stride_offset","","Self is an index, return the stride offset",26,{"inputs":[{"name":"ix"},{"name":"ix"}],"output":{"name":"isize"}}],[11,"stride_offset_checked","","Return stride offset for this dimension and index.",26,null],[11,"remove_axis","","",26,null]],"paths":[[3,"Si"],[4,"ShapeError"],[4,"StrideError"],[3,"ArrayBase"],[3,"Indexes"],[3,"Elements"],[3,"Indexed"],[3,"ElementsMut"],[3,"IndexedMut"],[3,"InnerIter"],[3,"InnerIterMut"],[3,"OuterIter"],[3,"OuterIterMut"],[3,"AxisChunksIter"],[3,"AxisChunksIterMut"],[8,"Dimension"],[8,"RemoveAxis"],[8,"NdIndex"],[8,"Data"],[8,"DataMut"],[8,"DataClone"],[8,"DataOwned"],[8,"FixedInitializer"],[3,"ViewRepr"],[6,"ArrayView"],[6,"ArrayViewMut"],[6,"Ix"]]}; initSearch(searchIndex);