C<static method c : L<R::NDArray::Byte|SPVM::R::NDArray::Byte> ($data: object of L<Byte|SPVM::Byte>|byte[]|L<R::NDArray::Byte|SPVM::R::NDArray::Byte>, $dim: int[] = undef);>
Creates a new L<R::NDArray::Byte|SPVM::R::NDArray::Byte> object giventhe data $dataand the dimensions $dim.
Implemetation:
If $datais definedand the type of $datais L<Byte|SPVM::Byte>, $datais set to C<[(byte)$data->(Byte)]>.
If $datais definedand the type of $datais L<R::NDArray::Byte|SPVM::R::NDArray::Byte>, $dimis set to C<$data-E<gt>(R::NDArray::Byte)-E<gt>dim> unless$dimis definedand $datais set to C<$data-E<gt>(R::NDArray::Byte)-E<gt>data>.
And this method calls L<R::NDArray::Byte#new|SPVM::R::NDArray::Byte/"new"> method given $dim and $data.
Exceptions:
The type of the data $datamust be Byte, byte[], or R::NDArray::Byte ifdefined. Othrewise, an exception is thrown.