summaryrefslogtreecommitdiff
path: root/numpy/oldnumeric/ma.py
blob: 601ff88af25578ad979fbe9554d45229f3a1b3f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Incompatibility in that getmask and a.mask returns nomask
#  instead of None

from numpy.core.ma import *
import numpy.core.ma as nca

def repeat(a, repeats, axis=0):
    return nca.repeat(a, repeats, axis)

def average(a, axis=0, weights=None, returned=0):
    return nca.average(a, axis, weights, returned)

def take(a, indices, axis=0):
    return nca.average(a, indices, axis=0)