Skip to content

Commit

Permalink
Improved docs. Fixed bug of stackoverflow in list.push(...other), and…
Browse files Browse the repository at this point in the history
… bug in reduce(.... a*b, 0 instead of 1)
  • Loading branch information
caph1993 committed Mar 20, 2024
1 parent 2fc7ec0 commit 98ec7f8
Show file tree
Hide file tree
Showing 180 changed files with 764 additions and 701 deletions.
39 changes: 20 additions & 19 deletions dist/NDArray.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ declare class NDArray {
/** @category Attributes @readonly */
dtype: DType;
/** @category Indexing / slicing */
index: (...where: Where) => number | NDArray;
index: (...where: Where) => NDArray;
/** @ignore */
modules: typeof import("./array").modules;
/** @category Reducers */
Expand Down Expand Up @@ -96,37 +96,37 @@ declare class NDArray {
bitwise_not: UnaryOperatorMethod;
/** @category Unary logical operators */
logical_not: UnaryOperatorMethod;
/** @category Assignment operators */
/** @category Operators with assignment */
assign: SelfAssignmentOperator;
/** @category Assignment operators */
/** @category Operators with assignment */
add_assign: SelfAssignmentOperator;
/** @category Assignment operators */
/** @category Operators with assignment */
subtract_assign: SelfAssignmentOperator;
/** @category Assignment operators */
/** @category Operators with assignment */
multiply_assign: SelfAssignmentOperator;
/** @category Assignment operators */
/** @category Operators with assignment */
divide_assign: SelfAssignmentOperator;
/** @category Assignment operators */
/** @category Operators with assignment */
mod_assign: SelfAssignmentOperator;
/** @category Assignment operators */
/** @category Operators with assignment */
pow_assign: SelfAssignmentOperator;
/** @category Assignment operators */
/** @category Operators with assignment */
divide_int_assign: SelfAssignmentOperator;
/** @category Assignment operators */
/** @category Operators with assignment */
maximum_assign: SelfAssignmentOperator;
/** @category Assignment operators */
/** @category Operators with assignment */
minimum_assign: SelfAssignmentOperator;
/** @category Assignment operators */
/** @category Operators with assignment */
bitwise_and_assign: SelfAssignmentOperator;
/** @category Assignment operators */
/** @category Operators with assignment */
bitwise_or_assign: SelfAssignmentOperator;
/** @category Assignment operators */
/** @category Operators with assignment */
logical_or_assign: SelfAssignmentOperator;
/** @category Assignment operators */
/** @category Operators with assignment */
bitwise_shift_right_assign: SelfAssignmentOperator;
/** @category Assignment operators */
/** @category Operators with assignment */
bitwise_shift_left_assign: SelfAssignmentOperator;
/** @category Assignment operators */
/** @category Operators with assignment */
logical_and_assign: SelfAssignmentOperator;
/** @category Transformations */
ravel: () => NDArray;
Expand All @@ -147,8 +147,9 @@ declare class NDArray {
_simpleIndexes: import("./array/indexes").AxesIndex | null;
/** @category Attributes @readonly */
get size(): number;
get flat(): number[];
/** @category Attributes @readonly */
get flat(): number[];
/** @internal */
set flat(list: number[]);
/**
* @category Transformations
Expand All @@ -160,7 +161,7 @@ declare class NDArray {
* For 1D arrays, yields numbers.
* For multidimensional arrays, yields array views.
*/
[Symbol.iterator](): Generator<number | NDArray, void, unknown>;
[Symbol.iterator](): Generator<NDArray, void, unknown>;
/** @category Attributes @readonly */
get length(): number;
/** @category Transformations */
Expand Down
2 changes: 1 addition & 1 deletion dist/NDArray.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions dist/_globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ export declare const GLOBALS: {
reshape: typeof import("./array/basic").reshape;
array: typeof import("./array/_globals").array;
asarray: typeof import("./array/_globals").asarray;
sum: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => number | import("./NDArray").NDArray;
product: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => number | import("./NDArray").NDArray;
prod: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => number | import("./NDArray").NDArray;
any: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => boolean | import("./NDArray").NDArray;
all: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => boolean | import("./NDArray").NDArray;
max: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => number | import("./NDArray").NDArray;
min: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => number | import("./NDArray").NDArray;
argmax: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => number | import("./NDArray").NDArray;
argmin: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => number | import("./NDArray").NDArray;
mean: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => number | import("./NDArray").NDArray;
norm: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceNormKwargs, keepdims?: boolean | import("./array/kwargs").ReduceNormKwargs, ord?: number | import("./array/kwargs").ReduceNormKwargs) => number | import("./NDArray").NDArray;
var: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => number | import("./NDArray").NDArray;
std: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceStdKwargs, keepdims?: boolean | import("./array/kwargs").ReduceStdKwargs, ddof?: number | import("./array/kwargs").ReduceStdKwargs) => number | import("./NDArray").NDArray;
sum: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => import("./NDArray").NDArray;
product: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => import("./NDArray").NDArray;
prod: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => import("./NDArray").NDArray;
any: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => import("./NDArray").NDArray;
all: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => import("./NDArray").NDArray;
max: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => import("./NDArray").NDArray;
min: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => import("./NDArray").NDArray;
argmax: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => import("./NDArray").NDArray;
argmin: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => import("./NDArray").NDArray;
mean: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => import("./NDArray").NDArray;
norm: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceNormKwargs, keepdims?: boolean | import("./array/kwargs").ReduceNormKwargs, ord?: number | import("./array/kwargs").ReduceNormKwargs) => import("./NDArray").NDArray;
var: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceKwargs, keepdims?: boolean | import("./array/kwargs").ReduceKwargs) => import("./NDArray").NDArray;
std: (arr: number | boolean | import("./NDArray").NDArray, axis?: number | import("./array/kwargs").ReduceStdKwargs, keepdims?: boolean | import("./array/kwargs").ReduceStdKwargs, ddof?: number | import("./array/kwargs").ReduceStdKwargs) => import("./NDArray").NDArray;
transpose: typeof import("./array/transform").transpose;
apply_along_axis: typeof import("./array/transform").apply_along_axis;
sort: typeof import("./array/transform").sort;
Expand Down
Loading

0 comments on commit 98ec7f8

Please sign in to comment.