Class: CArray
- Inherits:
-
Object
- Object
- CArray
- Defined in:
- lib/carray/io/narray_miss.rb
Constant Summary collapse
- HAVE_NARRAY =
“narray” should be loaded in config.rb
Qtrue
Instance Method Summary collapse
-
#na ⇒ Object
rdoc: class CArray def na end def nv end def nm end end.
-
#nm ⇒ Object
CArray -> NMatrix.
-
#nv ⇒ Object
CArray -> NVector.
-
#to_na ⇒ Object
rdoc: class CArray def to_na end def to_nv end def to_nm end end.
-
#to_na! ⇒ Object
rdoc: class CArray def to_na! end def to_nv! end def to_nm! end end.
- #to_nam ⇒ Object
- #to_nam! ⇒ Object
- #to_nm ⇒ Object
- #to_nm! ⇒ Object
- #to_nv ⇒ Object
- #to_nv! ⇒ Object
Instance Method Details
#na ⇒ Object
rdoc:
class CArray
def na
end
def nv
end
def nm
end
end
188 189 190 191 192 |
# File 'ext/ca_wrap_narray.c', line 188
static VALUE
rb_cary_na_ref_new (int argc, VALUE *argv, VALUE self)
{
return rb_cary_na_ref_new_i(argc, argv, self, cNArray);
}
|
#nm ⇒ Object
CArray -> NMatrix
200 201 202 203 204 |
# File 'ext/ca_wrap_narray.c', line 200
static VALUE
rb_cary_nm_ref_new (int argc, VALUE *argv, VALUE self)
{
return rb_cary_na_ref_new_i(argc, argv, self, cNMatrix);
}
|
#nv ⇒ Object
CArray -> NVector
194 195 196 197 198 |
# File 'ext/ca_wrap_narray.c', line 194
static VALUE
rb_cary_nv_ref_new (int argc, VALUE *argv, VALUE self)
{
return rb_cary_na_ref_new_i(argc, argv, self, cNVector);
}
|
#to_na ⇒ Object
rdoc:
class CArray
def to_na
end
def to_nv
end
def to_nm
end
end
317 318 319 320 321 |
# File 'ext/ca_wrap_narray.c', line 317
static VALUE
rb_cary_to_na (VALUE self, VALUE klass)
{
return rb_cary_to_na_i(self, cNArray);
}
|
#to_na! ⇒ Object
rdoc:
class CArray
def to_na!
end
def to_nv!
end
def to_nm!
end
end
254 255 256 257 258 |
# File 'ext/ca_wrap_narray.c', line 254
static VALUE
rb_cary_to_na_bang (VALUE self)
{
return rb_cary_to_na_bang_i(self, cNArray);
}
|
#to_nam ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/carray/io/narray_miss.rb', line 17 def to_nam if has_mask? return NArrayMiss.to_nam_no_dup(to_na, mask.bit_neg.na) else return NArrayMiss.to_nam_no_dup(to_na) end end |
#to_nam! ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/carray/io/narray_miss.rb', line 25 def to_nam! if has_mask? return NArrayMiss.to_nam_no_dup(to_na!, mask.bit_neg.to_na!) else return NArrayMiss.to_nam_no_dup(to_na!) end end |
#to_nm ⇒ Object
329 330 331 332 333 |
# File 'ext/ca_wrap_narray.c', line 329
static VALUE
rb_cary_to_nm (VALUE self, VALUE klass)
{
return rb_cary_to_na_i(self, cNMatrix);
}
|
#to_nm! ⇒ Object
266 267 268 269 270 |
# File 'ext/ca_wrap_narray.c', line 266
static VALUE
rb_cary_to_nm_bang (VALUE self)
{
return rb_cary_to_na_bang_i(self, cNMatrix);
}
|
#to_nv ⇒ Object
323 324 325 326 327 |
# File 'ext/ca_wrap_narray.c', line 323
static VALUE
rb_cary_to_nv (VALUE self, VALUE klass)
{
return rb_cary_to_na_i(self, cNVector);
}
|
#to_nv! ⇒ Object
260 261 262 263 264 |
# File 'ext/ca_wrap_narray.c', line 260
static VALUE
rb_cary_to_nv_bang (VALUE self)
{
return rb_cary_to_na_bang_i(self, cNVector);
}
|