org.bytedeco.pytorch.DimVectorImpl Maven / Gradle / Ivy
// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE
package org.bytedeco.pytorch;
import org.bytedeco.pytorch.Allocator;
import org.bytedeco.pytorch.Function;
import org.bytedeco.pytorch.Module;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.openblas.global.openblas_nolapack.*;
import static org.bytedeco.openblas.global.openblas.*;
import static org.bytedeco.pytorch.global.torch.*;
/** This class consists of common code factored out of the SmallVector class to
* reduce code duplication based on the SmallVector 'N' template parameter. */
@Name("c10::SmallVectorImpl") @Properties(inherit = org.bytedeco.pytorch.presets.torch.class)
public class DimVectorImpl extends SmallVectorBase {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DimVectorImpl(Pointer p) { super(p); }
public native void clear();
public native void resize(long N);
/** Like resize, but \ref T is POD, the new values won't be initialized. */
public native void resize_for_overwrite(long N);
public native void resize(long N, long NV);
public native void reserve(long N);
public native void pop_back_n(long NumItems);
public native @Cast("int64_t") long pop_back_val();
public native void swap(@ByRef DimVectorImpl RHS);
/** Add the specified range to the end of the SmallVector. */
/** Append \p NumInputs copies of \p Elt to the end. */
public native void append(long NumInputs, long Elt);
public native void append(@Const @ByRef DimVectorImpl RHS);
public native void assign(long NumElts, long Elt);
// FIXME: Consider assigning over existing elements, rather than clearing &
// re-initializing them - for all assign(...) variants.
public native void assign(@Const @ByRef DimVectorImpl RHS);
public native @ByVal @Cast("c10::SmallVectorImpl::iterator*") LongPointer erase(@ByVal @Cast("c10::SmallVectorImpl::const_iterator*") LongPointer CI);
public native @ByVal @Cast("c10::SmallVectorImpl::iterator*") LongPointer erase(@ByVal @Cast("c10::SmallVectorImpl::const_iterator*") LongPointer CS, @ByVal @Cast("c10::SmallVectorImpl::const_iterator*") LongPointer CE);
public native @ByVal @Cast("c10::SmallVectorImpl::iterator*") LongPointer insert(@ByVal @Cast("c10::SmallVectorImpl::iterator*") LongPointer I, @Cast("int64_t&&") long Elt);
public native @ByVal @Cast("c10::SmallVectorImpl::iterator*") LongPointer insert(@ByVal @Cast("c10::SmallVectorImpl::iterator*") LongPointer I, long NumToInsert, long Elt);
public native @ByRef @Name("operator =") DimVectorImpl put(@Const @ByRef DimVectorImpl RHS);
public native @Cast("bool") @Name("operator <") boolean lessThan(@Const @ByRef DimVectorImpl RHS);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy