Skip to content

Commit 95c0525

Browse files
authored
Merge pull request #235 from kojix2/typo
Fix several typos
2 parents ef569ab + 1dcdde8 commit 95c0525

File tree

15 files changed

+20
-20
lines changed

15 files changed

+20
-20
lines changed

ToDo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
- [x] copy to buffer if non-contiguous.gc
3-
- [x] contract contiguous dimesions.gc
3+
- [x] contract contiguous dimensions.gc
44

55
- [ ] transpose and flatten reduce dimeinsion to last user dimension. -- almost done.
66

doc/api.ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ typedef struct NDF_ARG_OUT {
157157

158158
typedef struct NA_LOOP {
159159
int narg;
160-
int ndim; // n of user dimention
160+
int ndim; // n of user dimension
161161
size_t *n; // n of elements for each dim
162162
na_loop_args_t *args; // for each arg
163163
VALUE option;

ext/numo/narray/array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ na_mdai_for_struct(na_mdai_t *mdai, int ndim)
560560
//fputs("compati\n",stderr);
561561
return 1;
562562
}
563-
// otherwise, multi-dimention
563+
// otherwise, multi-dimension
564564
if (ndim >= mdai->capa) {
565565
//fprintf(stderr,"exeed capa\n"); abort();
566566
na_mdai_realloc(mdai,4);

ext/numo/narray/data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ na_flatten_dim(VALUE self, int sd)
521521
na2->stridx[i] = na1->stridx[i];
522522
}
523523
}
524-
// flat dimenion == last dimension
524+
// flat dimension == last dimension
525525
if (RTEST(na_check_ladder(self,sd))) {
526526
na2->stridx[sd] = na1->stridx[nd-1];
527527
} else {

ext/numo/narray/gen/spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
def_id "minlength" # for bincount
5757
end
5858

59-
# Constatnts
59+
# Constants
6060

6161
if is_bit
6262
def_const "ELEMENT_BIT_SIZE", "INT2FIX(1)"

ext/numo/narray/gen/tmpl/format.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static void
4444
Format elements into strings.
4545
@overload <%=name%> format
4646
@param [String] format
47-
@return [Numo::RObject] array of formated strings.
47+
@return [Numo::RObject] array of formatted strings.
4848
*/
4949
static VALUE
5050
<%=c_func(-1)%>(int argc, VALUE *argv, VALUE self)

ext/numo/narray/gen/tmpl/format_to_a.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static void
3232
Format elements into strings.
3333
@overload <%=name%> format
3434
@param [String] format
35-
@return [Array] array of formated strings.
35+
@return [Array] array of formatted strings.
3636
*/
3737
static VALUE
3838
<%=c_func(-1)%>(int argc, VALUE *argv, VALUE self)

ext/numo/narray/gen/tmpl/logseq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static void
4747
Applicable classes: DFloat, SFloat, DComplex, SCopmplex.
4848
4949
@overload logseq(beg,step,[base])
50-
@param [Numeric] beg The begining of sequence.
50+
@param [Numeric] beg The beginning of sequence.
5151
@param [Numeric] step The step of sequence.
5252
@param [Numeric] base The base of log space. (default=10)
5353
@return [Numo::<%=class_name%>] self.

ext/numo/narray/gen/tmpl/seq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static void
5555
beg+i*step
5656
where i is 1-dimensional index.
5757
@overload seq([beg,[step]])
58-
@param [Numeric] beg begining of sequence. (default=0)
58+
@param [Numeric] beg beginning of sequence. (default=0)
5959
@param [Numeric] step step of sequence. (default=1)
6060
@return [Numo::<%=class_name%>] self.
6161
@example

ext/numo/narray/gen/tmpl_bit/format.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static void
4545
Format elements into strings.
4646
@overload <%=name%> format
4747
@param [String] format
48-
@return [Numo::RObject] array of formated strings.
48+
@return [Numo::RObject] array of formatted strings.
4949
*/
5050
static VALUE
5151
<%=c_func(-1)%>(int argc, VALUE *argv, VALUE self)

0 commit comments

Comments
 (0)