Implemented matlab base function in R
This commit is contained in:
parent
26e510860c
commit
06eb8e5433
2 changed files with 59 additions and 0 deletions
22
man/times.Rd
Normal file
22
man/times.Rd
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/times.R
|
||||
\name{times}
|
||||
\alias{times}
|
||||
\title{Element-wise matrix multiplication}
|
||||
\usage{
|
||||
times(a, b)
|
||||
}
|
||||
\arguments{
|
||||
\item{a}{first factor of the multiplication}
|
||||
|
||||
\item{b}{second factor of the multiplication}
|
||||
}
|
||||
\value{
|
||||
matrix with dimensions equal to the larger of the two factors
|
||||
}
|
||||
\description{
|
||||
Emulates the `times()` and `.*` operators from Matlab.
|
||||
}
|
||||
\details{
|
||||
This function basically handles elements of different length better than the `*` operator in R, at least as far as behavior from a Matlab user is expecting.
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue