public static NDArray Scalar(object value, NPTypeCode typeCode) { return(new NDArray(UnmanagedStorage.Scalar(value, typeCode))); }
public static NDArray Scalar <T>(object value) where T : unmanaged { return(new NDArray(UnmanagedStorage.Scalar(value as T? ?? Converts.ChangeType <T>(value, InfoOf <T> .NPTypeCode)))); }
public static NDArray Scalar(ValueType value) { return(new NDArray(UnmanagedStorage.Scalar(value))); }
public static NDArray Scalar <T>(T value) where T : unmanaged { return(new NDArray(UnmanagedStorage.Scalar(value))); }
public static NDArray Scalar(object value, Type dtype) { return(new NDArray(UnmanagedStorage.Scalar(Convert.ChangeType(value, dtype)))); }