Show / Hide Table of Contents

Class Shape

Inheritance
System.Object
Shape
Implements
IShape
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: NumSharp.Core
Assembly: NumSharp.Core.dll
Syntax
public class Shape : IShape

Constructors

| Improve this Doc View Source

Shape(IEnumerable<Int32>)

Declaration
public Shape(IEnumerable<int> shape)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Int32> shape
| Improve this Doc View Source

Shape(Int32[])

Declaration
public Shape(params int[] shape)
Parameters
Type Name Description
System.Int32[] shape

Fields

| Improve this Doc View Source

_Dimensions

Declaration
protected int[] _Dimensions
Field Value
Type Description
System.Int32[]
| Improve this Doc View Source

_DimOffset

Declaration
protected int[] _DimOffset
Field Value
Type Description
System.Int32[]
| Improve this Doc View Source

_size

Declaration
protected int _size
Field Value
Type Description
System.Int32
| Improve this Doc View Source

_TensorLayout

Declaration
protected int _TensorLayout
Field Value
Type Description
System.Int32

Properties

| Improve this Doc View Source

BiShape

Declaration
public (int, int)BiShape { get; }
Property Value
Type Description
System.ValueTuple<System.Int32, System.Int32>
| Improve this Doc View Source

Dimensions

Declaration
public int[] Dimensions { get; }
Property Value
Type Description
System.Int32[]
| Improve this Doc View Source

DimOffset

Declaration
public int[] DimOffset { get; }
Property Value
Type Description
System.Int32[]
| Improve this Doc View Source

NDim

Declaration
public int NDim { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Size

Declaration
public int Size { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

TensorLayout

Declaration
public int TensorLayout { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

TriShape

Declaration
public (int, int, int)TriShape { get; }
Property Value
Type Description
System.ValueTuple<System.Int32, System.Int32, System.Int32>
| Improve this Doc View Source

UniShape

Declaration
public int UniShape { get; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

_SetDimOffset()

Declaration
protected void _SetDimOffset()
| Improve this Doc View Source

ChangeTensorLayout(Int32)

Declaration
public void ChangeTensorLayout(int layout)
Parameters
Type Name Description
System.Int32 layout
| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)
| Improve this Doc View Source

GetDimIndexOutShape(Int32)

Declaration
public int[] GetDimIndexOutShape(int select)
Parameters
Type Name Description
System.Int32 select
Returns
Type Description
System.Int32[]
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()
| Improve this Doc View Source

GetIndexInShape(Int32[])

Declaration
public int GetIndexInShape(params int[] select)
Parameters
Type Name Description
System.Int32[] select
Returns
Type Description
System.Int32
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Operators

| Improve this Doc View Source

Equality(Shape, Shape)

Declaration
public static bool operator ==(Shape a, Shape b)
Parameters
Type Name Description
Shape a
Shape b
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Inequality(Shape, Shape)

Declaration
public static bool operator !=(Shape a, Shape b)
Parameters
Type Name Description
Shape a
Shape b
Returns
Type Description
System.Boolean

Implements

IShape
  • Improve this Doc
  • View Source
Back to top Generated by DocFX